PDA

View Full Version : VBOs and rendering solid meshes



neoideo
09-15-2009, 09:54 PM
my questions is very simple.

im using VBO for a mesh i loaded, but when this mesh gets represented on the VBO, i loose all information of the polygons that make their faces, i just have a bunch of vertexes and i cant get to render it properly like a mesh with solid surface.

what is the best approach to this?

zeoverlord
09-16-2009, 04:07 AM
The best approach is after you have loaded the data from the file you "render" it out to a vbo using something that works similar to immediate mode.

This is probably the easiest way to convert from one known format you know works to another that you know works.

Fugitive
09-16-2009, 05:06 AM
It looks like you need an indexed VBO.

http://sdickinson.com/wordpress/?p=122

Basically, you can define indices for your vertices in the VBO to define each face.

Fugi

neoideo
09-16-2009, 08:54 AM
The best approach is after you have loaded the data from the file you "render" it out to a vbo using something that works similar to immediate mode.

This is probably the easiest way to convert from one known format you know works to another that you know works.

i not sure if i understood what you mean, like a pseudo display list type of rendering but using the VBO, mmm tell me more about this.




It looks like you need an indexed VBO.

http://sdickinson.com/wordpress/?p=122

Basically, you can define indices for your vertices in the VBO to define each face.

Fugi


wow, thanks i think that was the missing part i was searching. im gonna test and try with that. :)