now i've a new problem .
i maded a aim_map1.3ds file and know i whont to load it intro my code , and its gives me much errors . and realy dont know whats wrong in my source code.
here is my code
Code: Select all
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib") // dit wilt zeggen dat ik een lib bestand moet hebben en een dll
int main()
{
IrrlichtDevice *device =
createDevice( video::EDT_SOFTWARE2, dimension2d<s32>(1270, 1024), 16,
false, false, false, 0);
device->setWindowCaption(L"Test met wapen een AK47");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addStaticText(L"Hello mijn eerste script in irrlicht .",
rect<int>(20,20,260,322), true );
//-------------------------------------------------------- dit is voor BMP 3D bij te voegen ----------
IAnimatedMesh* mesh = smgr->getMesh("maps/aim_map1.3ds");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );
if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
node->setMD2Animation ( scene::EMAT_STAND );
node->setMaterialTexture( 0, driver->getTexture("maps/aim_map1.jpg") );
}
// ( ,50, = het draaien van screen
smgr->addCameraSceneNode(0, vector3df(50,50,-40), vector3df(0,5,0));
//------------------------------------------------------------------------------------------------------
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
and here is my error :
Code: Select all
'Project1.exe': Loaded 'C:\Documents and Settings\Eigenaar\Bureaublad\C++ codes\Hello script in irrlicht\debug\Project1.exe', Binary was not built with debug information.
'Project1.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\Documents and Settings\Eigenaar\Bureaublad\C++ codes\Hello script in irrlicht\Project1\Irrlicht.dll', Binary was not built with debug information.
'Project1.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\glu32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll', No symbols loaded.
'Project1.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
Irrlicht Engine version 1.1
Microsoft Windows XP Personal Service Pack 2 (Build 2600)
'Project1.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'Project1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.
Loaded texture: #DefaultFont
First-chance exception at 0x100555a8 in Project1.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x100555a8 in Project1.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x100555a8 in Project1.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x100555a8 in Project1.exe: 0xC0000005: Access violation reading location 0x00000000.
The program '[3772] Project1.exe: Native' has exited with code 0 (0x0).