how can I change back face cull mode of rendering?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
bongse1
Posts: 14
Joined: Mon Jul 26, 2010 11:41 am

how can I change back face cull mode of rendering?

Post by bongse1 »

in directX there are 3 kinds of back face culling mode.Clockwize,anti-clock-wize,non-cull.How can I change this back face culling mode in irrlicht?.
booe
Posts: 76
Joined: Thu Jul 29, 2010 2:12 pm

Post by booe »

Oh, its the face culling.. clockwise* afair. You should get more info about it in IRRLICHT DOCUMENTATION.
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

Post by pc0de »

To be more specific, you'll want to look at setMaterialFlag() in the IMesh interface or the ISceneNode interface.

Code: Select all

mesh->setMaterialFlag(EMF_BACK_FACE_CULLING, false);
node->setMaterialFlag(EMF_FRONT_FACE_CULLING, false);
It would also be a good idea to look at SMaterial.
Post Reply