Weapon problem

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
skaarj
Posts: 7
Joined: Thu May 31, 2007 4:17 pm

Weapon problem

Post by skaarj »

I have a problem with weapon rendering, i'm adding a gun node to a camera:
Image

How can i clear depth (Z) buffer in irrlicht?
(i.e in OpenGL glClear(GL_DEPTH_BUFFER_BIT); )
Luben
Posts: 568
Joined: Sun Oct 09, 2005 10:12 am
Location: #irrlicht @freenode

Post by Luben »

You could just disable z-testing in the gun material.
See SMaterial.h in the include folder.
If you don't have anything nice to say, don't say anything at all.
Post Reply