Drawing objects seperately of the scene manager

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
Dan
Posts: 2
Joined: Thu Dec 01, 2005 12:37 pm

Drawing objects seperately of the scene manager

Post by Dan »

Hi

Ive been working on a simple fps using the Irrlicht engine while I learn how to use it.

Ive read some similar threads about adding a weapon to an fps.
Ive set up my player weapon model so that z testing is disabled using:

node ->setMaterialFlag(video::EMF_ZBUFFER, false);

However the weapon is always drawn last resulting in the map overlapping the weapon.


I noticed you can draw a node seperately from the scene manager using node->render.

However I then run into the problem of loading the mesh without using the scene manager.

Does anyone know how I can have direct something like:
mesh->getMesh("....");
node -> getAnimatedSceneNode();
note: this is without using the scene manager so I could then use node->render() directly
ProSoft
Posts: 59
Joined: Thu Sep 08, 2005 10:55 am
Location: Brasil

Post by ProSoft »

Make weapon invisible, so it will not be rendered with drawAll()...
I have tryed to render a scenenode using ->render(), but without success.
Guest

Post by Guest »

Try using 2 seperate scenemanagers and draw the one with the weapon in last so that it overdraws anything before it. multi scenemanagers were added to 0.12.0
Post Reply