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 |
Eric Wasylishen
|
d467888d89
|
light: register settings in a map
|
2016-07-13 22:11:21 -06:00 |
Eric Wasylishen
|
cd013405e7
|
light: convert more settings to lockable_*_t
|
2016-07-13 21:51:04 -06:00 |
Eric Wasylishen
|
42657f9607
|
light: record setting names
|
2016-07-13 21:33:38 -06:00 |
Eric Wasylishen
|
e012a2c93e
|
light: finish c++ifying
|
2016-07-06 13:14:06 -06:00 |
Eric Wasylishen
|
1c8e7e6585
|
light: remove use of c99 designated initializers since they're not in c++11
|
2016-07-06 00:13:30 -06:00 |
Eric Wasylishen
|
34bc864616
|
light: print elapsed time to 3 decimal places
|
2016-07-04 21:06:34 -06:00 |
Eric Wasylishen
|
ec6352a5fe
|
light: option parser: allow negative numbers as option args
|
2016-06-30 14:14:59 -06:00 |
Eric Wasylishen
|
5054ced22d
|
light: fix embree support
|
2016-06-17 21:21:30 -06:00 |
Eric Wasylishen
|
7c3aa545bb
|
light: sunlight refactoring
|
2016-06-09 00:47:59 -06:00 |
Eric Wasylishen
|
aa998d7b7a
|
light: support sunlight options on command-line
|
2016-06-09 00:31:52 -06:00 |
Eric Wasylishen
|
4e5a7a79b1
|
light: refactor and make option parsing safer
|
2016-06-08 23:39:38 -06:00 |
Eric Wasylishen
|
f29c8fa0f6
|
light: clamp bouncecolorscale to [0,1]
|
2016-06-08 22:57:52 -06:00 |
Eric Wasylishen
|
d1c4470fc1
|
light: add "-novis" to help listing
|
2016-06-04 22:22:22 -06:00 |
Eric Wasylishen
|
ecea00cec2
|
light: tweaks to usage text
|
2016-06-01 17:38:30 -06:00 |
Eric Wasylishen
|
26fd4b6d28
|
light: tidy log message
|
2016-06-01 16:34:35 -06:00 |
Eric Wasylishen
|
72e07f82fb
|
light: print message when visdata in use
|
2016-06-01 16:04:18 -06:00 |
Eric Wasylishen
|
45daf59df7
|
light: improve usage message. recognize -help flag. show usage when an unknown command given.
|
2016-06-01 13:55:41 -06:00 |
Eric Wasylishen
|
3e8d9b7dfd
|
light: warn about gate > 1
|
2016-05-31 18:23:37 -06:00 |
Eric Wasylishen
|
826f44d8cf
|
light: disable "interior verts" spam
|
2016-05-31 18:19:35 -06:00 |
Eric Wasylishen
|
280aadfbd8
|
light: add -debugface option for debugging CalcPoints
|
2016-05-30 00:15:07 -06:00 |
Eric Wasylishen
|
a63a96e877
|
light: update usage text
|
2016-05-27 20:45:44 -06:00 |
Eric Wasylishen
|
21a4fd5287
|
light: allow disabling bounce on command line
|
2016-05-27 18:47:12 -06:00 |
Eric Wasylishen
|
bb19618763
|
light: add -phong 0 flag to force phong shading to be disabled
|
2016-05-27 18:18:50 -06:00 |
Eric Wasylishen
|
a4445bdd77
|
light: allow force-disabling dirtmapping at the command line
|
2016-05-27 17:52:56 -06:00 |
Eric Wasylishen
|
af6b4aa375
|
light: remove useless -no_parse_escape_sequences flag
|
2016-05-27 15:51:33 -06:00 |
Eric Wasylishen
|
b17e345087
|
light: remove broken -fence feature
|
2016-05-27 15:50:52 -06:00 |
Eric Wasylishen
|
d524b4c3ad
|
light: fix parsing of command-line argument to -soft and -anglesense, when those are the last params
|
2016-05-27 15:43:24 -06:00 |
Eric Wasylishen
|
30673903ed
|
light: refactor dirt*SetOnCmdline variables
|
2016-05-27 15:22:32 -06:00 |
Eric Wasylishen
|
ca0f0448fe
|
light: only allow one debug mode at a time
|
2016-05-27 12:25:51 -06:00 |
Eric Wasylishen
|
e290d844bf
|
light: only shadow-casting faces generate bounce lights
|
2016-05-20 13:34:30 -06:00 |
Eric Wasylishen
|
11ea23f6f2
|
light: don't delete litfile for -onlyents compile
|
2016-05-20 12:20:39 -06:00 |
Eric Wasylishen
|
55df37941c
|
light: add -bouncecolorscale flag
|
2016-05-20 12:00:57 -06:00 |
Eric Wasylishen
|
45010089f3
|
light, common: move WindingFromFace to bspfile.c/h
|
2016-05-19 15:07:31 -06:00 |
Eric Wasylishen
|
fff12697e5
|
light: move DicePatch to polylib.c
|
2016-05-19 15:03:21 -06:00 |
Eric Wasylishen
|
a0f636a69a
|
light: bounce: refactor to do in a second lighting pass
|
2016-05-19 02:53:18 -06:00 |
Eric Wasylishen
|
a5356c161c
|
light: bounce: scale bounced light by texture color
|
2016-05-14 20:51:21 -06:00 |
Eric Wasylishen
|
3fb8b7d1e5
|
light: delete -lightturb and related flags for generating lightmaps for TEX_SPECIAL textures.
mankrip's lit water implementation relies on qbsp splitting water, so this code is not needed.
|
2016-04-29 23:23:28 -06:00 |
Eric Wasylishen
|
6ba2d99782
|
light: bounce: add some debug code
|
2016-04-29 22:52:33 -06:00 |
Eric Wasylishen
|
bd68abad32
|
light: add LightWorld log header
|
2016-04-29 22:51:32 -06:00 |
Eric Wasylishen
|
99f6451741
|
light: bounce: don't generate bounce lights for "skip" texture
|
2016-04-29 22:43:42 -06:00 |
Eric Wasylishen
|
72c47c1b56
|
light: bounce: refactor a bit
|
2016-04-29 18:11:14 -06:00 |
Eric Wasylishen
|
9271a405d1
|
light: bounce: fix scaling of sunlight brightness
|
2016-04-29 13:06:40 -06:00 |
Eric Wasylishen
|
ebf04ceb24
|
light: bounce: multithread MakeBounceLights
|
2016-04-29 11:40:10 -06:00 |
Eric Wasylishen
|
2bca34265c
|
light: use vis acceleration for bounce lights
|
2016-04-29 11:27:02 -06:00 |
Eric Wasylishen
|
6459e53316
|
light: bounce: force a "gate" like cutoff for bounce lights
|
2016-04-28 23:18:49 -06:00 |
Eric Wasylishen
|
430c4b39b7
|
light: bounce: only scale by sending surface normal, not receiving.. seems to look better
|
2016-04-27 21:16:48 -06:00 |
Eric Wasylishen
|
713b92dcb5
|
light: preliminary bounce implementation
|
2016-04-27 19:19:29 -06:00 |
Eric Wasylishen
|
007696a734
|
light: fix face normal smoothing condition
|
2016-04-27 16:44:40 -06:00 |
Eric Wasylishen
|
d426c8d9da
|
light: some setup for bounced lighting
|
2016-04-26 15:14:22 -06:00 |
Eric Wasylishen
|
11d7c4c44c
|
light: fix build on travis
|
2016-04-26 01:13:42 -06:00 |
Eric Wasylishen
|
c58528499d
|
light: when interpolating a normal that lies outside of a face, recursively look it up on adjacent faces
|
2016-04-26 00:29:50 -06:00 |
Eric Wasylishen
|
8c28413a31
|
light: obj export: only export model 0
|
2016-04-26 00:22:26 -06:00 |
Eric Wasylishen
|
5ac18e5c6f
|
light: index some PVS info at startup
|
2016-04-22 20:11:59 -06:00 |
Eric Wasylishen
|
1ea4d52eab
|
light: add -novis flag
|
2016-04-20 23:57:04 -06:00 |
Eric Wasylishen
|
03df93851b
|
light: phong shading: handle some sources of nan's
|
2016-04-19 19:33:49 -06:00 |
Eric Wasylishen
|
2a4168f35c
|
light: add _minlight_exclude bmodel key
|
2016-04-17 22:51:14 -06:00 |
Eric Wasylishen
|
32b48a443b
|
light: track interior verts for normal interpolation (not used currently)
|
2016-04-14 15:13:01 -06:00 |
Eric Wasylishen
|
c6d8aff03b
|
light: guard against acos returning nan due to fp error in CalcualateVertexNormals
|
2016-04-11 01:49:02 -06:00 |
Eric Wasylishen
|
ed6dfbaf76
|
light: disable obj exporter
|
2016-04-11 01:14:54 -06:00 |
Eric Wasylishen
|
8228bf979f
|
light: obj exporter
|
2016-04-11 00:46:42 -06:00 |
Eric Wasylishen
|
986334a86b
|
light: unify "_anglescale" worldspawn key and "-anglescale" command line option, previously they were different.
Fix "-anglescale" command line option which was broken.
Make sunlight2 use the global anglescale setting.
|
2016-04-10 18:25:15 -06:00 |
Eric Wasylishen
|
0a6708edb0
|
light: remove embree support
|
2016-04-10 14:43:37 -06:00 |
Eric Wasylishen
|
c135ab6b2b
|
light: error if bsp->nummodels == 0
|
2016-04-07 23:26:23 -06:00 |
Eric Wasylishen
|
e6f58ece0c
|
Revert "light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs"
This reverts commit bbc95a1364.
|
2016-04-07 22:20:24 -06:00 |
Eric Wasylishen
|
ecfa3c3e12
|
light: enable -parse_escape_sequences by default
|
2016-04-07 21:47:26 -06:00 |
Eric Wasylishen
|
96a8dc8c3d
|
light: disable "Failed to calculate normal for vertex" warning because it was not really an error and causing spam
qbsp T-Juncs generate lots of colinear vertices I think?
|
2016-04-07 21:16:54 -06:00 |
Eric Wasylishen
|
a6a89db530
|
light: refactor tracelist to be a list of modelinfo_t instead of dmodel_t
|
2016-04-05 23:25:36 -06:00 |
Eric Wasylishen
|
bbc95a1364
|
light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs
|
2016-04-05 15:00:12 -06:00 |
Eric Wasylishen
|
33ee7e35f7
|
light: delete .lit file before starting
|
2016-04-03 18:25:30 -06:00 |
Eric Wasylishen
|
e11e9d5c1f
|
light: embree support
|
2016-03-30 14:58:21 -06:00 |
Eric Wasylishen
|
d2f1eb2b2b
|
light: support _phong and _phong_angle on bmodels for compatibility with other qbsp's.
|
2016-03-05 22:51:17 -07:00 |
Eric Wasylishen
|
41972a376a
|
qbsp, light: Strip texinfo flags other than TEX_SPECIAL.
Write extended ones to a "mapname.texinfo" file.
Support "_dirt" and "_minlight" flags on func_detail/group.
|
2016-03-05 00:26:54 -07:00 |
Eric Wasylishen
|
72d7ce4231
|
light: handle degenerate triangles when smoothing normals
|
2016-03-03 12:38:03 -07:00 |
Eric Wasylishen
|
492d94c1fe
|
light: new phong shading keys, "_phong_angle" and "_phong".
"_phong" "1" is a shortcut for "_phong_angle" "89".
"_phong_angle" sets the max angle in degrees between faces that will get smoothed.
|
2016-03-02 20:00:05 -07:00 |
Eric Wasylishen
|
f641e93ca2
|
light: convert light.c to light.cc
|
2016-03-02 17:07:02 -07:00 |