(noob) Model definition 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
PaulBird
Posts: 10
Joined: Sat Dec 31, 2011 10:06 pm

(noob) Model definition problem

Post by PaulBird »

I downloaded this 3ds model
Image

when i load it using

Code: Select all

scene::IMeshSceneNode *node = smgr->addMeshSceneNode(smgr->getMesh("/.desk/starDestroyer.3ds"));
and run the code it shows up as this
Image
am i missing some kind of lighting technique???
any help? thanks!
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Re: (noob) Model definition problem

Post by Virion »

you must have disabled the lighting. try to enable lighting for your mesh

Code: Select all

node->setMaterialFlag(EMF_LIGHTING, true);
and add a light into the scene.
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
Post Reply