Hi, I´ve got a problem with moving a picture. I want to replace the cursor with an image. For that, I disabled the visibility of the cursor and added a IGUIImage. But now, I have no idea how to move it with the cursor. Move() does an absolute moving, so I cant just say getCursorControl()->getPositio...
Yes, I understand the problem. The problem simply was, that my "dummy-declaration" for the camera-pointer was a global declaration, while the other "real" declaration was a "local" declaration. Local variables and pointers are fully independent of global ones. And the R...
Uhm, do you mean that I shouldnt declare my vars in initialization, but in the main function itself? Anyway, I tried to initalizate my camera before the RTS_camera function. I just put the part from the bottom in main up where at the moment is camera=0. But he tells me that he expects a con- or dest...
It stops when the loading part is ready (loading of the terrain heightmap and so on) Oh miracle, the Debugger talks to me :lol: I just waited a bit while the program was stuck, and now the debugger says: "Your programm has caused an access violation" and this line is marked: vector3df pos ...
OK, I just tried to use the debugger (I use Dev-C++ :D ) and it opens the irrlicht window, and then stops. If I then click on "On step forward" the programm just crashes, but without error message, it just doesnt react anymore and I have to close it with the task manager. Game Maker: Yes, ...
Eeerrrrm ( ) the debugger is definitly activated.....and the camera IS initialisated, because if I start my program, I see my Terrain, but as soon as I want to move the camera through this function this error occurs.
Hi again, I´ve got a problem with using a function to make my code more structured. now this is (a part) of my code: void RTS_camera() { position2d<f32> p = device->getCursorControl()->getRelativePosition(); if(p.X <= 0.1) { vector3df pos = camera->getPosition(); pos.Z = pos.Z + 5; camera->setPositi...
Yeah, I must say I´m not an absolute Beginner...but I´m now starting to code again after a while.... I just want to rotate the camera in initialization. 90° on the X-Axis, in fact. My code looks like this camera->setRotation(vector3df(90.0f,0.0f,0.0f)); EDIT: Found another strange thing: if(p.X <= 0...
Hi there, I got a very dumb question, I think :lol: If I create a CameraSceneNodeFPS, I can rotate it without problems. But if I want to use a "normal" camera, he doesnt want to rotate :?. No matter what I do, he doesnt rotate at all. But if I then put back the FPS, it works. I have no ide...