Stupid FPS camera - isn't there a normal one?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Ivo Georgiev
Posts: 27
Joined: Wed Dec 12, 2007 7:05 pm

Stupid FPS camera - isn't there a normal one?

Post by Ivo Georgiev »

How can I add a normal camera (not FPS camera), so I can set it's position manualy, no fancy key maps and no fancy jump functions?But I can control the camera's angle of view with the mouse (mouse look)...Is there this kind of camera?And how can I create it
I've tryed with addCameraSceneNode but it hasn't mouse look.And I can draw the childs of the camera.Sorry for my bad english...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Childs of a camera should always work.
Just use the static camera and add the mouse events to your custom event receiver.
Ivo Georgiev
Posts: 27
Joined: Wed Dec 12, 2007 7:05 pm

Post by Ivo Georgiev »

Okay, I will try...
[offtopic]
so bad camera functions...hope Irrlicht 1.5 has better...
Isnt there a way to prevent FPS camera from moving with the arrows????? :evil:
There are alot of bad things in the high-level programming :evil: :evil:
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Ivo Georgiev wrote:[offtopic]
so bad camera functions...hope Irrlicht 1.5 has better...
Isnt there a way to prevent FPS camera from moving with the arrows????? :evil:
There are alot of bad things in the high-level programming :evil: :evil:
1.5 is planned to have a camera controller which will solve most of the horrible camera issues but that's a whole other (search) story..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Ivo Georgiev wrote:Isnt there a way to prevent FPS camera from moving with the arrows????? :evil:
you can simply set the keys to 0 in the keymap:

Code: Select all

SKeyMap keyMap[4];
keyMap[0].Action = EKA_MOVE_FORWARD;
keyMap[0].KeyCode = (irr::EKEY_CODE)0;
keyMap[1].Action = EKA_MOVE_BACKWARD;
keyMap[1].KeyCode = (irr::EKEY_CODE)0;
keyMap[2].Action = EKA_STRAFE_LEFT;
keyMap[2].KeyCode = (irr::EKEY_CODE)0;
keyMap[3].Action = EKA_STRAFE_RIGHT;
keyMap[3].KeyCode = (irr::EKEY_CODE)0;
smgr->addCameraSceneNodeFPS(0, 100, 500, -1, keyMap, 4);
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Eigen
Competition winner
Posts: 375
Joined: Fri Jan 27, 2006 2:01 pm
Location: Estonia
Contact:

Post by Eigen »

It'd be easier to just set the camera movement speed to 0.

smgr->addCameraSceneNodeFPS(0, 100, 0, -1);
Post Reply