BBC BASIC for Windows
« Adding camera roll to D3DLIB »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:57pm



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.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Adding camera roll to D3DLIB  (Read 476 times)
rtr2
Guest
xx 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.

Richard.
User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx Re: Adding camera roll to D3DLIB
« Reply #1 on: May 13th, 2015, 09:35am »

Excellent! Thanks, Richard - I can think of a use for it, too!

smiley

D
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls