Commit Graph

89 Commits

Author SHA1 Message Date
MaxED fe1e040cd1 Added "_falloff" light property. Allows to set light falloff in map units. 2017-08-23 15:00:32 -06:00
Eric Wasylishen 1d12d6ab4e Support multiple suns with "_sun" "1" entities.
Drop support for overriding properties of these entities with worldspawn keys.
2017-08-23 13:37:59 -06:00
Eric Wasylishen e5ac4da8a2 Convert indentation to spaces 2017-08-23 12:43:29 -06:00
MaxED 97ab6fcdab Added arghrad-style sun setup using light entity. 2017-08-23 14:18:10 +03:00
Eric Wasylishen 6e707130be light: rename dynamic shadow stuff to switchshadstyle" for QC,
and "_switchableshadow" for the mapper.
2017-06-26 13:41:24 -06:00
Eric Wasylishen b71f769c0a light: experimental support for switchable bmodel shadows:
Current specs/limitations:
- only supported for sunlight and regular lights
- enabled with "_dynamicshadow" "1"
- writes the lightstyle to a "dynshadowstyle" entity key, hardcoded
- only handles one dynamic occluder for a given lightmap sample
- styled lights passing through a dynamic occluder turn non-styled
2017-06-25 20:06:46 -06:00
Eric Wasylishen 68b084a6c3 replace glm with qvec 2017-04-24 00:26:49 -06:00
Eric Wasylishen 60418ce9a7 light: add maximum switchable lights to log message 2017-04-22 11:53:55 -06:00
Eric Wasylishen 880ad3b381 bpsutil, common, light, vis: bounds check bsp->dfaces access 2017-03-18 16:31:52 -06:00
Eric Wasylishen 6f66473836 light: add mangle_from_vec 2017-02-14 23:45:38 -07:00
Eric Wasylishen 9aae46bd1c light: adjust Light_PointInSolid to take a model param 2017-02-10 15:54:07 -07:00
Eric Wasylishen 29b420c7dd light: move Light_PointInSolid to bsputils.{hh,cc} 2017-02-01 14:38:42 -07:00
Eric Wasylishen cc71ad024f qbsp: origin brush support
light: allow model offset on any brush entity with "origin" key set, not just ones with a "rotate_*" classname
2017-01-24 21:39:03 -07:00
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