51 Commits
Author SHA1 Message Date
Garux 68ecbed64b explicit enum bspSurfaceType_t use 2026-01-12 19:12:24 +05:00
Garux 182dff76ef * more robust deduction of triangle for texture alignment during bsp to map decompilation
* more than ten times faster bsp to map decompilation
2026-01-12 06:57:10 +05:00
Garux cc036b6bf7 "system/origin" for decompiled origin brush in sof2, ja, jk2
closes #270
2025-12-11 04:03:10 +05:00
Garux 17d6588d1a use std::fabs to avoid conversion to double 2025-11-01 19:08:32 +05:00
Garux 739bad8e24 * -format map_220: bsp to map of Valve220 format conversion 2025-10-21 23:49:45 +05:00
Garux bf9d5c3e5b fix texture alignment deduction during bsp to map decompilation on bmodels with origin
avoid different bmodels matching surfs mixture in GetBestSurfaceTriangleMatchForBrushside
2025-10-21 15:09:15 +05:00
Garux 1285e9c9e5 * fix AP texture alignment deduction during bsp to map decompilation 2025-10-21 05:17:16 +05:00
Garux e919276f52 * -wtf: During bsp to map conversion use common/WTF on faces with failed texture alignment deduction 2025-10-20 15:33:04 +05:00
Garux ee3ac80a62 * -modelclip: Decompile model autoclip brushes during bsp to map conversion (they are skipped by default)
explicit setting instead of reusing -force
2025-10-20 15:17:27 +05:00
Garux 5dbb0af073 minor tweaks 2025-10-20 14:52:24 +05:00
Garux a8b0ac4eb7 define CLUSTER_OPAQUE CLUSTER_NORMAL constants 2025-09-23 17:25:51 +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 607d4c67ad tweak formatting 2025-02-05 15:59:29 +05:00
Garux 4a368deef0 minor refactoring 2025-02-04 12:15:12 +05:00
Garux 1935f030c5 minor refactoring 2025-02-03 23:29:12 +05:00
Willi Schinmeyer 27c5b9e78b Rework TemplateString for standard compliance
Creating an std::integer_sequence from a user-defined string literal is
a non-standard gcc extension. This alternative implementation should
conform to C++20.
2024-12-05 19:00:23 +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 d40538eea0 * fix RBSP style keys on -exportents and decompilation, so that they are alright for -onlyents and compilation 2023-08-18 01:20:58 +06:00
Garux da98e8fde3 various code cleanups 2021-10-30 16:04:31 +03:00
Garux e62da4c621 * patchMeta: fix: keep playerclip patches for collisions
* autocaulk: do not impact fog brushes with all faces culled (global fog case)
decompilation: detail flag deduction: avoid detail hints, areaportals, antiportals by surfaceparm structural check
change hardcoded surfaceflags use to statically evaluated ones for the given game
2021-10-29 11:29:32 +03:00
Garux 5ef76b0212 * non -fast bsp decompilation: deduce brush detail flag; note: structural transparent brushes get marked detail too, e.g. hints 2021-10-14 21:09:06 +03:00
Garux bc7bd516e6 refactor bsp decompilation 2021-10-14 14:32:49 +03:00
Garux 4642753564 std::vector<bspDrawSurface_t> bspDrawSurfaces 2021-09-27 06:14:12 +03:00
Garux c58bd839da std::vector<bspDrawVert_t> bspDrawVerts 2021-09-26 21:41:46 +03:00
Garux 260dc59d4a std::vector<bspBrush_t> bspBrushes 2021-09-24 17:05:00 +03:00
Garux bccd3bafd7 std::vector<bspPlane_t> bspPlanes 2021-09-24 15:43:24 +03:00
Garux 58911934e0 std::vector<bspShader_t> bspShaders 2021-09-24 13:39:04 +03:00
Garux 6e2fc92576 std::vector<bspModel_t> bspModels 2021-09-24 12:11:11 +03:00
Garux f492ab27eb more c++ in q3map2 2021-08-10 22:41:43 +03:00
Garux c3041cc2f8 using winding_t = std::vector<Vector3> 2021-07-31 18:28:38 +03:00
Garux ffa1a4340c std::vector<plane_t> mapplanes 2021-07-29 22:21:36 +03:00
Garux 2222100316 indent classes, align by spaces 2021-03-24 00:25:15 +03:00
Garux 1d4424f4c6 minor tweaks 2021-03-12 01:17:01 +03:00
Garux 09c78ec0dc return Vector3 from vectorForKey() 2021-03-11 20:16:52 +03:00
Garux 98f9023cdc minor tweaks 2021-03-11 10:57:17 +03:00
Garux 0cff77e30d consider "textures/system/" jka common folder during map decompilation 2021-03-09 20:13:42 +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 ba497e4139 SafeOpenWrite, SafeOpenRead funcs use 2021-02-09 18:05:06 +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 3ff224cbdf fix texture projection decompilation
in C this check was equal to
abs((int)dist) >= distanceEpsilon
comparing float dist to distanceEpsilon is not sufficient, as points are not precise enough, plus they are snapped
2021-01-25 08:36:16 +03:00
Garux 54c38610bf use std::list<epair_t> 2021-01-23 17:25:47 +03:00
Garux 36b63e1d2c turn entities array to std::vector<entity_t> 2021-01-23 15:39:42 +03:00
Garux b0e62198ba use safe strings more 2021-01-21 18:41:16 +03:00
Garux da3b05728c use safe string for shaderInfo_t.shader 2021-01-19 01:24:21 +03:00
Garux 13524d59ef fix the build 2021-01-16 15:10:59 +03:00