Commit Graph

857 Commits

Author SHA1 Message Date
Eric Wasylishen 0733499da5 light: fix for black corners on dirttest.map (test map from lunaran) 2016-04-06 22:38:09 -06:00
Eric Wasylishen 6fcf04a298 light: revert to older CalcPoints (push off hit normal) to fix artifacts in testlightonface.map 2016-04-06 19:15:19 -06:00
Eric Wasylishen c9aad9d2ce light: Refactor CalcPoints, store whether a point is occluded 2016-04-06 18:29:24 -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 7a336a4881 light: update phongtest.map 2016-04-05 15:01:34 -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 bae924ebd0 light: update phongtest.map 2016-04-05 13:27:31 -06:00
Eric Wasylishen 6a7aceec77 light: add phong test map 2016-04-05 13:02:41 -06:00
Eric Wasylishen a407b971bc light: rework LightFace_Entity to fully fix testlightonface.map 2016-04-05 12:52:44 -06:00
Eric Wasylishen aed29da060 light: tweak embree settings to fix "fireflies" 2016-04-05 12:27:51 -06:00
Eric Wasylishen 163b599900 light: tweak angle test for testlightonface.map. 2016-04-05 00:58:05 -06:00
Eric Wasylishen 47e7a981f6 light: get rid of unneeded unordered_set 2016-04-05 00:13:29 -06:00
Eric Wasylishen f315366f43 light: hack to fix lights exactly on faces 2016-04-04 23:58:12 -06:00
Eric Wasylishen a4276825e9 light: add testlightonface.map. currently broken 2016-04-04 23:40:34 -06:00
Eric Wasylishen 33ee7e35f7 light: delete .lit file before starting 2016-04-03 18:25:30 -06:00
Eric Wasylishen 2121e73386 qbsp: fix -onlyents, broken in c++-ifying 2016-04-03 18:20:31 -06:00
Eric Wasylishen 901e56f375 common: WriteBSPFile: log the filename being written 2016-03-31 18:12:11 -06:00
Eric Wasylishen fe8a7660e2 build: another appveyor fix 2016-03-30 15:32:12 -07:00
Eric Wasylishen d53e67bf8a light: copy embree DLL's 2016-03-30 15:26:36 -07:00
Eric Wasylishen aa31fcd285 build: try again to fix appveyor 2016-03-30 15:07:05 -07:00
Eric Wasylishen 49cde9f871 build: try to fix appveyor script 2016-03-30 14:53:21 -07:00
Eric Wasylishen 78ee36f687 build: try fixing appveyor build 2016-03-30 14:20:32 -07:00
Eric Wasylishen e11e9d5c1f light: embree support 2016-03-30 14:58:21 -06:00
Eric Wasylishen 177e037de3 qbsp: better bounds checking for mapbrush_t::face and mapentity_t::mapbrush 2016-03-20 20:02:39 -06:00
Eric Wasylishen 86e92ee6b3 qbsp: add missing include 2016-03-20 14:08:34 -06:00
Eric Wasylishen 60c0b64906 qbsp: change mapdata_t to use std::vector 2016-03-20 14:02:31 -06:00
Eric Wasylishen f3639eb1e3 qbsp: csg: rewrite planefaces structure to use std::map 2016-03-12 14:23:26 -07:00
Eric Wasylishen 4ee88ede3b qbsp: turn map.num* into functions 2016-03-12 13:50:24 -07:00
Eric Wasylishen 3db441eea2 qbsp: rename files to .cc 2016-03-12 13:02:28 -07:00
Eric Wasylishen ecff3f77a8 qbsp: add casts to compile as c++ 2016-03-12 13:00:33 -07:00
Eric Wasylishen 923118dfc6 qbsp: convert qbsp.c to c++ 2016-03-11 20:43:05 -07:00
Eric Wasylishen 4f66bd7ddc qbsp: grow texinfo array as needed 2016-03-11 19:30:20 -07:00
Eric Wasylishen 6e94f6a1c2 qbsp: c++ compat changes 2016-03-11 19:25:55 -07:00
Eric Wasylishen a4c24ac0fa qbsp: add -objexport flag to export to obj 2016-03-11 18:29:24 -07:00
Eric Wasylishen c61ab264c7 docs: update light docs 2016-03-06 00:27:34 -07:00
Eric Wasylishen 34858ed243 light: fix sunlight + phong shading 2016-03-05 23:56:28 -07: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 c23bfc6966 docs: update README 2016-03-05 21:41:24 -07:00
Eric Wasylishen 1a48e5a24a light: fix issue with CalcPoints trace hitting a corner, spuriously setting tr.hitback, and returning the wrong hitpoint 2016-03-05 00:57:47 -07:00
Eric Wasylishen bc6e2ed3ee light: update dirttest.map testmap 2016-03-05 00:32:34 -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 0b4c044473 light: fix dirtmapping traces 2016-03-04 20:40:14 -07:00
Eric Wasylishen 98a020fde7 vis: fix ambient sounds when using func_detail, broken in tyrutils-ericw-v0.15.3 2016-03-04 15:38:08 -07:00
Eric Wasylishen 8ed849f462 light: add dirtmapping test map 2016-03-03 15:52:06 -07:00
Eric Wasylishen 72d7ce4231 light: handle degenerate triangles when smoothing normals 2016-03-03 12:38:03 -07:00
Eric Wasylishen d66857b5a0 light: try fixing cmake msvc build 2016-03-03 11:14:14 -07:00
Eric Wasylishen fec88c3186 light: fix build on MSVC 2016-03-02 19:21:30 -08: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
Eric Wasylishen 3056971ae6 light: fix issue with lights within 1 unit of a face not casting light on that face
fixes https://github.com/ericwa/tyrutils-ericw/issues/10
2016-02-25 23:02:43 -07:00