Me and my friend are making a first person shooter and decided to use the Irrlicht Engine. We are planning on making all of the maps in .bsp format and we're also going to use cel shading so i'm messing around with tutorial 2 but i just can't get it to work!
It says: cannot convert from 'irr::scene::ISceneNode *' to 'irr::scene::IAnimatedMeshSceneNode *'
this is were it won't work.
BTW! I'm using the "ToonShader" By sio2
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=18400
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
IAnimatedMeshSceneNode* node =(IAnimatedMeshSceneNode*)smgr->addAnimatedMeshSceneNode(mesh);
//addAnimatedMeshSceneNode
if (mesh)
node = (IAnimatedMeshSceneNode*)smgr->addOctTreeSceneNode(mesh->getMesh(0), 0, -1, 1024);
if (node)
node->setPosition(vector3df(-1300,-144,-1249));
node->setMaterialFlag(EMF_LIGHTING, false);
node->setMD2Animation (EMAT_STAND );
node->setMaterialType((E_MATERIAL_TYPE)mtlToonShader);