[fixed]demo fix

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

[fixed]demo fix

Post by Midnight »

"demo.cpp"

Code: Select all

                
 
model2 = sm->addAnimatedMeshSceneNode(mesh);
                if (model2)
                {
                        model2->setPosition(core::vector3df(180,15,-60));
                        model2->setScale(core::vector3df(2,2,2));
                        model2->setMD2Animation(scene::EMAT_RUN);
                        model2->setMaterialTexture(0, device->getVideoDriver()->getTexture("../../media/sydney.bmp"));
                        model2->setMaterialFlag(video::EMF_LIGHTING, true);
                        model1->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
                        model2->addShadowVolumeSceneNode();
                }

Code: Select all

 model1->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
 
SHOULD BE

Code: Select all

 model2->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
 
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: demo fix

Post by CuteAlien »

Thanks. Fixed in 1.7 branch, trunk will follow on next merge.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply