2 models displayed...

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
BiZMaN

2 models displayed...

Post by BiZMaN »

hey guys!

i´ve a problem with simple mesh - displaying:

i load a simple .MD2 weapon model (just one!)
but the window shows 2 of them... :shock:
this mesh is just for test purposes its not essentially to display
it properly but its quite strange...
so here´s the code:

Code: Select all


	positioningMesh = smgr->getMesh("models/weapon.md2");
	positioningNode = smgr->addAnimatedMeshSceneNode  (positioningMesh,node);
	positioningNode-> setVisible(true);
	positioningNode-> setMaterialFlag(EMF_WIREFRAME,true);
	positioningNode-> setFrameLoop(0,0);
	positioningNode-> setPosition(vector3df(10,0,0));
hm.. does anybody knows or has a suspicion whats wrong here? :shock:
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Your code is right. Are you creating another scene node somewhere? For example: what is 'node', the parent scene node of your md2 node? I bet the problem lies in your code, not in the engine. :roll:
Post Reply