Code: Select all
Obj->begin("foo", Ogre::RenderOperation::OT_TRIANGLE_LIST);
Obj->position(0, 0, 10);
Obj->colour(Ogre::ColourValue::Red);
Obj->position(0, 0, 0);
Obj->colour(Ogre::ColourValue::Red);
Obj->position(0, 10, 0);
Obj->colour(Ogre::ColourValue::Red);
Obj->position(0, 10, 10);
Obj->colour(Ogre::ColourValue::Red);
Obj->triangle(0,1,2);
Obj->triangle(2,3,0);
Obj->end();

I understand you can add
cull_software none
cull_hardware none
to your material script to make it work, but there are drawbacks to performance, lighting, etc.... I saw in an old post sinbad indicating you need to draw triangles for the other side as well for it to show-up. I'm struggling to understand how to do this on my manual object, can anyone give me some tips?