BBC BASIC for Windows
« Adding camera roll to D3DLIB »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:33pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Topic: Adding camera roll to D3DLIB (Read 477 times)
rtr2 Guest
Adding camera roll to D3DLIB
« Thread started on: May 12th, 2015, 09:42am »
The standard D3DLIB library supports panning and tilting (yawing and pitching if you prefer) of the 'virtual camera' - you can achieve that simply by moving the 'look at' point - but it does not support rolling the camera (i.e. rotation around the optical axis).
I recently had a need for this feature so I created a patched version of the library - D3DLIBA - in which PROC_render has an additional parameter: the camera roll in radians. A positive value signifies rolling the camera anticlockwise, when viewed from behind.
The library can be found at the Yahoo group's Files repository, if you are a member, or it can be downloaded directly from here.