render both sides of polygons

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
Efrint
Posts: 18
Joined: Sat Dec 10, 2005 6:04 pm

render both sides of polygons

Post by Efrint »

Hello,

is it possible, that irrlicht renders both sides of the polygons of a model?

Regards Efrint
Guest

Post by Guest »

Backface culling needs to be off for that... you could edit the irrlicht code to disable it, i don't think there is anyway direct call to disable it in irrlicht - though i could be wrong.

I have to ask why would you want to?
Guest

Post by Guest »

it is possible, i think its something like this:

node->getMaterial(0).BackfaceCulling = false;


or something like that (have a look at the irrlicht api :) )


good luck!
Guest

Post by Guest »

so i just have to set backface culling off and then both polygon-sides will be rendered?
Conquistador
Posts: 340
Joined: Wed Sep 28, 2005 4:38 pm
Location: Canada, Eh!

Post by Conquistador »

Check it out and see!
Royal Hamilton Light Infantry - http://www.rhli.ca
Paris/Port Dover Pipes'n Drums - http://www.parisdover.ca
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Code: Select all

node->setMaterialFlag(video::EMF_BACK_FACE_CULLING,false);
that should do the trick.
Guest

Post by Guest »

i think that both ways are the same, but i dont know for sure :) too lazy to look it up at the irrlicht API (.....which is a task of < 1 minute ;) you know what i try to say)


see you!
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

I don't know why, but this doesn't work:

Code: Select all

node->getMaterial(0).BackfaceCulling = false; 
This does:

Code: Select all

node->setMaterialFlag(video::EMF_BACK_FACE_CULLING,false); 
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
pfo
Posts: 370
Joined: Mon Aug 29, 2005 10:54 pm
Location: http://web.utk.edu/~pfox1

Post by pfo »

If your node has more than 1 mateial, then node->getMaterial(0).BackfaceCulling = false; will only work on the first material, node->setMaterialFlag() sets it for all materials.
Post Reply