dbeb2d0718
rename game -> g_game
Garux
2021-09-13 18:49:09 +03:00
5c5f698c28
use standard [[ noreturn ]] attribute add ENSURE macro
Garux
2021-09-13 18:22:44 +03:00
ef635cd95c
remove direct uses of MAIN_C macro
Garux
2021-09-13 16:33:29 +03:00
68b8d7d5dc
refactor game configs: using class inheritance to avoid massive duplication
Garux
2021-09-13 16:11:01 +03:00
34fc3d0a5d
minor tweaks
Garux
2021-09-08 20:03:15 +03:00
18c741a960
remove unused side_t field
Garux
2021-09-08 19:45:04 +03:00
77f2e39af5
minor tweaks
Garux
2021-09-08 19:40:09 +03:00
f3321cef5f
* auto fog direction: try all sides, not just axial; default to none, if no visible sides * q3map_fogDir: pick best matching side, not strict match only; ignore invisible 'bevel' sides
Garux
2021-09-08 19:22:18 +03:00
23d82aa9ef
* prioritize +Z fog visible side in ambiguous case (= -Z fog direction), as in fogged pit
Garux
2021-09-08 10:11:49 +03:00
204c3138e2
emit warning on expected practical engine fog limit overflow
Garux
2021-09-07 08:14:04 +03:00
43b5148447
remove -metaMaxBBoxDistance with current 'pre weld' strategy it's not optimization anymore, also wont work as option to merge non welded triangles with adjusted meta score
Garux
2021-09-05 14:45:01 +03:00
191d489d62
* hasten MergeMetaTriangles and SmoothMetaTriangles to perform typically in 0 seconds * improve quality of metasurfaces and reduce their count in general case
Garux
2021-09-05 11:37:00 +03:00
bafb339c09
MergeMetaTriangles: epsilon compare st, improves merging imprecise sts, e.g. for nonplanar surfaces after q3map_tcgen or just brush face texture projection
Garux
2021-09-03 06:23:40 +03:00
d113eed245
improve MergeMetaTriangles out surfaces quality and reduce count
Garux
2021-09-03 06:19:41 +03:00
7f8e548c2f
* hasten MergeMetaTriangles greatly (around 30 times in worst case) this has negative impact on surfaces count in certain scenario (big axial surface of easily mergable triangles) it wins predecessor once we rotate such surface so may be consider choosing sorting plane per lump or mergables algorithm itself is dependent on test data ordering, thus best option would be tweaking it, not prerequisites redundant indexes suppressed count is always worse with this due to sorting nature, sorting per axial plane helps assuming this optimization is not important and case dependent
Garux
2021-09-01 20:16:57 +03:00
0ad3d89d4a
use spatially sorted indices during search of coincident vertices in AddMetaVertToSurface
Garux
2021-08-28 10:56:50 +03:00
e780b45696
enfasten -meta for nonplanar by doing cheap check 1st
Garux
2021-08-27 17:13:26 +03:00
160c1d33db
remove -texrange business (assuming it's not relevant for decades) optimize -meta (shave off 1/3 in worst case)
Garux
2021-08-27 12:18:56 +03:00
aa4f3a1f72
reduce the use of GSlist Quake3FileSystem::forEachFile: avoid double extension check, support "*", as advertised
Garux
2021-08-19 12:28:56 +03:00
41c3dfc96e
add move constructor, assignment to String class
Garux
2021-08-18 01:24:53 +03:00
1372ea440b
more move semantics
Garux
2021-08-14 08:21:25 +03:00
bb1931b745
* sort pk3s, so content of later (zzz) overrides earlier, like in radiant and engine * fix strong performance penalty with large amount of files in pk3s store pak file path once per pk3, not per each file inside
Garux
2021-08-13 03:20:07 +03:00
4beae3d362
* support entries with .shader extension in shaderlist.txt vfsListShaderFiles (empty shaderlist = load all shaders, -pk3, -repack): only list pk3 .shaders from scripts/ folder support non scripts/ shaderPath (e.g. jka) unlimit shader files count case insensitive shaderlist entries, so duplicates aren't loaded twice
Garux
2021-08-12 11:23:59 +03:00
f492ab27eb
more c++ in q3map2
Garux
2021-08-10 22:41:43 +03:00
99f4a4a767
minor tweaks
Garux
2021-08-03 20:54:21 +03:00
357f67f237
remove Q_EXTERN int numLights remove /* potential pre-setup */ : 1. it seems to never actually be the case 2. it is called from threaded functions, while SetupEnvelopes() itself is not thread safe
Garux
2021-08-03 18:26:47 +03:00
a1daaa2946
remove commented out code
Garux
2021-07-02 17:19:56 +03:00
da55e8cbb4
* ctrl + m3/drag: also paste texture seamlessly from brush face to patch and vice versa, when face edje is adjacent to patch edje
Garux
2021-07-02 17:16:50 +03:00
133b146712
limit camera workzone renderable data amount fixes performance with big selection + small grid fixes crash, while scaling brush + model to zero
Garux
2021-07-02 16:55:50 +03:00
0e4a4fdcf6
* fix _castShadows > 1: cast on world, as advertised
Garux
2021-07-02 16:50:01 +03:00
4471302857
add and use BasicVector3.vec2()
Garux
2021-06-23 16:51:03 +03:00
4697d7940c
fix new gcc build error: ‘N’ is not a constant expression, while using offsetof
Garux
2021-06-22 20:49:42 +03:00
3b9b05d40e
Undo changing to unsigned int for maxLMSurfaceVerts, maxSurfaceVerts and maxSurfaceIndexes. Restore qfusion.h long value
germangar
2021-06-03 22:28:29 +02:00
451f88efd7
Fix: Do not ignore game descriptor value for maxLMSurfaceVerts and keepLights Use unsigned int for maxLMSurfaceVerts, maxSurfaceVerts and maxSurfaceIndexes Fix: Out of bounds value at qfusion.h
germangar
2021-06-02 12:16:44 +02:00
5efe29d863
* use dynamic maxSurfaceVerts (user preference/game define) in 'force meta process for a surface' decision (was hardcoded)
Garux
2021-05-20 17:10:31 +03:00
5c3b7d842c
* entity keys: prefer "angles" over "angle", "modelscale_vec" over "modelscale" if both are set
Garux
2021-05-16 21:50:09 +03:00
da98f5f9d9
add and use Entity::getClassName(), Entity::hasKeyValue() do not return default value from getKeyValue()
Garux
2021-05-16 10:13:42 +03:00
ed04f90497
* .ent: "direction" attribute presence enables -1/-2 angle support for EclassModel, GenericEntity * .ent: "angles" attribute presence enables angles support for EclassModel
Garux
2021-05-15 23:38:41 +03:00
155c2624b1
* .ent: support setting default model value of MiscModel type (<model key="model" name="Model File" value="ass/spider.mdc">)
Garux
2021-05-15 18:10:34 +03:00
4a53b753b8
make libassimp_.$(DLL) order-only prerequisite to avoid it in the $^ list = fix linking in linux
Garux
2021-05-13 20:42:14 +03:00
31e7829e2b
* support negative misc_model scale
Garux
2021-05-11 19:05:54 +03:00
427ef0874b
* improve ase export compatibility write normals after faces write vertex normals right after their face normal
Garux
2021-05-08 14:15:17 +03:00
9cf755dfab
lower default camera mouse sensitivity screen resolution change over time ~= 640x480 -> fullHd ~= 3x
Garux
2021-05-08 11:05:13 +03:00
d1dcc29fa0
* automatically add ExtraResoucePath to q3map2 arguments, if set
Garux
2021-05-08 10:48:06 +03:00