2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-02 08:29:36 +00:00
Commit Graph

72 Commits

Author SHA1 Message Date
Paging Red 010ac3ad3e Add IW3 PhysPreset dump logic (#744)
* Copied template from font.

* Create PhysPreset writer from Font dumper template.

* Completely refactor to match previous implementation.

* Remove files from previous implementation.

* Fix PhysPresetFields.

* Add missing fields and correct order.

* Add static infinity check as builtin does not work.

* Wasn't clang formatted.

* Remove unused 'perSurfaceSndAlias' field.

* Removed unsupported vals (tracer & vehicle) and un-needed vals (material).

* Make order match struct and mark 'tempDefaultToCylinder' as QBOOLEAN.

* Make order match struct and clamp vals for 'mass' and 'tempDefaultToCylinder'.

* Remove un-needed includes and add limits for float max.

* Remove clamping of mass.

* Use float max to determine if friction is infinite.

* Clang format.

* chore: formatting

* chore: do not use classes for obj constants

---------

Co-authored-by: njohnson <gitea.nicholasjohnson.info>
Co-authored-by: Jan Laupetin <jan@laupetin.net>
2026-04-23 23:27:34 +02:00
Jan Laupetin 4242c4a325 refactor: use std::expected instead of custom implementation 2026-04-04 14:47:10 +02:00
Jan Laupetin 2ba00acedd chore: make sure iw5 can use its special vertex material samplers 2026-03-19 18:26:57 +01:00
Jan Laupetin a497efe67b feat: compile iw5 techsets 2026-03-18 23:04:41 +01:00
Jan Laupetin b93925c306 fix: inconsistencies on t5 technique compilation 2026-03-15 15:31:01 +01:00
Jan Laupetin f4ed3e6c93 fix: warn but accept invalid argument types in shaders
cheers to T5 mc_sw4_3d_char_skin_gas that uses a sampler in the vertex shader
2026-03-15 12:56:13 +01:00
Jan Laupetin e8b9ece6bd feat: t5 techset compiling 2026-03-14 23:38:59 +01:00
Jan Laupetin daa891a922 feat: add techset compiling for IW3 2026-03-14 20:54:59 +01:00
Jan Laupetin 08a869f8c3 chore: add cursed calculation for techflag 200 in iw4 2026-03-14 13:35:42 +01:00
Jan Laupetin 629564073c fix: auto creating dx9 shader args with too many elements 2026-03-14 10:50:12 +01:00
Jan Laupetin 161ab45306 chore: handle iw4 technique flags 2026-03-14 09:09:57 +01:00
Jan Laupetin 503fe89251 feat: load shader args for dx9 shaders 2026-03-14 09:09:57 +01:00
Jan Laupetin 6e19b94b9b chore: use templated loaders for shaders in IW4,T6 2026-03-14 09:09:57 +01:00
Jan Laupetin fbfd418e20 feat: add templated technique compiler for IW4 2026-03-14 09:09:56 +01:00
Jan Laupetin dbe5cffb2f feat: use templated techset compiler for IW4 2026-03-14 09:09:56 +01:00
Jan Laupetin 3bb7f1aa05 chore: use templated vertex decl compiler 2026-03-14 09:09:56 +01:00
Jan Laupetin 5272b9060d chore: use templating for t6 techset compilation 2026-03-14 09:09:56 +01:00
Jan Laupetin 3aac05a516 fix: make sure matrix shader args with less than 4 rows are properly dumped and loaded 2026-03-14 09:09:55 +01:00
Jan Laupetin eae57d9da0 feat: template techset and shader dumping for IW4,T6 2026-03-14 09:09:55 +01:00
Jan Laupetin 90d7f92ddd chore: replace all usages of removed ClassUtils macros 2026-03-06 00:13:04 +01:00
Jan Laupetin 6eb0ec4179 chore: reorganize precompiled index logic into separate file 2026-03-04 22:47:30 +00:00
Jan Laupetin 1611c222cc chore: add logic for computing precompiled index on material pass 2026-03-04 22:00:30 +00:00
Jan Laupetin 925e51cb10 fix: not setting correct flags on technique post processing when reusing assets 2026-03-02 22:09:02 +00:00
Jan Laupetin bbb282a206 chore: deactivate IW4 material and techset compilation for now 2026-03-02 22:09:01 +00:00
Jan Laupetin 7ab9adc17c chore: handle flag 80 on t6 techniques 2026-03-02 22:09:01 +00:00
Jan Laupetin dcd67adad4 fix: shader arg matrix row count 2026-03-02 22:09:00 +00:00
Jan Laupetin 400c6ca78a fix: use buffer binding point instead of index 2026-03-02 22:09:00 +00:00
Jan Laupetin b2f51b2ae1 fix: technique loading tech flags 2026-03-02 22:09:00 +00:00
Jan Laupetin 5a126157f8 fix: not setting shader arg flags when auto creating 2026-03-02 22:08:59 +00:00
Jan Laupetin 38cb7d3759 feat: set proper tech flags and sampler flags for loaded techniques 2026-03-02 22:08:58 +00:00
Jan Laupetin a3f250fdca feat: compile t6 techsets 2026-03-02 22:08:58 +00:00
Jan Laupetin 9a527c16fa feat: add t6 vertexdecl sub asset creator 2026-03-02 22:08:57 +00:00
Jan Laupetin e749514972 fix: compilation with CommonTechset 2026-03-02 22:08:55 +00:00
Jan Laupetin bf9beb1458 chore: make sure TechsetCompilerT6 sets proper worldVertFormat 2026-03-02 22:08:55 +00:00
Jan Laupetin e61ec8582a chore: use CommonTechset instead of TechsetDefinition 2026-03-02 22:08:55 +00:00
Jan Laupetin aa47ffa629 refactor: introduce subasset loading 2026-02-05 18:17:15 +01:00
Jan Laupetin 38038f8fad fix: clang compilation issues 2026-01-27 23:49:37 +01:00
Jan Laupetin 18ccbb9180 feat: dump techsets for t6 2025-12-16 11:47:25 +00:00
Jan Laupetin 74ef6118b6 feat: include user files in iwd 2025-11-18 21:13:56 +00:00
Jan Laupetin 02f20f09b6 chore: update all logging to use centralized logging component 2025-09-11 20:25:51 +02:00
Jan Laupetin fdef6797aa fix: messed up kvp compiler reference 2025-08-06 00:31:52 +01:00
Jan Laupetin 46fb919a52 refactor: do not nest asset namespaces in game namespaces
* Duplicated namespace names are kind of annoying
2025-08-06 00:50:35 +02:00
Jan Laupetin 33c09dfe61 refactor: streamline obj compiling asset loading 2025-08-05 18:51:56 +02:00
Jan Laupetin 6806337f46 refactor: streamline IW4 asset loading 2025-08-05 01:14:20 +02:00
Jan 28a82818de refactor: move iw4 techset and vertexdecl compiling to ObjCompiling 2025-06-28 19:16:13 +01:00
Jan f23b47ca13 chore: move material compilation behind compiler flag 2025-06-28 16:10:03 +01:00
Jan 8b85cadb77 refactor: make memory from zone a reference instead of ptr 2025-05-02 22:08:06 +01:00
Jan ee4301952a refactor: fix x64 compilation issues in Common,ObjCommon,ObjCompiling,ObjImage components 2025-04-26 19:08:16 +02:00
Jan 6f31e8cc29 chore: fix compilation issues with x64 2025-04-06 18:02:47 +01:00
Jan 54e240e98c fix: compilation 2025-01-08 17:39:34 +00:00