Question

I am trying to draw cylinders using vbo. As I have understood, I need vertices and normal arrays to draw a cylinder using vbo, but I don't know how to specify those arrays. I need to find the content of those arrays.

Was it helpful?

Solution

The process of creating an array of triangles that represents a geometric object is called tesselation.

There are methods for triangulating parametric surfaces such as cylinders.

Another option is to draw a cylinder in a 3d modelling tool such as Blender, 3d studio max or Maya and then export a triangle mesh of your model and parse that file and thus load the model into your program.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top