Cullface (Answered)

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
Yellow_Yackets
Posts: 29
Joined: Thu Oct 25, 2007 5:58 pm
Location: Florida
Contact:

Cullface (Answered)

Post by Yellow_Yackets »

How do i disable the CULLFACE of a terrainscenenode so that when i look at it from the bottom i still see it instead of seeing it transparent?
Last edited by Yellow_Yackets on Wed Nov 21, 2007 4:17 am, edited 1 time in total.
Y_Y
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The material has a backface-culling attribute that you need to set to false.
Yellow_Yackets
Posts: 29
Joined: Thu Oct 25, 2007 5:58 pm
Location: Florida
Contact:

Post by Yellow_Yackets »

Thanks again vitek.
Y_Y
Yellow_Yackets
Posts: 29
Joined: Thu Oct 25, 2007 5:58 pm
Location: Florida
Contact:

Post by Yellow_Yackets »

Example:

Code: Select all

Terrain[2]->setMaterialFlag(EMF_BACK_FACE_CULLING,false);
Y_Y
Post Reply