Tracking a Camera Thru 3d

Blitz3D Forums/Blitz3D Programming/Tracking a Camera Thru 3d

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You could have way points, kept in an array.

dim waypoint(30,2) ; 30 waypoints, 2nd dimention: 0 = x, 1 = y, 2 = z


Then have a pivot travel in front of the camera, and always point the camera at the pivot. Move the pivot towards the waypoints. Move the camera towards the pivot. The camera should curve round the waypoints smoothly. I rather use types for the waypoints however. I'll knock together an example.