Hallo,
first Sorry for my bad english...i have one Problem with Irrlicht Version 0.4 !!!
I make my Levels with 3dStudioMax3...but allways when i want import the Maps (.3ds) in Irrlicht
i get this error Message :
Warning: Could not load mesh, becausde file could not be open.:../../1/raum.3ds.
I think that the code is right (I only want to load a map, without Textures or Paricel effects):
#include <irrlicht.h>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
scene::ICameraSceneNode* camera = 0;
class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (camera)
return camera->OnEvent(event);
return false;
}
};
int main()
{
MyEventReceiver receiver;
IrrlichtDevice *device = createDevice(video::DT_DIRECTX8,
core::dimension2d<s32>(800, 600),
16, false, true, &receiver);
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
scene::IAnimatedMesh* mesh = smgr->getMesh(
"../../raum.3ds");
smgr->getMeshManipulator()->makePlanarTextureMapping(
mesh->getMesh(0), 0.008f);
scene::ISceneNode* node = 0;
camera = smgr->addCameraSceneNodeFPS();
camera->setPosition(core::vector3df(-50,50,-150));
int lastFPS = -1;
while(device->run())
{
driver->beginScene(true, true, 0);
smgr->drawAll();
driver->endScene();
int fps = driver->getFPS();
if (lastFPS != fps)
{
wchar_t tmp[1024];
swprintf(tmp, 1024, L"SpecialFX example - Irrlicht Engine"\
L"(fps:%d) Triangles:%d", fps,
driver->getPrimitiveCountDrawn());
device->setWindowCaption(tmp);
lastFPS = fps;
}
}
}
Where i can found the File: audiere.h ????
PS: Is there a German Homepage or Forum for irrlicht ????