Double sided material in PB Ogre?

Advanced game related topics
Godai
Enthusiast
Enthusiast
Posts: 171
Joined: Thu Oct 05, 2006 8:13 pm

Double sided material in PB Ogre?

Post 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
GBeebe
Enthusiast
Enthusiast
Posts: 263
Joined: Sat Oct 09, 2004 6:52 pm
Location: Franklin, PA - USA
Contact:

easy

Post 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.
Post Reply