2 sided Textures?

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
SSmutny

2 sided Textures?

Post by SSmutny »

Hello!

Have have a 3ds made mesh loaded in the irrlicht engine.
I have set an ambient light and i can see all textures. But only from
one side of my mesh... from the other side you can watch through the walls.
What can i do? I want the textures to be 2 sided.

greets sascha
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

If you work in your model program you should set Draw backfaces off. Triangles are viewable from one side. The other side you can't see. You can duplicate the faces and flip them. After that you can set a texture in the inside of your model too.
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
SSmutny

Post by SSmutny »

Ok! Thanks!

I will test this!

greets Sascha
SSmutny

Post by SSmutny »

I can't find this option in 3d studio 6... can anyone help me?
Where can i turn off the backfacing?

mfg Sascha
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

Sorry, I work with Milkshape. There are that kind of options, it should be something like that...
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
SSmutny

Post by SSmutny »

Ok... i have found the option, but it does not work. I can still
watch through the walls of my house from one side.

Help!!!! :)
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

You should select, and filp your triangles (don't duplicate all, it would be heavy for your computer) of the point where you can see through. At that point you have to set your textures.
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
SuryIIID
Posts: 14
Joined: Mon Dec 29, 2003 8:54 pm
Location: Bulgaria..?

Saschinka dorogoi :)

Post by SuryIIID »

Well instead of creating mirrored faces and doubling your mesh triangles count you could simply put this in your code :

Code: Select all

    node->setMaterialFlag(video::EMF_BACK_FACE_CULLING,false);
Hope this will help you Sasha ;)
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

you could simply put this in your code
--the only side effect being that your lighting on the inside will look like that of the outside of your model
a screen cap is worth 0x100000 DWORDS
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

I think backfaceculling is asking lots of your computers strenght.
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Post Reply