Page 1 of 1

Mesh problem after rescale + light SOLVED

Posted: Thu Aug 12, 2010 3:11 pm
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?

SOLVED

Posted: Thu Aug 12, 2010 3:26 pm
by bonsalty
model->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);

This is what I forgot...