WolvenKit icon indicating copy to clipboard operation
WolvenKit copied to clipboard

Anims: Import SIMD Animations into SIMD Buffers (not Converted)

Open effs opened this issue 1 year ago • 3 comments

Currently originally SIMD anims are converted to CompressedBuffer on import. Should be reasonably straightforward with the correct format defined in the export.

effs avatar Nov 25 '23 07:11 effs

This breaks scenerid animations (the game crashes on trying to play them) effectively barring editing them.

anygoodname avatar Apr 06 '24 22:04 anygoodname

This breaks scenerid animations (the game crashes on trying to play them) effectively barring editing them.

  1. Does it happen if you just do an export/import roundtrip without involving Blender or whatever?
  2. Does it happen if you roundtrip via Blender without editing anything?
  3. Does it happen if you omit all SIMD animations?

Additionally

  1. Can you provide an asset path to test with
  2. Explain the workflow you're using, and the minimal edit to break something
  3. Are you using some framework or plugin that isn't the Blender addon
  4. Versions

effs avatar Apr 07 '24 00:04 effs

  1. Does it happen if you just do an export/import roundtrip without involving Blender or whatever? Yes
  1. Does it happen if you roundtrip via Blender without editing anything? Yes
  1. Does it happen if you omit all SIMD animations? There are only SIMD animations in scenerid files I was looking into.
  1. Can you provide an asset path to test with The animation I imported back and replaced in the original file it crashed the game every time I tried comes from this file: base\animations\quest\main_quests\part1\q108\q108_03_alt\synced__sex_with_alt__01.scenerid synced__sex_with_alt__01_anim_sn111 actor: 3 animation: 34 this is a player body animation (player_man_skeleton.rig):
  1. Explain the workflow you're using, and the minimal edit to break something
  1. extract the animation to an intermediate animation file based on: https://docs.google.com/document/d/1AU8PwIW23mdu6nDXD9Hj7GMN13HdyRX4sqvp9PSuHs8/edit#heading=h.v1449r1mjrx9
  2. Export the intermediate animation file to glb,
  3. Import the intermediate animation from glb
  4. Convert the intermediate animation file to json
  5. Reverse the workflow described in point 1 on the way back to the original scenerid file (replace the animBuffer entry only in a scenerid json file, make sure to update handle and buffer ids accordingly, import the json file)
  6. Pack the archive and play the scene. Once it comes to play this particular re-imported animation, the game crashes. Untouched SIMD animations in this file play without issues.
  1. Are you using some framework or plugin that isn't the Blender addon No
  1. Versions Game 2.12, 2.12a Wolvenkit up to 8.13.0 2024-04-06 nightly (tried different versions starting with 8.12.2 2023-11-29). Irreverent as simple re-import is enough to cause issues but just to make it clear: Blender 3.6.1 Blender add-on 1.5.4

anygoodname avatar Apr 07 '24 09:04 anygoodname