lobbel

09-09-2010, 11:29 PM

Hello,

drawing a Cube with vbo is not difficult. I define 8 vertices and

then create some indices to draw triangles with that given 8 vertices. But how to handle the normals ? When I wanted to have normales for each triangles, I created as much vertices I need for triangles.

For example, draw a cube with triangles need normally 36 triangles. 6 Faces and 2 triangles per face. When I create a cube with redundant vertices (36) and define a normal for each vertex, it's easy to understand how to use the normals. But how

to handle it, with just 8 vertices and an amount of 12 normnals, or 6 normals.

regards,

lobbel

drawing a Cube with vbo is not difficult. I define 8 vertices and

then create some indices to draw triangles with that given 8 vertices. But how to handle the normals ? When I wanted to have normales for each triangles, I created as much vertices I need for triangles.

For example, draw a cube with triangles need normally 36 triangles. 6 Faces and 2 triangles per face. When I create a cube with redundant vertices (36) and define a normal for each vertex, it's easy to understand how to use the normals. But how

to handle it, with just 8 vertices and an amount of 12 normnals, or 6 normals.

regards,

lobbel