Recommended Posts

I have a method that load a mesh from .obj, and Initialice. It works when I load one mesh only...But If I load two o more different meshes, the first that I load take the values ( vertices, indices... ) from the second. I think that the problem is in VAO or VBO, but i can´t found the error.

Share this post

Link to post

Share on other sites

The problem isn´t the VAO or VBO. Before I load the cube, the plane have his data. After I load the cube, plane have the cube data. While the data cube load , the plane have the correctly data. I don´t know what its the problem. At least VBO and VAO are discarted.

Thanks for your attention.

Edited January 24, 2013 by ShotoReaper

0

Share this post

Link to post

Share on other sites

The problem isn´t the VAO or VBO. Before I load the cube, the plane have his data. After I load the cube, plane have the cube data. While the data cube load , the plane have the correctly data. I don´t know what its the problem. At least VBO and VAO are discarted.

Thanks for your attention.

That is not consistent with what code you have shown, in which it is very clear that meshes are instances and not over-writable by standard means. There are of course mistakes that still could lead to this result but you will need to show more code.