Page 1 of 1

Double sided material in PB Ogre?

Posted: Mon Jan 22, 2007 12:49 pm
by Godai
Hi. I want to draw a surface from each side, without duplicating it.
Anyknow know if this is possible in PB Ogre or do I need to duplicate and flip the surface myself? (Which is the nicest thing to do :))

Can't find anything in the material flag stuff to do it.

Thanks in advance

easy

Posted: Wed Jan 24, 2007 8:18 am
by GBeebe
If I understand your question correctly...

You just need to define 2 more triangles but going counter-clockwise using the same vertices that you have for the front surface. Then just make sure you you are including them in the same SetMeshData() that makes the Faces... So the number of triangles should be 4 instead of just 2, and it should automatically be flipped for you.

Hope this helps.