I'm riting because I have a problem opening any file in Irrlicht.
I pass you the code:
Code: Select all
#include <IRR/irrlicht.h>
int main(void)
{
irr::IrrlichtDevice *device = irr::createDevice (irr::video::EDT_OPENGL, irr::core::dimension2d<irr::u32>(800,600), 32,false,true,false,0);
irr::video::IVideoDriver* driver = device->getVideoDriver ();
irr::scene::ISceneManager *sceneManager = device->getSceneManager ();
irr::scene::ICameraSceneNode *camera = sceneManager->addCameraSceneNodeFPS (0,80.0f,0.2f);
irr::scene::IAnimatedMesh *gun = sceneManager->getMesh("gun.md2");
irr::scene::IMeshSceneNode *Ngun = sceneManager->addMeshSceneNode(gun->getMesh(0));
while (device->run ())
{
driver->beginScene (true, true,
irr::video::SColor (255,100,100,255));
sceneManager->drawAll ();
driver->endScene ();
}
device->drop ();
return 0;
}
Irrlicht Engine Version 1.7.1
microsoft Windows XP Professional Service Pack (Build 2600)
Using renderer: OpenGL 1.1.0
GDI generic: Microsoft Corporation
OpenGL driver version is not 1.2 or better
Failed to load OpenGL's multitexture extension, proceeding without.
GLSL not availaible.
Could not load mesh, because file could not be opened : gun.md2
Process returned -1073741819 (0xC0000005) execution time : 0.125
Press any key to continue.
Is it because OpenGL version is under 1.2 ?
Or his texture extension ?
I dont know, please help me!!
Thanks for reading.