Eric Wasylishen
|
a0f3881698
|
light: refactor global settings into a class
|
2016-08-12 18:49:32 -06:00 |
Eric Wasylishen
|
e2f407a0e7
|
light: refactor GetDirectLighting
|
2016-08-12 12:00:33 -06:00 |
Eric Wasylishen
|
cc0d1f6b76
|
light: restore normalmap contribution in LightFace_Entity
|
2016-08-12 11:55:35 -06:00 |
Eric Wasylishen
|
ed43b29489
|
light: store normal contribution in ray stream
|
2016-08-12 11:51:27 -06:00 |
Eric Wasylishen
|
8ca5fafffc
|
light: some refactoring
|
2016-08-11 15:44:43 -06:00 |
Eric Wasylishen
|
4f58f61aad
|
light: GetLightDist: use entity->getFormula()
|
2016-08-11 14:37:26 -06:00 |
Eric Wasylishen
|
b849a79c3f
|
light: move GetDir to mathlib
|
2016-08-11 14:16:23 -06:00 |
Eric Wasylishen
|
9f607b858b
|
light: Add GetLightDist function
|
2016-08-10 12:22:41 -06:00 |
Eric Wasylishen
|
28b034a172
|
light: drop visdata support, no longer needed
|
2016-08-10 00:49:41 -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
|
f3a1700d13
|
light: scale and clamp before smoothing, downscaling. fixes https://github.com/ericwa/tyrutils-ericw/issues/15
|
2016-08-09 22:19:11 -06:00 |
Eric Wasylishen
|
125f35e35f
|
light: coding style fixes
|
2016-08-09 21:47:20 -06:00 |
Eric Wasylishen
|
f857ab5820
|
light: remove redundant message
|
2016-08-09 21:19:24 -06:00 |
Eric Wasylishen
|
59f1ef9a1e
|
light: bounce: only save style 0 lightmap if some traces hit
|
2016-08-09 20:55:28 -06:00 |
Eric Wasylishen
|
af2f68c036
|
light: culling for local minlights
|
2016-08-09 19:37:52 -06:00 |
Eric Wasylishen
|
df8669a5fe
|
light: record stats for local minlight ents
|
2016-08-09 19:37:40 -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
|
1d4de5c17d
|
light: add more performance stats
|
2016-08-09 17:11:08 -06:00 |
Eric Wasylishen
|
9340ce223a
|
build: clean up request for C++11. require cmake 3.1 (which introduced CMAKE_CXX_STANDARD)
|
2016-08-09 16:00:09 -06:00 |
Eric Wasylishen
|
7d5067bddd
|
light: Add stats
|
2016-08-09 01:15:26 -06:00 |
Eric Wasylishen
|
3d5ab0db68
|
light: use LightSample_Brightness
|
2016-08-09 00:41:49 -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
|
486606eb88
|
light: rename GetSurfaceVertex to Face_VertexAtIndex
|
2016-08-07 22:57:45 -06:00 |
Eric Wasylishen
|
1a0fb22e40
|
light: move some helper functions to common/bsputils.{h,cc}
|
2016-08-07 22:55:44 -06:00 |
Eric Wasylishen
|
9004bed24e
|
light: don't add 0 brightness suns
|
2016-08-07 16:33:13 -06:00 |
Eric Wasylishen
|
5e6f2220e8
|
light: quick hack fix of spotlights in bounce mode
|
2016-08-06 17:31:39 -06:00 |
Eric Wasylishen
|
939778bd23
|
build: add snprintf wrapper from QuakeSpasm (vs2013 compat)
|
2016-08-06 15:47:40 -07:00 |
Eric Wasylishen
|
a807204fe6
|
build: vs2013 compat changes
|
2016-08-06 15:37:00 -07:00 |
Eric Wasylishen
|
292d35879b
|
build: restore mingw support
|
2016-08-05 04:07:01 -04:00 |
Eric Wasylishen
|
7029ed5713
|
light: clean headers
|
2016-08-04 16:32:04 -06:00 |
Eric Wasylishen
|
fcc54c547f
|
light: change CalcPoints to only trace the model the face belongs to
|
2016-08-04 12:24:07 -06:00 |
Eric Wasylishen
|
2a3b87bf1f
|
light: rework bounce lighting for less memory use
|
2016-08-03 14:00:58 -06:00 |
Eric Wasylishen
|
9f0f2cdf83
|
light: add debug dump for lights
|
2016-08-01 21:38:14 -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
|
b4e0a7a5fa
|
light: GetLightValue: remove extra param
|
2016-07-31 18:53:41 -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
|
cbd7290e3c
|
light: log when writing litfile
|
2016-07-31 17:54:00 -06:00 |
Eric Wasylishen
|
307d0efc28
|
light: minor cleanups
|
2016-07-31 17:00:35 -06:00 |
Eric Wasylishen
|
03f703d931
|
light: remove redundant light value from lightsample_t
|
2016-07-31 11:47:27 -06:00 |
Eric Wasylishen
|
707ae70fe1
|
light: don't use c99 designated initializers (msvc compat)
|
2016-07-30 00:47:43 -06:00 |
Eric Wasylishen
|
882348ac0a
|
light: use embree ray stream api
|
2016-07-30 00:40:45 -06:00 |
Eric Wasylishen
|
225a155efd
|
light: fix unwanted phong on everything
|
2016-07-29 19:48:28 -06:00 |
Eric Wasylishen
|
d7bb75ae97
|
light: modelinfo: change to storing pointers in std::vector rather than modelinfo_t
|
2016-07-29 16:01:34 -06:00 |
Eric Wasylishen
|
6bb842cd47
|
light: refactor tracelist and selfshadowlist to be std::vector
|
2016-07-29 15:56:48 -06:00 |
Eric Wasylishen
|
b669767fe0
|
light: add an assertion for model offsets
|
2016-07-29 15:51:26 -06:00 |
Eric Wasylishen
|
a0d3a90df9
|
light: fix uninitialized model offset causing messed up lighting on submodels (!)
|
2016-07-29 13:34:42 -06:00 |
Eric Wasylishen
|
c3de3eb99a
|
light: -dumpface: also print model number
|
2016-07-29 12:28:15 -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
|
7edf27de0c
|
build: fix escaping in light/CMakeLists.txt
|
2016-07-27 19:21:53 -06:00 |
Eric Wasylishen
|
f4a363b416
|
light: make DirtTrace return a hittype_t
|
2016-07-27 13:07:50 -06:00 |
Eric Wasylishen
|
197c898976
|
light: hack to allow "-dirt 0" to disable all dirmapping (todo: check -dirt 1 implies minlight, sunlight dirt properly?)
|
2016-07-27 12:37:57 -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
|
2651c79307
|
light: fixes to settings system
|
2016-07-27 02:20:25 -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
|
9279c86fb5
|
light: fix -addmin switch (temporary hack)
|
2016-07-26 16:09:16 -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 |
Eric Wasylishen
|
0501f07673
|
light: clean WorldValueForKey/SetWorldKeyValue
|
2016-07-24 16:56:40 -06:00 |
Eric Wasylishen
|
ca507336ca
|
light: use entdicts array for FIndModelInfo
|
2016-07-24 16:08:38 -06:00 |
Eric Wasylishen
|
d8094c83e5
|
light: EntDict_FloatForKey: avoid throwing exceptions excessively
|
2016-07-24 16:00:00 -06:00 |
Eric Wasylishen
|
7fdd5f2da4
|
light: entities: clean up parsing and writing entdata
|
2016-07-24 15:09:57 -06:00 |
Eric Wasylishen
|
203c32a613
|
light: misc fixes. lights not casting on world?
|
2016-07-24 12:55:07 -06:00 |
Eric Wasylishen
|
dc856a329d
|
light: use settings system for lights
|
2016-07-24 12:23:46 -06:00 |
Eric Wasylishen
|
2c350b1f21
|
light: finish porting modelinfo reading to settings system
|
2016-07-24 00:31:58 -06:00 |
Eric Wasylishen
|
5566e1f85d
|
light: convert modelinfo_t to use settings system
|
2016-07-24 00:26:42 -06:00 |
Eric Wasylishen
|
8851a3d8c3
|
light: remove some dead code
|
2016-07-23 23:27:19 -06:00 |
Eric Wasylishen
|
cc2bb5158a
|
light: add class for a dictionary of settings
|
2016-07-23 22:54:32 -06:00 |
Eric Wasylishen
|
0cd0778860
|
light: fix typo, min_color should have been mincolor
|
2016-07-23 22:54:17 -06:00 |
Eric Wasylishen
|
2e9c58fb46
|
light: move command-line parsing to use settings system
|
2016-07-23 21:43:54 -06:00 |
Eric Wasylishen
|
df62b9fa16
|
light: handle worldspawn keys through new settings system
|
2016-07-23 20:26:09 -06:00 |
Eric Wasylishen
|
8b8cc4a37a
|
light: add transformers for color and mangle
|
2016-07-22 14:02:43 -06:00 |
Eric Wasylishen
|
191949e569
|
Merge branch 'stable'
* stable:
light: trace: fix MakeTnodes_r blowing up with ijed's rift1.map
# Conflicts:
# light/trace.cc
|
2016-07-21 01:51:23 -06:00 |
Eric Wasylishen
|
f05faf9614
|
light: trace: fix MakeTnodes_r blowing up with ijed's rift1.map
|
2016-07-21 00:29:58 -06:00 |
Eric Wasylishen
|
f7d3bfbeb3
|
Merge branch 'stable'
|
2016-07-20 19:12:23 -06:00 |
Eric Wasylishen
|
2c0f39ea38
|
light: make TriArea non-static
|
2016-07-20 19:06:12 -06:00 |
Eric Wasylishen
|
4c59a00d2b
|
light: add -debugvert command
|
2016-07-20 19:05:55 -06:00 |
Eric Wasylishen
|
42c4195ad6
|
light: make -debugface print more debug info
|
2016-07-20 16:16:00 -06:00 |
Eric Wasylishen
|
26fbffa2bf
|
light: add GetSurfaceVertex and GetSurfaceVertexPoint to header
|
2016-07-20 16:15:42 -06:00 |
Eric Wasylishen
|
b15e0052bf
|
light: fix phong shading on models with an offset
|
2016-07-20 16:06:48 -06:00 |
Eric Wasylishen
|
7f939b8146
|
light: hack to workaround https://github.com/ericwa/tyrutils-ericw/issues/67 . worldspawn was being inserted into the list of lights when it had a minlight value set (!?!)
|
2016-07-20 16:04:35 -06:00 |
Eric Wasylishen
|
5bf59a469d
|
light: option parser: allow negative numbers as option args
|
2016-07-20 16:04:26 -06:00 |
Eric Wasylishen
|
d86e6acec6
|
light: add SetString
|
2016-07-16 13:11:59 -06:00 |
Eric Wasylishen
|
ee50412f65
|
light: add FindSetting function
|
2016-07-15 10:44:35 -06:00 |
Eric Wasylishen
|
60d96df31c
|
light: set min/max values for some settings
|
2016-07-14 00:02:44 -06:00 |
Eric Wasylishen
|
08a6733204
|
light: refactor settings system
|
2016-07-13 22:55:55 -06:00 |