Unable to open scene file: ../../
Posted: Mon Nov 24, 2008 3:29 am
Unable to open scene file: ../../3dmax/export/middle.3ds
The program '[1216] 3d project.exe: Native' has exited with code 0 (0x0).
This is error i get when i try to load my scene from 3d max- i did load it into Irr-EDIT then saved it as a irr-file. I do not know what i need to do in order to reslove this problem..please help me.
...so sorry for mt english...?
Ryu omineeko,
thanks.
[/code]
The program '[1216] 3d project.exe: Native' has exited with code 0 (0x0).
This is error i get when i try to load my scene from 3d max- i did load it into Irr-EDIT then saved it as a irr-file. I do not know what i need to do in order to reslove this problem..please help me.
Code: Select all
#include <irrlicht.h>
#include <iostream>
using namespace irr;
#ifdef _MSC_VER
#pragma comment(lib, "Irrlicht.lib")
#endif
int main()
{
video::E_DRIVER_TYPE driverType;
printf("Please select the driver you want for this example:\n"\
" (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n"\
" (d) Software Renderer\n (e) Burning's Software Renderer\n"\
" (f) NullDevice\n (otherKey) exit\n\n");
char i;
std::cin >> i
;switch(i)
{
case 'a': driverType = video::EDT_DIRECT3D9;break;
case 'b': driverType = video::EDT_DIRECT3D8;break;
case 'c': driverType = video::EDT_OPENGL; break;
case 'd': driverType = video::EDT_SOFTWARE; break;
case 'e': driverType = video::EDT_BURNINGSVIDEO;break;
case 'f': driverType = video::EDT_NULL; break;
default: return 1;
}
IrrlichtDevice* device =
createDevice(driverType, core::dimension2d<s32>(640, 480));
if (device == 0)
return 1;
device->setWindowCaption(L"Load .irr file middle.3ds");
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
{
smgr->loadScene("../../3dmax/export/middle.3ds");
smgr->addCameraSceneNodeFPS();
}
int lastFPS = -1;
while(device->run())
if (device->isWindowActive())
{
driver->beginScene(true, true, video::SColor(0,200,200,200));
smgr->drawAll();
driver->endScene();
int fps = driver->getFPS();
if (fps!=lastFPS);
{
core::stringw str = L"Middle east project";
str += driver->getName();
str += "] FPS:";
str += fps;
device->setWindowCaption(str.c_str());
lastFPS = fps;
}
}
device->drop();
return 0;
...so sorry for mt english...?
Ryu omineeko,
thanks.
[/code]