Commit Graph

76 Commits

Author SHA1 Message Date
Eric Wasylishen b46cba40a4 light: entity warnings: print bbox for bmodel entities
fixes https://github.com/ericwa/tyrutils-ericw/issues/120
2016-11-24 17:10:15 -07:00
Eric Wasylishen a6468984bf all: finish c++ification 2016-10-17 19:52:17 -06:00
Eric Wasylishen 722f753d8d light: remove some unused vis-testing stuff 2016-09-19 19:21:04 -06:00
Eric Wasylishen f7091c27f8 light: add some tests for the EntDict_Check* functions 2016-09-19 19:16:45 -06:00
Eric Wasylishen 26dcb4f10f light: refactor warnings code. warn if an entity targets itself 2016-09-19 18:28:16 -06:00
Eric Wasylishen 12f55292f7 light: CheckTargetsMatched: for "targetname with no targetter" warning, allow any key to be the targetter 2016-09-19 16:08:08 -06:00
Eric Wasylishen 4ec0a62ce8 light: CheckEmptyValues: print entity classname and origin 2016-09-19 14:42:04 -06:00
Eric Wasylishen d4395bc660 light: improved CheckTargets 2016-09-19 14:34:36 -06:00
Eric Wasylishen 63d2bcf91c light: move empty values check to its own function 2016-09-19 14:28:50 -06:00
Eric Wasylishen 28bec79830 light: add more fuzz (25%) to the bbox size for vis approximation.
Not sure if this is necessary, but fixes a tricky case in lightstest1.map (infinite reach light casting a sharp shadow across a large room)
2016-09-19 12:27:02 -06:00
Eric Wasylishen 8dab875adc light: CheckTargets: also check for unmatched targetnames 2016-09-18 17:30:21 -06:00
Eric Wasylishen 857b4402ad light: change assertions to Q_assert (so they are all enabled in release builds) 2016-09-18 15:41:56 -06:00
Eric Wasylishen a2dc35a91f light: fix debug logging 2016-09-18 03:03:29 -06:00
Eric Wasylishen 700e8d089f light: add -verbose option 2016-09-17 23:49:41 -06:00
Eric Wasylishen 81c7b39fa7 light: tidy LightStyleForTargetname 2016-09-17 17:49:01 -06:00
Eric Wasylishen f5d347a18d light: always assign "style" if targetname is set on a light 2016-09-17 17:48:11 -06:00
Eric Wasylishen d7ba0330a6 light: restore "unmatched target" warning 2016-09-10 10:10:06 -06:00
Eric Wasylishen 18797f81c0 light: fix for -dirt not implying -minlight_dirt, -sunlight_dirt, -sunlight2_dirt 2016-09-08 15:21:18 -06:00
Eric Wasylishen 272995765b light: warn about empty key/values 2016-09-07 20:32:59 -06:00
Eric Wasylishen d7948c4bdd light: move settings system to its own files 2016-08-12 19:15:25 -06:00
Eric Wasylishen a0f3881698 light: refactor global settings into a class 2016-08-12 18:49:32 -06:00
Eric Wasylishen 3d19354514 light: EstimateVisibleBoundsAtPoint: increase to 1024 samples to fix lightstest1.map.
remove randomness. only expand AABB by 1% down from 10%, since using 1024 samples now, bbox will be closer to the actual one.
2016-08-09 23:31:48 -06:00
Eric Wasylishen f857ab5820 light: remove redundant message 2016-08-09 21:19:24 -06:00
Eric Wasylishen 677875a63e light: cull lights based on estimated visible AABB of each light 2016-08-09 18:16:32 -06:00
Eric Wasylishen 3f573bd276 light: fix sign error in sunlight2 positioning 2016-08-08 20:36:31 -06:00
Eric Wasylishen 68e1736ad1 light: move more stuff to bsputils.cc 2016-08-07 23:07:20 -06:00
Eric Wasylishen 9004bed24e light: don't add 0 brightness suns 2016-08-07 16:33:13 -06:00
Eric Wasylishen 7029ed5713 light: clean headers 2016-08-04 16:32:04 -06:00
Eric Wasylishen 607706a684 light: fix dangling pointers when a light_t is copied 2016-08-01 21:38:03 -06:00
Eric Wasylishen fee5669dbf light: refactor checking if we need to write a litfile 2016-07-31 18:06:44 -06:00
Eric Wasylishen 03f703d931 light: remove redundant light value from lightsample_t 2016-07-31 11:47:27 -06:00
Eric Wasylishen 3d85f49adb light: entities: write null byte at the end of bsp->dentdata 2016-07-29 00:21:12 -06:00
Eric Wasylishen ceec496bfe light: entities: add some debug logging 2016-07-27 12:15:28 -06:00
Eric Wasylishen 5b9405a93e light: move suns to a std::vector 2016-07-27 11:05:54 -06:00
Eric Wasylishen a68979a57b light: add -nolights option 2016-07-27 02:00:11 -06:00
Eric Wasylishen 6da4ab87ae light: reorganize settings 2016-07-27 00:49:34 -06:00
Eric Wasylishen 7757e834a3 light: clean up dirtmapping logic 2016-07-26 21:08:04 -06:00
Eric Wasylishen da64f27015 light: add lockable_bool_t 2016-07-26 20:50:32 -06:00
Eric Wasylishen 2b12654c49 light: remove dead code 2016-07-26 18:08:58 -06:00
Eric Wasylishen fb1288a5c0 light: rename entity_t to light_t 2016-07-26 18:03:43 -06:00
Eric Wasylishen f729171a44 light: entities: clean out some dead code 2016-07-26 18:01:28 -06:00
Eric Wasylishen 8b1e1e0164 light: entities: delete some dead code 2016-07-26 16:41:27 -06:00
Eric Wasylishen 5b68158736 light: fix _project_mangle to be consistent with "mangle" (yaw pitch roll) 2016-07-26 16:09:04 -06:00
Eric Wasylishen 9fc8f0d6c1 light: entities: tidy surface light code a bit 2016-07-26 13:59:39 -06:00
Eric Wasylishen 6b51bad817 light: fix surface lights 2016-07-26 13:48:36 -06:00
Eric Wasylishen dc8525dfd2 light: entities: refactor EntDict_VectorForKey 2016-07-26 13:12:57 -06:00
Eric Wasylishen f716e14c89 light: minor cleanups 2016-07-26 13:04:17 -06:00
Eric Wasylishen 0b8ef0778d light: entity_t: keep a pointer to the entdict_t rather than a copy 2016-07-26 12:43:58 -06:00
Eric Wasylishen b71ae5a200 light: fix MatchTargets 2016-07-26 12:31:45 -06:00
Eric Wasylishen 02a2cee6a7 light: store lights in a vector (untested) 2016-07-26 02:13:58 -06:00