I was traying to get through the mesh buffer vertex and index
I noticed that in the example 03.Custom SceneNode
if i modify
u16 indices[] = { 0,2,3,....
into
u16 indices[] = { 0,3,2,.......
a face of the shape dissapear
i use openGL c)option with Linux
is this correct?
May be i have misunderstand the index functionality?
could it be an error of my openGL?
Thank you
Code: Select all
virtual void render()
{
//OK u16 indices[] = { 0,2,3, 2,1,3, 1,0,3, 2,0,1 };
u16 indices[] = { 0,3,2, 2,1,3, 1,0,3, 2,0,1 };
video::IVideoDriver* driver = SceneManager->getVideoDriver();
driver->setMaterial(Material);
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
driver->drawIndexedTriangleList(&Vertices[0], 4, &indices[0], 4);
}