I'm playing with ManualObject and have a few questions after crawling the forums searching for an answer or two.
So my question is:
Does anyone have a diagram/description as to the normal/textureCoord/colour/triangle with respect to the vertex that the api has described?
I looked up some diagrams online and referenced open-gl, but it still was not quite clear as to what the methodology was expressing. I understand the vertex locations, but it's not quite clear how a vertex normal applies to an object (at least compared to the normal of a surface bounded by several vertices). I do believe that I understand that all visual faces need to be expressed as a collection of triangles (so I think that makes sense).For each vertex, call position(), normal(), textureCoord(), colour() to define your vertex data. Note that each time you call position() you start a new vertex. Note that the first vertex defines the components of the vertex - you can't add more after that. For example if you didn't call normal() in the first vertex, you cannot call it in any others. You ought to call the same combination of methods per vertex.
If I want to represent a cube, for example, I understand that I would start with 8 vertices, but I've seen examples that leverage many more. Is that for the purpose of creating overlapping vertices in order to define triangles that share a common point with normals for each component of the triangle's
3 vertices?
Thank you!
Neb