Code: Select all
std::cout << "The Mesh Has: " << CUBE->getMesh()->getMeshBuffer(0)->getVertexCount() << " Vertices";
I'm stumped.
Code: Select all
std::cout << "The Mesh Has: " << CUBE->getMesh()->getMeshBuffer(0)->getVertexCount() << " Vertices";
You could always create a mesh scenenode which holds a cube with only 8 vertices (you'd need to write an implementation to generate such a cube yourself, but this isn't hard) as long as you keep in mind that your textures won't display correctlytrollger wrote:hmm... Thats Interesting. So How Would I count the vertexes so as to arrive at 8?
trollger wrote:hmm... Thats Interesting. So How Would I count the vertexes so as to arrive at 8?
I can understand his confusion about the subject, in computer graphics the word vertex has a slightly different meaning than in standard geometryHerrAlmanack wrote:I suggest you read up on some general 3d graphics tutorials. you need to understand the concepts of unwrapped vertices, their normals, etc etc. it's not a simple matter of the "apparent" number of vertices.
HerrAlmanack wrote:trollger wrote:hmm... Thats Interesting. So How Would I count the vertexes so as to arrive at 8?
I suggest you read up on some general 3d graphics tutorials. you need to understand the concepts of unwrapped vertices, their normals, etc etc. it's not a simple matter of the "apparent" number of vertices.