|
|
Hi,
I would like to know if there is a way to extract the 4x4 projection matrix
from a perspective camera declared in Povray. I currently have these
camera settings:
camera
{
perspective
location <-49.61, 1.18, 0.44>
angle 32.58
look_at <0.00, 1.18, 0.44>
right 4/3*x
up y
sky -z
}
Is there a way to do so ?
Thank you !
David.
Post a reply to this message
|
|
|
|
On Wed, 2 Nov 2005 17:39:30 EST, "pare03" <par### [at] gelulavalca> wrote:
> I would like to know if there is a way to extract the 4x4 projection matrix
> from a perspective camera declared in Povray. I currently have these
> camera settings:
>
> camera
> {
> perspective
> location <-49.61, 1.18, 0.44>
> angle 32.58
> look_at <0.00, 1.18, 0.44>
> right 4/3*x
> up y
> sky -z
> }
>
> Is there a way to do so ?
You can try to setup camera with macros of screen.inc include file. These
macros internally declare transform Camera_Transform which contains matrix of
current camera. See how it is done there.
ABX
Post a reply to this message
|
|