-
Notifications
You must be signed in to change notification settings - Fork 138
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
parsing gltf file #97
Comments
I would open the glTF file in a text editor and step through the code in a debugger until I discover what is not happening as I had expected. Are there triangles in the glTF? 16-bit indexed? Has the buffer been loaded? |
This ignores any type of offset that might apply to the accessor. I would recommend using cgltf_accessor_read_float or cgltf_accessor_unpack_floats helpers to read any attribute data.
Note that you don't actually need this if you use cgltf_accessor_read_index since that function will handle different types transparently. |
@sancelot Did the comments here help? |
I was trying To decode the blender cube at first before a bigger file ..I have not had time to continue. I will retry it very soon. I want to load the file in ordre To display it and have thé scenegraph available. |
@jkuhlmann could the code above maybe get worked into an example? with incorporated use of |
Hi,
I am trying to decode triangles from gltf file.
Unfortunately, I don't manage to reach vertex data , what may be wrong ?
The text was updated successfully, but these errors were encountered: