Page 1 of 1

Zdepth

Posted: Wed Aug 16, 2006 8:04 am
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

Posted: Wed Aug 16, 2006 8:29 am
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.

Posted: Wed Aug 16, 2006 10:03 pm
by benny53
thanks. I'll try this out.