Zdepth

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
benny53
Posts: 131
Joined: Fri May 26, 2006 10:21 pm
Location: Ohio

Zdepth

Post by benny53 »

Is there anyway to disable the zdepth of a mesh? I'm thinking of using this for weapons. Right now,I have the positioning and rotating working wonderful,but the zdepth issue is so annoying. I don't think many games today have it so your guns go through walls :D
Mikenoworth
Posts: 78
Joined: Sat May 27, 2006 9:24 pm
Location: Logan, UT

Post by Mikenoworth »

I think you wanna do it per-node using the nodes materials.

You wanna tinker with Node->getMaterial(aMaterialsIndex).ZBuffer and _maybe_ Node->getMaterial(aMaterialsIndex).ZWriteBuffer, they are both boolean.
Stout Beer
benny53
Posts: 131
Joined: Fri May 26, 2006 10:21 pm
Location: Ohio

Post by benny53 »

thanks. I'll try this out.
Post Reply