Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertex and Normal data mixed up in Unity 2018.2 AssetBundles #78

Open
rogangriffin opened this issue Mar 22, 2019 · 3 comments
Open

Vertex and Normal data mixed up in Unity 2018.2 AssetBundles #78

rogangriffin opened this issue Mar 22, 2019 · 3 comments

Comments

@rogangriffin
Copy link

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

@jleclanche
Copy link
Member

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

@rogangriffin
Copy link
Author

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

@rogangriffin
Copy link
Author

Pull request is here: #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants