Skip to content

Getting a broken model on import. #9

Closed Answered by Sandman13sq
derik-dot-digital asked this question in Q&A
Discussion options

You must be logged in to vote

The addon had some attribute building errors where normals used the wrong array size and colors would be missing if no vertex color layers were found for a mesh. This has been fixed in the latest commit.

Your format defined in the Blender file you sent uses color floats. If this is intended, the color attribute will differ GM and will show a stride error when not set correctly.

vertex_format_add_color() is native GM, but will give a stride error with your current vb format:

vertex_format_add_custom(vertex_type_float4, vertex_usage_color) matches what you have defined in your Blender file:

You can change the format either in GM or Blender to match the other. I suggest Color Bytes since i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by derik-dot-digital
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants