how to make model inside out?

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
sunnygraphy
Posts: 44
Joined: Mon Dec 05, 2005 8:15 am

how to make model inside out?

Post by sunnygraphy »

Hi..

Is there any way to change face normals of nodes at runtime?
So, I can hide scene node without using setvisilbe() function.


thanks
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Yes, there is the function flipSurfaces(mesh) !!!
But it won't do what you want to do !!!
If you flip the surfaces the mesh is still visible, you just look inside it...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Coolkat88
Posts: 30
Joined: Tue Oct 03, 2006 3:14 pm

Post by Coolkat88 »

Acki, if the faces on the inside of the model were removed then wouldn't this still work? never tried it but i would think so.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

If you flip the normals, you will see the inside of the far side of the model. If the model is a sphere you would normally see the outside of the sphere. If you flip the normals, it will look like you cut the ball in half and threw away the near hemisphere. You will see the inside of the far half of that sphere. I would guess that this is probably not what you want.

Travis
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Coolkat88 wrote:Acki, if the faces on the inside of the model were removed then wouldn't this still work? never tried it but i would think so.
No, because you don't remove the faces, but you flip them, so they don't face to the "outside" but to the "inside" !!!
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply