سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top