UnityPack icon indicating copy to clipboard operation
UnityPack copied to clipboard

Vertex and Normal data mixed up in Unity 2018.2 AssetBundles

Open rogangriffin opened this issue 5 years ago • 3 comments

When I use the export.py functions on Unity 2018.2 AssetBundles, the vertices and normals get mixed up in the arrays. Vertices array looks like 1 vertex Vector3, then 3 normal Vector3s, then 1 vertex Vector3, then 3 normal Vectors, etc. Normals then has vertex position data mixed in. I guess their format changed. Attaching an AssetBundle (simple cube) from 2018.2. cube.assetbundle.zip

rogangriffin avatar Mar 22 '19 15:03 rogangriffin

Thanks for the attachment -- any chance you can PR a fix?

jleclanche avatar Mar 22 '19 15:03 jleclanche

If I figure out what the pattern of change is I will.

rogangriffin avatar Mar 22 '19 15:03 rogangriffin

Pull request is here: https://github.com/HearthSim/UnityPack/pull/79 Sorry about the whitespace changes. I am going to be converting a ton of Unity 2018 assets with this so I will update as I find more issues.

rogangriffin avatar Mar 22 '19 17:03 rogangriffin