Topic: Backface!

Hi,
   It seems that my level is not culling the backface both in editor and engine! How do I cull the backface of the meshes?

   Thanks
   Regards

Re: Backface!

Hi, when you are in blender there is a "two sided" option checked by default (Blender always enable two sided by default).
It's in the "object data" blender tab, disable it to have back-face culling.

You can also edit it manually in the mesh file (xml text) with a text editor, in the "display" node, set cullFace="2"

Or in c++ :
MDisplay * display = subMesh->getDisplay(0);
display->setCullMode(M_CULL_BACK); // or M_CULL_FRONT

Re: Backface!

Hi,
   In my file, the two sided option is disabled by default in blender. But still it is exporting it as two sided. My blender version is 2.58.
And in the mesh file Display mode the cullface is already set to 2. It culls the backface if I delete it from mesh file manually, but it is impossible to edit it by hand.

EDIT: Ok found it. I thought it is two sided option check box in texture face for game engine.

   Thanks
   Regards

Last edited by Arclord (2011-09-11 19:02:44)