Sign in to follow this  

Camera On a Line

This topic is 4595 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

There is a tech show at my school next week, and I would like to put my terrain engine in there as a WIP...but I dont want the user to have control. I would like my camera to "fly" around randomly... Does anyone have any articles or any thoughts on how this can be achieved? It would start at 0,0, and it wouldn't be able to past a certain point (because of the sky dome radius), and would have to stay above the terrain in height... Any ideas on how to get it to move around smoothly and give a good flying feeling? It has to be able to be implemented fairly easily and quickly. Thanks.

Share this post


Link to post
Share on other sites
I think the easiest and quickest way would be to do a simple waypoint system. But make the waypoints randomly generated within the bounds on the world. Then just give the camera some basic movement stats (acceleration, max speed, max turning speed, etc), and let it do its thing.

Matt Hughson

Share this post


Link to post
Share on other sites
I would also factor in the actual height of the terrain - if you need to be in height 10, for example, do it 10+current terrain height, so you won't get into trouble. Also, I would have the camera either look to the center point in the terrain, or as an angle in the different axis from its current position, so you'd have effects like staring ahead, or to the sides, or down, etc.

Share this post


Link to post
Share on other sites
Quote:
Original post by DadleFish
I would also factor in the actual height of the terrain - if you need to be in height 10, for example, do it 10+current terrain height, so you won't get into trouble. Also, I would have the camera either look to the center point in the terrain, or as an angle in the different axis from its current position, so you'd have effects like staring ahead, or to the sides, or down, etc.


Maybe calculate 2 points eveytime you reach a target waypoint; the next waypoint, and a new random 'look point'.

Matt Hughson

Share this post


Link to post
Share on other sites
I think it would look "smarter" if you manually defined position/look-at points and simply put them in an array. You would of course interpolate between the points for a smooth ride. You could give a virtual tour of the terrain without it looking like it was filmed by a half-minded bumblebee with a camera strapped to his back.

Share this post


Link to post
Share on other sites

This topic is 4595 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this