Mesh problem after rescale + light SOLVED

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
bonsalty
Posts: 120
Joined: Thu Dec 10, 2009 1:30 pm
Location: Budapest,Hungary

Mesh problem after rescale + light SOLVED

Post by bonsalty »

Code: Select all

scene::IAnimatedMesh* mesh = params->smgr->getMesh(path.GetBuffer());
model = params->smgr->addAnimatedMeshSceneNode( mesh );
The mesh I load is a static 3ds file. Its fine, but when I rescale the mesh, the textures seem to gone away, the object is black and white.
If lighting is off, its working too.
What might be the problem?
Last edited by bonsalty on Thu Aug 12, 2010 3:26 pm, edited 1 time in total.
Tomi
bonsalty
Posts: 120
Joined: Thu Dec 10, 2009 1:30 pm
Location: Budapest,Hungary

SOLVED

Post by bonsalty »

model->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);

This is what I forgot...
Tomi
Post Reply