Garux
943845e8c0
add winding_next_point()
2025-11-14 17:14:25 +05:00
Garux
d26c1b4263
* merge coplanar triangles for model autoclip in default, pyramidal, face normals, 45 modes
2025-11-14 16:27:09 +05:00
Garux
bee863ee9b
refactor model autoclip
2025-11-10 15:58:09 +05:00
Garux
6811cf835c
refactor mapDrawSurface_t
2025-11-05 20:05:51 +05:00
Garux
5b380fd6fe
remove explicit float literal specifiers
2025-11-02 01:27:42 +05:00
Garux
17d6588d1a
use std::fabs to avoid conversion to double
2025-11-01 19:08:32 +05:00
Garux
4e9c91e86d
add ModelGetTransform()
2025-10-31 16:00:12 +05:00
Garux
4bbb043eff
minor tweaks
2025-10-27 02:41:26 +05:00
Garux
553dd81247
minor tweaks
2025-10-26 00:35:05 +05:00
Garux
abadf52398
* support separated _ambient, _color per group, misc_model entities
2025-10-25 22:10:56 +05:00
Garux
00c352b697
remove odd newlines
2025-10-09 02:45:30 +05:00
Garux
2580a1ee17
minor tweaks
2025-09-23 03:59:53 +05:00
Garux
66e15e9ba0
minor tweaks
2025-09-23 02:45:24 +05:00
Garux
fb3698b820
minor tweaks
2025-09-18 23:36:30 +05:00
Garux
911a7cceeb
minor tweaks
2025-09-03 00:29:13 +05:00
Garux
607d4c67ad
tweak formatting
2025-02-05 15:59:29 +05:00
Garux
8202b5a6ba
fix some warnings
2024-11-24 02:00:56 +05:00
Garux
c166e4214e
* improved brush faces triangulation wrt degenerate triangles production (non -maxarea algorithm)
2024-11-11 04:59:17 +05:00
Garux
df02774ff5
tweak StringOutputStream use
...
auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
2024-01-29 16:54:08 +06:00
Garux
b4e44bc8ed
refactor StringFixedSize, auto str = String64()() use form was not doing copy elision
2024-01-25 23:46:01 +06:00
Garux
1e909131be
* misc_model _target and group entity _targetname key aliases for baking the model into entity
...
helps when targetname key is not wanted on an entity, as changing its behavour
crosslinking of keys versions works, underscored version has priority
2023-07-05 14:45:05 +06:00
Garux
88d1777f0f
fix pyramidal autoclip (was providing wrong reference points)
2022-04-04 19:43:25 +03:00
Garux
ea21eee225
fix 1bd3e7ae18
2021-12-23 17:23:57 +03:00
Garux
1bd3e7ae18
* model shader paths guessings: use material names, starting with textures/ or models/ as is
...
so materials named intentionally as ingame shaders shall work as expected
2021-12-16 03:06:30 +03:00
Garux
b474073ebe
misc_model _skin/skin key: handle both DP and Q3 naming conventions
...
disable trying skin 0 by default
not that it does much atm, as assimp md3 loader handles .skin and shader name substitution alters non path names
handle \r\n endlines in .skin
2021-11-10 22:25:45 +03:00
Garux
76017a8ce3
unify angles key reading
2021-11-08 21:39:38 +03:00
Garux
d75792d9a9
fix the build
2021-11-06 23:10:15 +03:00
Garux
aa110638d4
remove global std::size_t mapEntityNum;
...
(not buildable)
2021-11-06 17:27:11 +03:00
Garux
da98e8fde3
various code cleanups
2021-10-30 16:04:31 +03:00
Garux
977781a621
minor tweaks
2021-10-26 17:26:35 +03:00
Garux
f5b2653b0d
add automatic MemBuffer storage for file loading routines
2021-10-17 23:10:02 +03:00
Garux
82d038f6d1
remove global error prone char name[ 1024 ]
2021-10-04 09:59:17 +03:00
Garux
02a3b9c026
use ostream_write( CopiedString )
2021-09-18 15:30:11 +03:00
Garux
3129fd0bce
refactor model clipping code
2021-08-20 22:32:33 +03:00
Garux
f492ab27eb
more c++ in q3map2
2021-08-10 22:41:43 +03:00
Garux
99f4a4a767
minor tweaks
2021-08-03 20:54:21 +03:00
Garux
ffa1a4340c
std::vector<plane_t> mapplanes
2021-07-29 22:21:36 +03:00
Garux
31e7829e2b
* support negative misc_model scale
2021-05-11 19:05:54 +03:00
Garux
75c7c09903
* replace model loaders by assimp library (40+ formats)
...
* auto split big model meshes to <= maxSurfaceVerts chunks (avoids excess meta process for vertexlit ones)
2021-05-07 14:47:39 +03:00
Garux
2222100316
indent classes, align by spaces
2021-03-24 00:25:15 +03:00
Garux
09c78ec0dc
return Vector3 from vectorForKey()
2021-03-11 20:16:52 +03:00
Garux
1144be0881
add BasicVector3 uniform constructor
2021-03-11 19:14:07 +03:00
Garux
293fab0ffb
manage color-to-byte conversions
2021-03-05 13:37:56 +03:00
Garux
f9a424b6c8
more c++
2021-03-02 22:01:09 +03:00
Garux
9857bb955b
more c++ math
2021-02-26 01:10:51 +03:00
Garux
4ce944444d
rewrite q3map2 math in c++
2021-02-25 19:41:43 +03:00
Garux
92b2487875
fix string warnings
2021-02-08 01:33:36 +03:00
Garux
99a5ef0416
refactor entity key values routines
2021-01-30 16:23:31 +03:00
Garux
623163ae9c
remove unused markers
2021-01-28 02:12:15 +03:00
Garux
e11aede11a
refactor surfaceType_t enum
2021-01-27 19:43:53 +03:00