You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a one global array buffer for each type of data (position, uv, normal, etc).
Then create one element buffer array (index) for each material index data.
Create one VAO for each material index array. Every VAO is going to be bound to all the global array buffer and one respective element buffer.
Lastly I draw every VAO.
I tried this approach with Drovaric sponza from https://casual-effects.com/data/ and it works fine, but it does not have normal data, so I used blender to generate the normals and I get a bad result when drawing the mesh, like the the vertices are out of order.
in the case of using OBJ.initMeshBuffers, how would i go about it?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello
I've been trying this method:
Create a one global array buffer for each type of data (position, uv, normal, etc).
Then create one element buffer array (index) for each material index data.
Create one VAO for each material index array. Every VAO is going to be bound to all the global array buffer and one respective element buffer.
Lastly I draw every VAO.
I tried this approach with Drovaric sponza from https://casual-effects.com/data/ and it works fine, but it does not have normal data, so I used blender to generate the normals and I get a bad result when drawing the mesh, like the the vertices are out of order.
in the case of using OBJ.initMeshBuffers, how would i go about it?
Thanks.
The text was updated successfully, but these errors were encountered: