Adding a weapon to FPS

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.
Th3one
Posts: 17
Joined: Fri Nov 25, 2005 11:43 am

Post by Th3one »

ok...i'll give it a shot :P whats the command for turning off Ztesting for the weapon?
Dan
Posts: 2
Joined: Thu Dec 01, 2005 12:37 pm

Z Testing

Post by Dan »

You can turn off z testing by:

yourWeaponNode -> setMeterialFlag(video::EMF_ZBUFFER, false);

however you still have the problem of setting the correct drawing order.

You want the weapon to be drawn last.

Hope that helps

edit: Im new to irrlicht so could someone please correct me if im wrong
Guest

Post by Guest »

yeah to draw it last just call it's own draw method while excluding it from the general scenemanager drawall... somehow ;)
Post Reply