a problem with custom scene node

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
tomibrom
Posts: 2
Joined: Tue Apr 21, 2009 11:35 am

a problem with custom scene node

Post by tomibrom »

Hello. I've written a custom scene node with 4 vertices and 4 triangles (2 for face and 2 for backside). sadly, when i render the scene nodes which should be behind the others are in advance of them. What may be wrong?
vipergc
Posts: 27
Joined: Mon Mar 02, 2009 3:33 am
Location: Louisville, KY
Contact:

Post by vipergc »

Without seeing your code its hard to tell what might be wrong... however you might consider this...

make sure that you have the triangles vertices arranged in a counter clockwise fashion when viewed from the outside of the face

make sure you have calculated the normals for these faces correctly
Co-Inventor of ZIP files.

Hardware - play with it long enough.. it BREAKS
Software - play with it long enough.. it WORKS
tomibrom
Posts: 2
Joined: Tue Apr 21, 2009 11:35 am

Post by tomibrom »

I've discovered that the problem only occur when the material's MaterialType = irr::video::EMT_TRANSPARENT_ALPHA_CHANNEL
Post Reply