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.
Sard
Posts: 8 Joined: Tue Dec 09, 2008 1:19 pm
Post
by Sard » Tue Dec 16, 2008 10:06 pm
Ok, I've been poking around a little. I took some snippets from the examples, but I can't seem to get the movement thing working.
I get the model to render via
Code: Select all
scene::IAnimatedMeshSceneNode* ball = smgr->addAnimatedMeshSceneNode(smgr->getMesh("data/ball.obj"));
ball->setMaterialFlag(video::EMF_LIGHTING, true);
ball->setMaterialFlag(video::EMF_ZWRITE_ENABLE, true);
if (ball)
ball->setPosition(core::vector3df(-75,0,0));
And I do have the MyEventReceiver from the example and I do have the whole while loop from the example, but it just wont work. Oh and I do have changed it to refer to the ball rather than node it originally did.
Any ideas?
ibnefazil
Posts: 8 Joined: Tue Dec 16, 2008 9:38 pm
Post
by ibnefazil » Tue Dec 16, 2008 10:11 pm
have u registered ur MyEventReceiver object in createDevice function?
Code: Select all
MyEventReceiver receiver;
video::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9;
IrrlichtDevice* device = createDevice( driverType, core::dimension2d<s32>(640, 480),
16, false, false, false, &receiver);
Ion Dune
Posts: 453 Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:
Post
by Ion Dune » Tue Dec 16, 2008 11:44 pm
What do you mean by won't work? Nothing at all happens? Entire source code will be needed to accurately and efficiently debug this problem.
Sard
Posts: 8 Joined: Tue Dec 09, 2008 1:19 pm
Post
by Sard » Wed Dec 17, 2008 12:10 am
ibnefazil wrote: have u registered ur MyEventReceiver object in createDevice function?
Code: Select all
MyEventReceiver receiver;
video::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9;
IrrlichtDevice* device = createDevice( driverType, core::dimension2d<s32>(640, 480),
16, false, false, false, &receiver);
Well DUH, sorry I completely forgot to RTFM.
Thanks, should've probably read the comments on the example a bit more carefully.