Eric Wasylishen
|
22f0def4b1
|
update Catch2 to v3.0.1
|
2022-06-26 13:21:29 -06:00 |
Jonathan
|
2264de71a2
|
Revert "very slight speedup (~3% improvement) on normalize; don't sqrt if we don't need to (rare), and use multiplication instead of division"
This reverts commit 8fe525f5b2.
|
2022-06-26 01:24:47 -04:00 |
Jonathan
|
00485553f3
|
/ should be *
|
2022-06-26 01:22:03 -04:00 |
Jonathan
|
033a84cac8
|
cache anything related to triangle-face info in a single struct that we access per ray
|
2022-06-25 22:22:24 -04:00 |
Jonathan
|
8fe525f5b2
|
very slight speedup (~3% improvement) on normalize; don't sqrt if we don't need to (rare), and use multiplication instead of division
|
2022-06-25 20:56:08 -04:00 |
Jonathan
|
a4c304272a
|
use floats for dealing with ray info, for consistency (and to avoid a bunch of float->double casts)
use raydir from hit point rather than calculating it twice
|
2022-06-25 04:47:26 -04:00 |
Jonathan
|
062ff86a0d
|
cache texture pointers, saving expensive lookups per ray
|
2022-06-25 04:28:00 -04:00 |
Jonathan
|
b4583908af
|
slight speed improvement; these weren't inlining properly, they do now though
|
2022-06-25 04:20:24 -04:00 |
Jonathan
|
8b1472dfd1
|
Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
|
2022-06-24 04:33:14 -04:00 |
Jonathan
|
90c08ca1da
|
move bounce lighting into a post-processing operation and split LightFace into Direct and Indirect
|
2022-06-24 04:33:08 -04:00 |
Eric Wasylishen
|
aabd1c27dc
|
qbsp: face_t: make contents, lmshifts single sided
side_t: same, also remove contents (unused)
|
2022-06-24 01:14:11 -06:00 |
Eric Wasylishen
|
2452d5edda
|
Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
|
2022-06-24 00:54:55 -06:00 |
Jonathan
|
c7169e11ee
|
split LightFace into three distinct phases: Create, Light, and Save
|
2022-06-24 02:54:41 -04:00 |
Eric Wasylishen
|
7b81702c08
|
qbsp: remove unneeded fields from side_t/face_t
|
2022-06-24 00:54:02 -06:00 |
Eric Wasylishen
|
afec0a947e
|
qbsp: change bspbrush_t.sides from face_t to side_t
|
2022-06-24 00:43:40 -06:00 |
Eric Wasylishen
|
fac5ea384d
|
qbsp: rename bspbrush_t.faces to .sides
|
2022-06-24 00:21:55 -06:00 |
Eric Wasylishen
|
7e4169f001
|
qbsp: add a placeholder side_t that's just a copy of fae_t
|
2022-06-24 00:18:19 -06:00 |
Eric Wasylishen
|
b37d29ee33
|
common: rename side_t -> planeside_t (side_t is used by qbsp3)
|
2022-06-24 00:16:46 -06:00 |
Eric Wasylishen
|
4a1c5842a3
|
qbsp: rename solidbsp.cc -> brushbsp.cc for consistency with qbsp3
|
2022-06-24 00:08:12 -06:00 |
Eric Wasylishen
|
038651fca6
|
qbsp: rename brush_t -> bspbrush_t for consistency with qbsp3
|
2022-06-24 00:01:02 -06:00 |
Jonathan
|
4e73d9b196
|
remove unused struct
|
2022-06-23 23:45:55 -04:00 |
Jonathan
|
12a5c6555c
|
remove extra line
|
2022-06-23 23:29:11 -04:00 |
Jonathan
|
7010cc7ed2
|
remove unnecessary includes from entdata
|
2022-06-23 19:07:10 -04:00 |
Jonathan
|
579140067f
|
expose vector.size() using a subtype to not pollute winding_base_t
|
2022-06-23 18:42:38 -04:00 |
Jonathan
|
1718512b09
|
remove unnecessary "uncompressed_q2" - can just be a single buffer now
another ptr->vector
|
2022-06-23 17:08:50 -04:00 |
Jonathan
|
3ac1d02624
|
fix missing noexcept
explicit initialization in some cases for vis winding_t's parameters
more vector
|
2022-06-23 17:02:18 -04:00 |
Jonathan
|
ee596f3ff1
|
use vector for vis state
set autoclean default to true, make it invertable
|
2022-06-23 16:18:52 -04:00 |
Jonathan
|
70d87a52d6
|
more pointers to vectors
|
2022-06-23 16:05:11 -04:00 |
Jonathan
|
1d21a33a3b
|
use a thread local static for `LightFace_CalculateDirt` so it's not continuously allocating/deallocating
|
2022-06-23 01:47:28 -04:00 |
Jonathan
|
59e543fabe
|
Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
|
2022-06-23 01:25:08 -04:00 |
Jonathan
|
e2c8594450
|
simplify sample stuff
don't clear lightmap if we haven't written to it yet
|
2022-06-23 01:25:01 -04:00 |
Jonathan
|
c6521aa0b6
|
move aligned allocator to cmdlib
|
2022-06-23 00:39:28 -04:00 |
Eric Wasylishen
|
92af2ed3f7
|
qbsp: restore weird 1 unit bounds shrinkage Q1 needs
|
2022-06-22 22:37:09 -06:00 |
Eric Wasylishen
|
af802d5447
|
qbsp: fix model bounds
|
2022-06-22 22:23:14 -06:00 |
Eric Wasylishen
|
84263ef1a1
|
testqbsp: add model bounds test map
|
2022-06-22 22:11:40 -06:00 |
Eric Wasylishen
|
b99ea58ed7
|
testqbsp: q1 leaf/node bounds tests
|
2022-06-22 21:43:41 -06:00 |
Eric Wasylishen
|
f84c794668
|
testqbsp: make "origin" test accept legacy ericwtools output
|
2022-06-22 21:43:41 -06:00 |
Jonathan
|
436a9183e7
|
use aligned allocator for rays
|
2022-06-22 23:42:38 -04:00 |
Jonathan
|
eb50be92f8
|
use "resize" function to circumvent weird crashing issue
|
2022-06-22 22:55:05 -04:00 |
Jonathan
|
1d221d3999
|
only use Embree stuff
|
2022-06-22 22:23:48 -04:00 |
Jonathan
|
3f75bb4039
|
put ExportObj behind an option
|
2022-06-22 18:13:56 -04:00 |
Jonathan
|
cb3ef7b19f
|
allow radlights to specify an entity dictionary instead (if the input is a .ent, it is an entity dict) which is more flexible
|
2022-06-22 17:03:00 -04:00 |
Jonathan
|
383843a454
|
fix missing make_unique
|
2022-06-22 16:12:20 -04:00 |
Jonathan
|
6f6185e1a3
|
use unique_ptr for leafbits allocations
|
2022-06-22 16:04:55 -04:00 |
Jonathan
|
b725b32c66
|
fix compile
|
2022-06-22 15:50:38 -04:00 |
Jonathan
|
0fa779afaa
|
Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
|
2022-06-22 14:43:57 -04:00 |
Jonathan
|
dfdd568974
|
use unique_ptr
|
2022-06-22 14:43:53 -04:00 |
Eric Wasylishen
|
c054db0f48
|
testqbsp: shouldn't use -keepprt as the tests are checking for the .prt files
|
2022-06-21 23:46:13 -06:00 |
Jonathan
|
54ac8123e3
|
use old WindingIsTiny
|
2022-06-22 01:02:12 -04:00 |
Eric Wasylishen
|
b77c25dcd4
|
qbsp: fix -keepprt
|
2022-06-21 22:05:54 -06:00 |