Jump to content
  • Advertisement


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


How does the Camera work?

This topic is 6948 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
The collide example is using some prebuilt input routines.
Check the UserInput function.
and also:
PR_SetInputDevice (INPUT_MOUSE);
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.


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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!