Commit Graph

65 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
ultrahacx
3577c2872a Add missing shadow blur parameter in drawable XML 2022-11-03 19:53:21 +05:30
dexy
b65d250774 Fix for broken player peds animating 2022-01-29 20:26:13 +11:00
dexy
bc14a1fd22 Improved animations game replication and performance 2022-01-28 06:25:41 +11:00
dexy
8ea3327810 Fix for <Item type="None" /> appearing in drawable XML 2022-01-08 17:40:34 +11:00
dexy
8af20945cb Fixed issues with light editor, upgraded ModelForm toolbar 2022-01-01 00:03:52 +11:00
Skylumz
0c62a04625 Implemented a lights editor in model viewer 2021-12-29 17:17:31 -05:00
dexyfex
8ba9faacec
Merge pull request #71 from carmineos/epedboneid
Added EPedBoneId enum
2021-11-08 00:43:19 +11:00
dexy
2c8311c936 LodLights generator positions improvement 2021-05-03 00:57:14 +10:00
dexy
fc0d84d9dd Fix for incorrect ordering of ChildIndices in skeletons after XML import 2021-04-08 01:37:21 +10:00
dexy
e77c2b95ec Bug fix for loading some modded drawables 2020-04-20 23:58:25 +10:00
Carmine Giugliano
7405a5d125 Added EPedBoneId enum 2020-03-30 17:59:38 +02:00
dexy
767e54fa1f Particles resource packing improvements 2020-03-20 04:54:59 +11:00
dexy
38bb3ebb16 Changed Skeleton Bones into array and added SkeletonBonesBlock 2020-03-15 00:52:36 +11: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
4941f86193 Improved array caching for ResourceAnalyzer 2020-03-13 23:23:54 +11:00
dexy
b30853b6a3 ShaderParametersBlock length calculation and padding fix 2020-03-12 09:48:56 +11:00
dexy
65a3435fb9 TextureBase BlockLength fix, ResourceAnalyzer improvement, resource packing improvement 2020-03-12 00:05:49 +11:00
dexy
b89c707175 DrawableGeometry embedding BoneIds instead of using a separate block 2020-03-11 07:56:02 +11:00
dexy
211764c0f9 Improved drawable shader parameters loading 2020-03-11 01:29:16 +11:00
dexy
9aa228c1da Fix for XML/drawable conversion missing TextureParametersCount 2020-03-10 21:44:48 +11:00
dexy
9d41d329c4 ResourceDataReader pool improvement 2020-03-10 13:46:18 +11:00
dexy
e608912977 XML/YFT/YDR/YBN conversion VFT values added 2020-03-10 08:34:17 +11:00
dexy
a41e7c5eb3 Increased resilience to some modded drawables 2020-02-25 23:30:41 +11:00
dexy
dff9c8738e YPT/XML conversion progress? 2020-02-04 05:08:51 +11:00
dexy
b11d350294 YPT/XML conversion progress 2020-02-01 07:03:02 +11:00
dexy
ad61b39920 Particles types progress 2020-01-27 05:48:17 +11:00
dexy
ddbb5b9457 Bug fix for saving drawables/fragments from model viewer, fragments glass XML improvements 2020-01-25 21:31:01 +11:00
dexy
7bc7d9612a YFT/XML conversion progress 2020-01-23 18:36:34 +11:00
dexy
4854afa037 YFT/XML conversion progress 2020-01-23 04:05:50 +11:00
dexy
de3aa9f83b YFT/XML conversion progress 2020-01-22 23:36:34 +11:00
dexy
08d60877ee Added default attribute names for XML vectors reading 2020-01-22 02:45:27 +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
9ed308df7a YDR/XML conversion progress 2020-01-19 02:36:28 +11:00
dexy
cd4c87cd71 YDR/YDD/YFT/YPT/XML conversion progress 2020-01-18 04:20:40 +11:00
dexy
fa1a3ac00e Bug fix for modded .ydr saving 2020-01-15 20:03:16 +11:00
dexy
33dc83c0e0 Collisions editing progress 2020-01-06 22:17:51 +11:00
dexy
9a53c2147b Deferred shading 2019-12-04 00:52:22 +11:00
dexy
ef1debfb41 Ped clothes not exploding 2019-11-29 20:47:11 +11:00
dexy
783248aeab Peds and weapons rendering support for multiple skeleton instances 2019-11-27 15:01:43 +11:00
dexy
91873ea87a Peds no longer sharing skeletons, Cutscene object AnimHash conflict resolution 2019-11-26 17:00:41 +11:00
dexy
5a869fa836 Cutscene viewer progress, Hash updates 2019-11-25 20:44:16 +11:00
dexy
918ed7fccf Fix for leg jankyness. Added PBBNCCTTX shader 2019-11-10 02:01:52 +11:00
dexy
03fa5575bf Fix for bones on peds drawables with existing skeletons. Also included code to use geometry-specific bone matrices where boneIds array is used, but commented out since it never seems necessary (leaving in for reference) 2019-11-09 21:07:41 +11:00
dexy
629ee125a5 Reset ped model to T pose when no animatino selected 2019-11-08 18:58:56 +11:00
dexy
90142cb6da Peds form beginnings, new MetaNames, updated index field types for Bone, added EBoneFlags 2019-11-06 04:53:20 +11:00
dexy
d5aa1c500c Added CalculateBoneHash method to Bone 2019-11-05 21:13:04 +11:00
dexy
4cc780a461 New MetaNames, Fragments glass windows progress, Renaming some things in Skeleton and Bone 2019-11-05 20:47:10 +11:00