Skip to main content
gamedev.net
🔒 Locked

How does the Camera work?

Started by Panda 0 replies 400+ views
Original Post
Panda
Panda
Hi there. I Just don''t completely understand how the Camera works in PowerRender. Looking at the collide example it''s like the camera changes it''s target based on the mouse coordinates... but WHERE?!? Could it be i don''t have control over it? How could i attach a camera to an entity segment and let it follow its animations, position, rotation etc.. ? Thank you. ------------------------------ Stefano ''Panda'' Baraldi Lead Programmer @ Tremens www.tremensgames.com ------------------------------
------------------------------Stefano ''Panda'' BaraldiLead Programmer @ Tremenswww.tremensgames.com------------------------------
Gary
Gary
The collide example is using some prebuilt input routines.
Check the UserInput function.
and also:
PR_SetInputDevice (INPUT_MOUSE);
PR_SetInputModel (MODEL_WALKING);
PR_SetInputEntity (NO_ENTITY, NO_SEGMENT);
PR_SetInputCamera (camera);

They simplify the example to show what it was designed to show, collision detection.

It is not necisary to use these input routines to move the camera around.

If your trying to learn the camera functions, look at an example that doesn''t use these simplified routines.

Gary

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.