2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-04 18:21:49 +00:00

Commit Graph

  • 2f948ea54a More material loading constants Jan 2022-07-23 15:50:35 +02:00
  • 0cbf234faf Use string constants for material loading Jan 2022-07-23 14:33:27 +02:00
  • 92d808b7a4 Use constants for material sort key names Jan 2022-07-23 13:05:37 +02:00
  • ea79e60856 Load material sortkeys v1 Jan 2022-07-23 12:22:59 +02:00
  • 80a66a5d2c Finalize loaded material with textures Jan 2022-07-15 11:25:38 +02:00
  • 82349d3432 Material loading base Jan 2022-07-15 11:21:54 +02:00
  • bc91738ee9 Dump materials in zone gdt Jan 2022-07-09 15:44:03 +02:00
  • 5ee541c0ff Fix not being able to dump t6 xmodels without surface Jan 2022-07-09 14:16:24 +02:00
  • da79ce2463 Dump material waterColor constant Jan 2022-05-15 16:37:44 +02:00
  • 6862faa992 Correctly mark unhandled constants as such Jan 2022-05-15 15:55:37 +02:00
  • 0105c0d1bd Dump material info from constants Jan 2022-05-14 16:09:11 +02:00
  • 38dedaf894 Examine techset info from effect and unlit materials Jan 2022-05-10 19:03:36 +02:00
  • 638b659a48 Example material stencil values and blendfunc Jan 2022-05-08 12:44:34 +02:00
  • cc2f0ca487 Write Statebits data to gdt materials Jan 2022-05-02 21:11:51 +02:00
  • b94c5b381d Extract more info from techset name Jan 2022-05-02 18:45:49 +02:00
  • 01d9a4d912 Improve recognition of material types Jan 2022-04-29 23:55:10 +02:00
  • 353ad52eba Add material dumping debug switches Jan 2022-04-23 16:41:30 +02:00
  • cd34f8db39 basics of material gdt dumping Jan 2022-04-22 23:21:39 +02:00
  • bba96b248d Add skip obj unlinker arg Jan 2022-04-22 23:21:23 +02:00
  • 2823a46b92 Add improvements from iw3 material dumping to iw4 Jan 2022-04-21 19:58:49 +02:00
  • c91d71e809 Dump iw3 materials Jan 2022-04-21 19:58:31 +02:00
  • ebb13e18da Write additional details in iw4 material json Jan 2022-04-18 18:23:30 +02:00
  • 03fe515fb0 Fix compilation Jan 2022-04-18 15:37:08 +02:00
  • ce22a2fea6 Add more details about material semantic and samplerState Jan 2022-04-18 15:26:24 +02:00
  • 2114b761b0 Dump iw4 materials as json for data investigation purposes Jan 2022-04-18 14:46:13 +02:00
  • 0f47e64486 Add nlohmann json submodule third party dependency Jan 2022-04-18 11:23:05 +02:00
  • 2ec65924c6 Only dump model surfs once for iw5 as well Jan 2022-04-17 15:44:25 +02:00
  • 30870c5e07 Only dump model surfs once Jan 2022-04-17 15:38:07 +02:00
  • 6ff86ae5e7 Set technique flags based on used constants, samplers and technique names Jan 2022-04-16 22:51:38 +02:00
  • 6e57834dc6 Warn user whenever specified asset type is unrecognized Jan 2022-04-16 17:13:28 +02:00
  • 2108737f22 Explicitly state whenever unloading zones in linker Jan 2022-04-16 16:42:33 +02:00
  • 4a03efe636 State whenever a zone is unloaded in unlinker Jan 2022-04-16 16:39:46 +02:00
  • 1a36912b44 Fix unlinking every single asset in the global asset pools on unloading a zone Jan 2022-04-16 16:32:55 +02:00
  • 4abb846ccd fix iw4 enum not having a name Jan 2022-04-16 15:44:57 +02:00
  • cb45bdaadc Progress on reversing technique flags Jan 2022-04-16 15:41:45 +02:00
  • 9e063a30f0 Dump technique sampler flags and technique flags Jan 2022-04-16 15:41:11 +02:00
  • 0ae5afc197 Set technique flags based on argument code samplers Jan 2022-04-15 17:53:12 +02:00
  • 7a89630a13 Dump technique flags Jan 2022-04-15 17:52:56 +02:00
  • 15fd1ae686 Order shader args like the game does Jan 2022-04-15 17:52:32 +02:00
  • 9990338130 Handle custom samplers Jan 2022-04-15 16:34:44 +02:00
  • 65c9267b06 Correctly identify update frequencies for shader arguments Jan 2022-04-15 16:01:39 +02:00
  • cd8e6cf96a Fix not being able to use StructuredDataDefSet assets from memory Jan 2022-04-15 13:00:08 +02:00
  • 12af03d77b Do not output errors when use menus from loaded assets Jan 2022-04-15 12:54:37 +02:00
  • 0f3d1d3488 Load shader from disk if they are only available as referenced assets to write techniques using them Jan 2022-04-15 12:54:10 +02:00
  • 7d80ff670d Convert technique passes Jan 2022-04-14 20:11:51 +02:00
  • 7f496ce478 Automatically handle unspecified shader arguments Jan 2022-04-14 19:49:35 +02:00
  • 3ba68eb2f4 Remember which vertex shader and pixel shader args have been handled already Jan 2022-04-11 20:06:02 +02:00
  • 99c7ebbe9b Load vertex decl asset Jan 2022-04-10 19:39:26 +02:00
  • e0bcf7aff0 Load Vertex Stream Routing Jan 2022-04-10 17:48:12 +02:00
  • bd291a75a9 Accept technique material arguments Jan 2022-04-10 14:51:38 +02:00
  • 516878698d Only accept sampler arguments for sampler shader arguments and constant argument for constant shader arguments Jan 2022-04-10 13:58:08 +02:00
  • 7a2fe6dc4f Differentiate between argument sets when dumping techniques to find the actual matching shader argument Jan 2022-04-10 13:23:44 +02:00
  • 7d2ca46cb1 Dump known material argument hashes Jan 2022-04-09 19:07:24 +02:00
  • 13c5ea2986 Ignore shaders versions in technique files Jan 2022-04-09 19:03:12 +02:00
  • 8cc632f613 Move D3D9ShaderAnalyser to ObjCommon Jan 2022-04-09 18:55:43 +02:00
  • bdb782a679 Fix issues with technique parser Jan 2022-03-30 19:25:58 +02:00
  • 4a52f3304e Fix asset loaders for vertex and pixel shader not using correct file name Jan 2022-03-30 19:25:41 +02:00
  • 1d798647c3 Fix not reading hex numbers with integer only lexing for SimpleLexer Jan 2022-03-30 19:25:07 +02:00
  • a092f76ec9 Add option to not parse floating point numbers when using SimpleLexer Jan 2022-03-30 19:07:54 +02:00
  • b5cd357014 WIP Technique loading Jan 2022-03-30 18:38:50 +02:00
  • b770360ee1 Parse techniques Jan 2022-03-27 21:10:33 +02:00
  • 7c9805b4ba fix compilation issues Jan 2022-03-27 16:28:25 +02:00
  • 99d5caf1f2 Fix techset parsing naming issues Jan 2022-03-27 16:21:06 +02:00
  • d8f490ec94 Base for technique loading Jan 2022-03-27 16:17:50 +02:00
  • a47370613b Reuse previously loaded techniques Jan 2022-03-27 16:17:36 +02:00
  • 99f3f6fe0c Fix wrong techset reader dependency on structuredatadef Jan 2022-03-27 16:16:41 +02:00
  • eb5312899f Parse techset files for IW4 Jan 2022-03-26 18:47:43 +01:00
  • 2fda10f133 Find vertexdecl to dump if the one in the asset is a referenced asset Jan 2022-03-25 18:57:01 +01:00
  • a825a9df38 Remove unused dumper for vertex decls Jan 2022-03-25 18:41:38 +01:00
  • d0e8e94561 Load vertex shader and pixel shader from raw Jan 2022-03-25 18:35:22 +01:00
  • 90eaf9c4a9 If pixel or vertex shader is only referenced asset, attempt to load asset from GlobalAssetPools to be able to use a shader from a previously loaded zone Jan 2022-03-25 14:46:09 +01:00
  • 324dead2e3 Disable warning about unscoped enums Jan 2022-03-25 14:13:13 +01:00
  • f9fad26ccc Handling of referenced shaders Jan 2022-03-25 00:23:53 +01:00
  • b48fbb2b0e Dump material constants and samplers Jan 2022-03-25 00:04:27 +01:00
  • a06229042f Dump material pass literal shader arguments Jan 2022-03-24 23:54:24 +01:00
  • 5fdde037a8 Dump code sampler for technique arguments Jan 2022-03-24 23:42:10 +01:00
  • f386e82f89 Omit code constants that have the same source and dest accessor Jan 2022-03-24 23:26:07 +01:00
  • ef936eba57 Dump IW4 techset code constant argument mappings Jan 2022-03-24 23:04:35 +01:00
  • 7760e1579c fix compilation errors Jan 2022-03-24 21:18:07 +01:00
  • d62cbb2e96 Consider shader constants when dumping techset args Jan 2022-03-24 21:14:05 +01:00
  • 55ccbfca9e Add analyser for directx9 shaders to extract information about constants and other stuff Jan 2022-03-24 18:58:30 +01:00
  • 935e6ac060 Dump IW4 vertex and pixel shader binary data Jan 2022-03-24 17:36:12 +01:00
  • 5f44d95770 TODO IW4 Shader arg dumping Jan 2022-03-23 18:22:23 +01:00
  • b0ed7e9544 Dump IW4 vertexdecl Jan 2022-03-23 17:11:30 +01:00
  • 8e76f05d05 Skeleton for IW4 MaterialTechnique dumping Jan 2022-03-23 16:46:49 +01:00
  • 25244bc3b0 Dump IW4 techset files Jan 2022-03-23 14:42:17 +01:00
  • 66b62611f3 Add basis for iw4 techset dumping Jan 2022-03-23 13:45:01 +01:00
  • 9009543c58 fix missing noexcept Jan 2022-03-22 21:32:17 +01:00
  • 0bca307208 Make gitlab pipeline jobs interruptible Jan 2022-03-22 17:23:49 +01:00
  • e8ce4570ad Fix pipeline compilation Jan 2022-03-22 17:12:43 +01:00
  • 2e5405deb5 Fix counting padding for root struct even when root struct has no properties Jan 2022-03-22 16:15:42 +01:00
  • f236d285b6 Fix not considering alignment of 8 bit when calculating size for indexedarray and enumedarray Jan 2022-03-22 16:08:55 +01:00
  • 8133f4d57e Fix accidentally setting size in bits value to a size in byte field when converting indexarray and enumedarray Jan 2022-03-22 16:08:28 +01:00
  • f15e997f7b Fix not setting enum element count for enumedarrays when parsing Jan 2022-03-22 16:07:43 +01:00
  • ab5a998903 Sort StructuredDataDef members and entries alphabetically after parsing Jan 2022-03-22 15:09:07 +01:00
  • 1b6f2ab9fa Calculate StructuredDataDef sizes and offsets Jan 2022-03-22 15:08:42 +01:00
  • 77420495f6 Add base for calculation sizes of structs for StructuredDataDef Jan 2022-03-22 14:12:48 +01:00
  • c131c58bbe Replace references to undefined types after parsing entire StructuredDataDef Jan 2022-03-22 12:34:21 +01:00
  • 2fa1144425 Set remapped type for previously undefined types for StructuredDataDef Jan 2022-03-22 12:14:30 +01:00
  • dc075847ff When parsing StructuredDataDefs accept undefined types Jan 2022-03-22 12:03:15 +01:00