Commit Graph

4193 Commits

Author SHA1 Message Date
Eric Wasylishen 40e4c71407 lightpreview: show bspx lump sizes 2024-03-16 11:55:22 -06:00
Jonathan 71aa8aaeea
Paril/mem write (#412)
* simplify light_surfaces storage

* memory on writes

* Revert "batch together traces on the whole surface - saves a small amount of time"

This reverts commit 72611b7e97.

# Conflicts:
#	light/ltface.cc

* fix a use-after-move

* don't try to write lightmap if it has no styles

* fix issue with alignment
2024-03-13 20:01:05 -06:00
Eric Wasylishen b89bac4e8c common: split start of bspfile.hh into bspfile_common.hh
old layout was confusing CLion because bspfile.hh included
itself
2024-03-11 20:14:59 -06:00
Eric Wasylishen 275695a37c qbsp: remove -transsky flag which was broken
unknown what it was useful for
2024-03-09 22:07:55 -07:00
Eric Wasylishen aa3b8479b4 qbsp: shrink node_t from 280 to 208 bytes
- contentflags_t from 80 to 8 bytes
2024-03-09 19:37:23 -07:00
Jonathan 3d419853d3 store leaves on surf instead of surface light 2024-03-09 00:14:03 -05:00
Jonathan cb89691b54 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2024-03-08 23:09:22 -05:00
Jonathan 6c1feb5af8 cut per-surface memory usage down by making streams re-usable per thread 2024-03-08 23:09:16 -05:00
Eric Wasylishen 3fba6a6564 tests: add test for current behaviour of unknown q2 content/surface flags 2024-03-08 21:03:53 -07:00
Jonathan 8c88704bdf revert anim change because it apparently causes infinite loops in kex 2024-03-08 14:37:53 -05:00
Jonathan ae2b46f115 oops i had commented this for testing 2024-03-08 14:13:32 -05:00
Jonathan 6157945d4d optimize Q2 brush info by using world-aligned defaults if they exist
optimize Q2 animations by using world-aligned defaults, since Q2 only needs the secondary texinfo for the texture
2024-03-05 11:11:20 -05:00
Eric Wasylishen ee075b5781 qbsp: shrink node_t from 328 to 280 bytes 2024-02-27 23:34:47 -07:00
Eric Wasylishen f3da00395d style: replace (void) with () 2024-02-26 21:07:22 -07:00
Eric Wasylishen f9b374c6f7 tests: allow color values to be off by 1/255 2024-02-26 00:09:44 -07:00
Eric Wasylishen 12b8066246 light: change remaining double -> float
tiny perf improvement on base1-test.map with light params:

-emissivequality high

before: 7.4s
after: 6.9s

no visible changes in base1.
2024-02-25 23:42:45 -07:00
Eric Wasylishen 1f02b50441 lightpreview: add "Camera Bookmarks" submenu 2024-02-25 23:35:50 -07:00
Eric Wasylishen 1e53d45a6c qbsp: fix comment 2024-02-25 15:54:58 -07:00
Eric Wasylishen 438da8093c lightpreview: stats panel: make read-only. use thousands separator. 2024-02-25 13:20:18 -07:00
Eric Wasylishen 04097a0ecc lightpreview: add stats panel 2024-02-24 15:17:19 -07:00
Eric Wasylishen b9c03d9d2e lightpreview: adjust drawflat colors 2024-02-19 22:28:47 -07:00
Eric Wasylishen 93a43193df tests: add some missing faces test maps 2024-02-19 22:24:29 -07:00
Eric Wasylishen 047478b92c lightpreview: add "Edit -> Copy Camera Position" menu item 2024-02-19 19:23:07 -07:00
Eric Wasylishen 0fb6437885 lightpreview: add help menu 2024-02-19 12:37:14 -07:00
Eric Wasylishen ba5ad539b8 light: q2: opaque lit liquids receive light from both sides by default 2024-02-15 23:51:28 -07:00
Eric Wasylishen ec15eb7b8c docs: update changelog 2024-02-15 18:18:26 -07:00
Eric Wasylishen 478f2ad086 build fix: emplace_back broken in our clang version 2024-02-15 18:18:08 -07:00
Eric Wasylishen 521728002c build fix 2024-02-15 18:07:32 -07:00
Jonathan 0b0dd6759d add -svg to bsputil 2024-02-14 21:25:39 -05:00
Eric Wasylishen b12894de64 qbsp: fix "sides not found" warning spam in Q1 maps with sky
fixes #366
2024-02-11 18:48:34 -07:00
Eric Wasylishen 3a80e5ad1a tests: add -verbose flag 2024-02-11 16:38:57 -07:00
Eric Wasylishen 765d95e189 qbsp: q1: make liquids detail when -transwater is in use (i.e. by default)
Fixes #353
Fixes #244
2024-02-10 21:08:29 -07:00
Eric Wasylishen ea8a733b37 tests: add _suntexture test 2024-02-05 23:47:23 -07:00
Eric Wasylishen 4a4e33519e docs: update changelog 2024-02-04 21:40:11 -07:00
Eric Wasylishen 227a92f8a2 build: get rid of "bin" subdirectory 2024-02-04 19:52:16 -07:00
Eric Wasylishen aa970c0d18 qbsp: only pick up .wad textures when compiling for non-Q2 games
fixes #404
2024-02-04 19:41:45 -07:00
Eric Wasylishen 9a898c81b5 ci: fix windows release upload 2024-02-04 16:33:01 -07:00
Eric Wasylishen 83798c4bb7 CI: restore github releases creation 2024-02-04 15:24:44 -07:00
Eric Wasylishen 06b5e6dc64 docs: improve light entity documentation 2024-02-04 13:02:06 -07:00
Eric Wasylishen a5b77d4dc4 tests: remove quake_map_source tests 2024-02-03 14:18:25 -07:00
Eric Wasylishen fa2a7ce15d docs: move .wal_json documentation to qbsp.rst 2024-02-03 13:59:56 -07:00
Eric Wasylishen 0574ed2892 docs: document bsputil 2024-01-29 23:48:13 -07:00
Eric Wasylishen e3644350f9 docs: document bspinfo 2024-01-29 23:09:40 -07:00
Eric Wasylishen 135aee178f bspinfo: fix naming of lightmap png export when more than 1 style is used 2024-01-29 22:55:29 -07:00
Eric Wasylishen d5b5d1a3ce docs: prepare changelog for 2.0.0-alpha6 2024-01-28 23:13:58 -07:00
Eric Wasylishen e8747407d6 tests: add test for solid black lightmaps in HL mode 2024-01-28 21:46:47 -07:00
Eric Wasylishen 23591efba9 tests: add test for q1 faces which receive no light
they're allowed to be written as style 255 / lightofs -1 in Q1 mode
including lit water.
2024-01-28 21:02:53 -07:00
Eric Wasylishen c7df4305f8 docs: add undocumented light bmodel keys 2024-01-27 23:58:39 -07:00
Eric Wasylishen d512abd27d qbsp: merge across liquids by default in q1
- change option name to -nomergeacrossliquids
- add docs
- allow using it in q2 as well (requested by jitspoe)
2024-01-25 23:04:31 -07:00
Eric Wasylishen 6396f87e15 qbsp: never write <3 vertex faces 2024-01-25 17:49:07 -07:00