Commit Graph

225 Commits

Author SHA1 Message Date
dexy
76d0ac224c Don't generate VerticesShrunk and Octants for BoundBVH 2024-07-27 10:36:31 +10:00
dexyfex
10ea57e86d
Merge pull request #258 from alexguirre/fix-hashed-ydd
Fix .ydd export/import with unsolved hashes
2024-07-25 19:50:17 +10:00
dexy
4b65af9d74 Fix for BoundVertex going out of range on XML import 2024-07-25 18:09:37 +10:00
dexy
d0cdb1bd76 Updated Dec3N XML conversion. Ported BoundGeometry.VerticesShrunk code from rageAm. Added Track2AnimUV shader param name 2024-07-24 13:31:04 +10:00
dexy
97c24710e4 Fixed YED/XML conversion 2024-07-22 21:06:18 +10:00
dexy
5d3849b682 Improved resource packing, possibly 2024-07-19 15:24:02 +10:00
dexy
591bef09df PR #256 but with IsProportional and TracksPointDir fixes 2024-07-18 17:00:48 +10:00
dexy
d049e3ad1c PR #235 also enable light culling plane by flag 2024-07-18 14:05:49 +10:00
dexy
9b8331e696 PR #84 changes 2024-07-10 22:31:16 +10:00
alexguirre
d136c55be8 Fix .ydd export/import with unsolved hashes
When a drawable hash was unknown, it kept the "filename.#dd" name so
exporting to XML lost the hash and importing it back created a broken
file.

Now if the hash is unknown, the name is set to `hash_1234ABCD`, and XML
import checks for `hash_`.
2024-07-06 23:28:23 +02:00
dexy
d04d11c151 Expressions research from alexguirre 2023-12-13 09:19:28 +11:00
dexyfex
11591fa008
Merge pull request #216 from alexguirre/fix/clip-hash-escaping
Escape ClipBase.Hash when writing XML
2023-09-03 22:28:20 +10:00
alexguirre
7542dabb71 Escape ClipBase.Hash when writing XML
Some YCDs have special characters in the clip hash, which causes
the XML to be invalid.
2023-09-03 11:07:10 +02:00
ook3D
65c9778695 Update Unknown_7Ch 2023-08-31 17:06:45 -04:00
ook3D
4cdf69445a Updated more .ypt Unknowns 2023-08-31 01:37:34 -04:00
gg781
595bb9a375
Add Support for D3DFMT_X8R8G8B8 (#214)
This would "fix" the exported xml from having "22" in the embedded texture's format block.
In before this 22 prevents the xml file from importing into blender via Sollumz, caused the common error "KeyError:22" when some people editing weird-making mods.
2023-08-23 13:26:48 +10:00
dexyfex
3bfd6ac9f8
Merge pull request #213 from ook3D/master
tweak(); updated Particle Unknowns to correct names
2023-08-21 14:48:04 +10:00
dexyfex
f8fa095322
Merge pull request #212 from alexguirre/clip-tags
Rename ClipTag.Unknown40/44 to Start/EndPhase
2023-08-21 14:47:19 +10:00
dexyfex
44878ff70f
Merge pull request #210 from alexguirre/fix-drawables
Auto-calculate drawables blocks size fields
2023-08-21 14:40:50 +10:00
dexyfex
378e66ef3b
Merge pull request #204 from coltfox/bvh-extents-calc
Correctly calculate BVH item extents
2023-08-21 14:36:25 +10:00
dexyfex
734a7d9cbc
Merge pull request #203 from coltfox/octants
Calculate Octants during XML import, Auto calculate Vertices2 (Vertices shrunk by margin), Rename Vertices2 to VerticesShrunk
2023-08-21 14:33:10 +10:00
ook3D
ce3a0aa406 tweak(); updated Unknowns to correct names 2023-08-19 17:32:21 -04:00
alexguirre
6cf3c27e48 Rename ClipTag.Unknown40/44 to Start/EndPhase
These fields contain the phase range (time normalized between 0 and 1) during which the tag is active.
2023-08-16 17:38:34 +02:00
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
Colton Fox
1b074b4389 Correctly calculate BVH item extents 2023-07-28 16:47:11 -04:00
Colton Fox
91ab5bd6bb Rename Vertices2 to VerticesShrunk 2023-07-27 19:15:42 -04:00
Colton Fox
9137f8a169 Auto calculate Vertices2 (Vertices shrunk by margin) 2023-07-27 19:14:26 -04:00
Colton Fox
d0c4221670 Calculate Octants during XML import 2023-07-27 18:36:53 -04:00
alexguirre
071251e429 Support YFD XML import/export 2023-06-16 16:50:22 +02:00
ultrahacx
3577c2872a Add missing shadow blur parameter in drawable XML 2022-11-03 19:53:21 +05:30
dexy
9904e92082 Improved conversion of struct arrays to/from byte arrays 2022-05-08 20:54:21 +10:00
dexy
9d53fa9318 YVR/XML conversion improvements 2022-02-01 20:35:34 +11:00
dexy
d367dbebe5 YVR/XML and YWR/XML conversions 2022-02-01 02:46:36 +11:00
dexy
4e8f789cf8 Fixed typo in YED XML importer 2022-02-01 01:59:29 +11:00
dexy
7a8977b277 YED/XML conversion 2022-01-31 19:39:42 +11:00
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
7bb65ca063 Changed BoundComposite XML to use CompositeTransform Matrix instead of Position/Orientation/Scale 2022-01-06 19:52:18 +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
dexy
7f0bb17e68 YTD and embedded texture editing in YtdForm, Fixed texture sorting by hash when importing XML 2021-12-28 23:26:35 +11:00
dexy
a4998e36c8 Fixed BoundComposite BVH crash issue for fragments with destroyed models, also fixed missing BVH for XML imported ybn 2021-12-19 04:11:51 +11:00
dexy
a6a2acab75 Fix for Bounds XML not exporting null composite children 2021-12-14 02:54:59 +11:00
dexy
70ebdd8360 Changed RSC Meta packing to old version - attempted fix for peds ymt's causing crashes 2021-12-14 01:38:52 +11:00
dexy
2a63329490 Fragments XML conversion improvements and field names update 2021-12-12 02:29:11 +11:00
dexy
959eae6686 Updated Fragments field names 2021-12-10 15:42:05 +11:00
dexyfex
8ba9faacec
Merge pull request #71 from carmineos/epedboneid
Added EPedBoneId enum
2021-11-08 00:43:19 +11:00
dexyfex
aef77218bc
Merge pull request #83 from carmineos/fragfix
BoundComposite: don't create duplicated ChildrenTransformation blocks
2021-11-08 00:15:24 +11:00
dexy
4e987e523a Added FragGlassWindow flags lo/hi bytes for research purposes 2021-05-05 19:03:32 +10:00