Commit Graph

11 Commits

Author SHA1 Message Date
alexguirre
1dd9bc34a2 Auto-calculate drawables blocks size fields
`ShaderGroup.ShaderGroupBlocksSize` (aka `Unknown_30h`) contains the byte size divided by 16 of the ShaderGroup block and its children blocks, when they are packed contiguously in the resource file.

`DrawableBase.DrawableModelsBlocksSize` (aka `Unknown_9Ah`) is similar but with the size of the `DrawableModelsBlock`.

Incorrect values can cause crashes when the model is unloaded.

Discussed here https://discord.com/channels/329138547833700352/329142468102586368/1139264754767122533
2023-08-11 19:30:23 +02:00
Skylumz
0c62a04625 Implemented a lights editor in model viewer 2021-12-29 17:17:31 -05:00
dexy
1f516a87b3 Changed DrawableModels into arrays and added DrawableModelsBlock 2020-03-14 22:23:40 +11:00
dexy
e48503e130 Changed DrawableModel.Geometries to array 2020-03-14 01:30:56 +11:00
dexy
7bc7d9612a YFT/XML conversion progress 2020-01-23 18:36:34 +11:00
dexy
e44b2ef095 YFT/XML conversion progress 2020-01-21 03:12:36 +11:00
dexy
bec16ea42d YDR/YDD/XML conversion 2020-01-20 02:08:04 +11:00
dexy
c59047bdee DDS file import code, Texture unknowns research 2020-01-17 04:32:47 +11:00
dexy
4834b8c520 Fixed casing issues with MetaNames which probably was causing XML issues. Moved shader param names to new ShaderParamNames enum to preserve casing. Moved meta type names to new MetaTypeName enum to avoid polluting MetaNames. 2019-10-31 17:11:12 +11:00
dexy
8324e1ecda Added InvertTexcoordV option to FbxConverter class 2019-03-21 14:02:59 +11:00
dexy
bc1efebe5c FBX importer v1, fix for YNDs DLC loading, fix for renamed NG encrypted RPFs, RelFile MetaNames addition 2019-03-20 21:21:47 +11:00