Commit Graph

4021 Commits

Author SHA1 Message Date
Eric Wasylishen 17bea71bbe light: experiment with alt lightgrid formula
take brightest side of cube, rather than averaging all 6 sides of cube
2023-05-22 20:41:11 -06:00
Eric Wasylishen 51b6f10d88 lightpreview: implement showtris 2023-05-22 19:34:17 -06:00
Eric Wasylishen 6e12d90a03 lightpreview: offset rotators to the correct position 2023-05-22 16:24:26 -06:00
Eric Wasylishen 85fb61f682 lightpreview: install qt windows plugin (required) 2023-05-22 16:11:23 -06:00
Eric Wasylishen 65de3bb53c lightpreview: flat shading 2023-05-22 15:45:07 -06:00
Eric Wasylishen 915ee9f870 lightpreview: normals rendering 2023-05-22 15:00:06 -06:00
Eric Wasylishen 3ae938f417 appveyor: enable packaging lightpreview 2023-05-22 13:10:24 -06:00
Eric Wasylishen b27c660022 lightpreview: add fullbright checkbox 2023-05-22 12:20:48 -06:00
Eric Wasylishen 9a4f1ecca7 lightpreview: add "Lightmap Only" checbox 2023-05-22 00:31:35 -06:00
Eric Wasylishen 4599549ac5 lightpreview: render q2 translucency 2023-05-21 22:51:22 -06:00
Eric Wasylishen b9cea32be2 lightpreview: persist settings
saves in AppData\Roaming\ericw-tools\lightpreview.ini
2023-05-21 21:29:17 -06:00
Jonathan 3f3b765780 use STB for TGA as well 2023-05-21 23:20:49 -04:00
Jonathan 45fd6ac588 lightpreview: render bmodels 2023-05-21 22:39:00 -04:00
Jonathan 4ed857715a Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-21 22:26:13 -04:00
Jonathan 444a8e23ae lightpreview: spawn at first info_player_start
lightpreview: don't mipmap lightmap; mipmap and anisotropy on textures though
2023-05-21 22:26:05 -04:00
Eric Wasylishen 509f1dd658 lightpreview: use WIN32_EXECUTABLE target property
this disables the console window when the .exe is launched directly
2023-05-21 19:53:28 -06:00
Eric Wasylishen 9c2892ef3f lightpreview: add Q/E bindings for fly down/fly up 2023-05-21 14:16:43 -06:00
Eric Wasylishen 3e55518ec0 lightpreview: mousewheel controls fly speed
- require RMB to look
- use precise timer for WASD movement
2023-05-21 14:13:07 -06:00
Eric Wasylishen 0531b79b0b lightpreview: add reload button 2023-05-21 13:27:05 -06:00
Eric Wasylishen 17f085d6a8 lightpreview: show filename in titlebar 2023-05-21 13:21:43 -06:00
Eric Wasylishen 4815e77f1f lightpreview: reduce stuttering when using WASD + mouselook together 2023-05-21 12:46:53 -06:00
Jonathan b43e1a5b7e Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp 2023-05-21 11:07:39 -04:00
Jonathan 0f5690bf6d allow light 0 to work
fix bad std::move
2023-05-21 11:07:33 -04:00
Eric Wasylishen 229f9fed25 lightpreview: hack in quote parsing for qbsp/vis/light args 2023-05-21 00:29:22 -06:00
Eric Wasylishen 295dc4a537 lightpreview: add text fields for qbsp/vis/light options 2023-05-21 00:03:32 -06:00
Eric Wasylishen 2bf311def6 lightpreview: add overbright lighting scale factor 2023-05-20 23:22:37 -06:00
Eric Wasylishen c2f7cdbb7c lightpreview: clear data before reloading 2023-05-20 23:09:42 -06:00
Eric Wasylishen c7985dad3e lightpreview: hook up reloading in response to file watcher 2023-05-20 22:24:57 -06:00
Eric Wasylishen 8ff83b4d36 testmaps: set a color for our e1u1/sky1 placeholder texture
so it's possible to test sunlight in q2 testmaps
2023-05-20 21:19:06 -06:00
Eric Wasylishen b17fac1eb3 lightpreview: change background color 2023-05-20 21:18:24 -06:00
Eric Wasylishen 752cd95c02 qbsp: -debugexpand: write to .bsp output dir 2023-05-20 21:17:14 -06:00
Eric Wasylishen 9c466dd813 tests: add q1 hull1 failure example 2023-05-20 19:17:59 -06:00
Eric Wasylishen 9a09dfffa9 lightpreview: render lightmap 2023-05-20 13:32:44 -06:00
Eric Wasylishen 698a492822 bspinfo: factor out lightmap atlas generation from .obj writer 2023-05-20 13:05:22 -06:00
Eric Wasylishen ce25e9c3d0 lightpreview: fix lack of depth testing / backface culling 2023-05-19 20:16:38 -06:00
Eric Wasylishen b33591fe0f lightpreview: wip textured rendering 2023-05-19 01:30:05 -06:00
Eric Wasylishen b7f4a2759b imglib: clear texture cache between tests 2023-05-19 00:51:14 -06:00
Eric Wasylishen 9e1ead5f78 common: move load_textures() from light.cc into common/imglib.cc 2023-05-19 00:50:31 -06:00
Eric Wasylishen 1df614daf2 lightpreview: wip basic level rendering 2023-05-17 00:19:53 -06:00
Eric Wasylishen d466deed91 lightpreview: reboot
- link against qbsp + vis + light + embree + tbb + fmt
- remove .pro, .ui
- setup filesystem watcher
- accept .map files via dnd, run qbsp + light + vis
2023-05-15 00:23:30 -06:00
Eric Wasylishen f14f327a9a common: more robust hexen2 detection
Fixes  #355
2023-05-13 00:46:02 -06:00
Random a12e9fe152
added options to cmake to disable building docs and tests, default behavior unchanged (#357) 2023-05-11 10:42:16 -06:00
Eric Wasylishen 356e5ab963 build: fix build (avoid std::identity) 2023-05-11 00:37:35 -06:00
Eric Wasylishen 895a28584c light: experimental autominlight for solid black sides of doors 2023-05-11 00:17:47 -06:00
Random c6ea63ba95
made CMake relative for use as a sub-project within other CMake projects (#356) 2023-05-10 19:45:51 -06:00
Eric Wasylishen 290af832af style: rename dirt related member variables to match the actual names 2023-05-08 23:02:59 -06:00
Jonathan 0ab3aae111 Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
# Conflicts:
#	common/bspfile.cc
2023-05-08 17:47:12 -04:00
Jonathan 1548f25daf allow individual brush chop control
allow passing _surflight_targetname to set targetnames for switchable lights on bmodels
2023-05-08 17:44:32 -04:00
Eric Wasylishen a73075234e light: fix inheriting worldspawn _minlight_color by bmodels 2023-05-08 00:24:53 -06:00
Eric Wasylishen d9e16a943a qbsp: add -noextendedsurfflags flag to suppress .texinfo writing (for testing/debugging) 2023-05-07 23:56:30 -06:00