in the first tutorial http://irrlicht.sourceforge.net/docu/example001.html
theres no lights right? (why not?, well ok)
here http://www.irrlicht3d.org/wiki/index.ph ... dMaterials
there is but im still getting this (see picture):
the relevant code is this:
Code: Select all
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
IAnimatedMesh* mesh = smgr->getMesh("../../media/rata.obj");
if (!mesh) return 1;
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
ILightSceneNode* light = smgr->addLightSceneNode( 0, core::vector3df(0,400,-200), video::SColorf(0.3f,0.3f,0.3f), 1.0f, 1 );
node->setMaterialFlag(EMF_LIGHTING, true);
smgr->addCameraSceneNode(0, vector3df(100,10,0), vector3df(0,0,0));