I'm new to 3D programming, and I have now started to play around and program with Irrlicht. I recently started checking the Irrlicht tutorial number 3, which covers creating your own custom scene node. I am new to 3D programming, so I was a bit confused about vertices and indices. I therefore decided to look for more information about them on the internet.
So, if I have understood correctly, vertices are just points in 3D space, and indices tell which vertices should be connected to make a triangle, and these triangles then form the 3D object. So for example a cube would have 8 vertices (corners). The cube could the be formed by using indices to tell which of those vertices need to be connected to form the triangles. Each face of the cube would be formed from two triangles, and so the whole cube would be formed by 12 triangles.
Have I understood these things correctly? This all seems very logical and even beautiful.
Currently however I'm a bit confused about the vertices in Irrlicht. The reason for that is that the constructor for irr::video::S3DVertex takes in so many values:
Code: Select all
S3DVertex (const core::vector3df &pos, const core::vector3df &normal, SColor color, const core::vector2d< f32 > &tcoords)