2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-26 19:08:07 +00:00
Commit Graph

46 Commits

Author SHA1 Message Date
mo 44d6710991 feat: initial T4 support (#807)
* feat: initial T4 support

* chore: adjust t4 symbols a bit for accuracy

* chore: add PackIndex asset to T4

* chore: remove unused AssetXModelPieces

* chore: add default and global asset pools loader for T4

* chore: use separate defines for T4 in ImageDumper

* chore: remove unnecessary namespaces in gfximage_actions

* chore: small things

* chore: fix T4 PhysPreset type

* chore: use proper XQuat2 type for T4 xanims

* chore: fix errors on T4 types

* chore: use iw3 like struct for XModelStreamInfo

* docs: add basic docs for T4

* chore: add basic ObjCompiler setup for T4

* chore: adjust loaded sound definition

* chore: make sure t4 material has the correct alignment

* chore: make sure t4 uses similar names for assets as other games

* fix: asset references should not be reusable

* chore: add content writer for t4

* feat: add t4 localize loader

* chore: reorder game ids to be alphabetically ordered

---------

Co-authored-by: Jan Laupetin <jan@laupetin.net>
2026-06-07 14:06:33 +02:00
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 a497efe67b feat: compile iw5 techsets 2026-03-18 23:04:41 +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 161ab45306 chore: handle iw4 technique flags 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 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 b2f51b2ae1 fix: technique loading tech flags 2026-03-02 22:09:00 +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 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 54e240e98c fix: compilation 2025-01-08 17:39:34 +00:00
Jan e0f8b3d3ca chore: add abstraction for opening output files to be able to mock it 2025-01-07 00:02:38 +01:00
Jan fc9e6ce14d test: add test for KeyValuePairsCompilerT6 2025-01-05 00:16:57 +00:00
Jan ef862ff246 chore: make keyvaluepairscompiler use a zonestate 2025-01-03 14:55:19 +01:00
Jan 3c3161448f chore: get Iwd and Ipak creators in constructor for post processors 2025-01-03 11:18:33 +01:00
Jan 41d97c0954 chore: initialize KeyValuePairsCompiler for T6 as obj compiler 2025-01-03 09:59:28 +01:00
Jan fe5d0f79ff chore: consider specified obj containers when post processing 2025-01-02 16:26:42 +01:00
Jan a7254aa11c feat: add post processors compiling iwds and ipaks 2025-01-02 12:57:10 +01:00
Jan 4f0a405bdc chore: adjust asset creation process to use separated AssetCreators 2025-01-01 18:14:40 +01:00
Jan 3803ae24f5 chore: add ObjCompiling component 2025-01-01 18:14:39 +01:00