When I move on my floor and rotate at some angles, it disappears sunddenly...
I don't really know where it could come from, maybe my graphics card (Intel GMA 950) under OpenGL, here's the video : http://www.youtube.com/watch?v=VkR92r7sFh0
Here's the code I am using :
Code: Select all
SMesh *mesh = new SMesh();
mesh->addMeshBuffer(new SMeshBuffer());
SMeshBuffer* mb = reinterpret_cast<SMeshBuffer*>(mesh->getMeshBuffer(mesh->getMeshBufferCount()-1));
mb->Vertices.push_back(video::S3DVertex(-10, 0, 10, 0, 0, -1, color, 0, 0));
mb->Vertices.push_back(video::S3DVertex(10, 0, 10, 0, 0, -1, color, 1, 0));
mb->Vertices.push_back(video::S3DVertex(10, 0, -10, 0, 0, -1, color, 1, 1));
mb->Vertices.push_back(video::S3DVertex(-10, 0, -10, 0, 0, -1, color, 0, 1));
mb->Indices.push_back(0);
mb->Indices.push_back(1);
mb->Indices.push_back(2);
mb->Indices.push_back(0);
mb->Indices.push_back(2);
mb->Indices.push_back(3);
mb->Indices.push_back(3);
mb->Indices.push_back(2);
mb->Indices.push_back(1);
mb->Indices.push_back(3);
mb->Indices.push_back(1);
mb->Indices.push_back(0);
mesh->recalculateBoundingBox();
return (IMesh*)mesh;
Thanks.