Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Panda

How does the Camera work?

This topic is 6699 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ------------------------------

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!