POV-Ray : Newsgroups : povray.advanced-users : camera projection matrix? Server Time
24 Nov 2024 12:32:27 EST (-0500)
  camera projection matrix? (Message 1 to 4 of 4)  
From: Donald Han
Subject: camera projection matrix?
Date: 11 Mar 2007 04:09:01
Message: <45f3c72d$1@news.povray.org>
I have been trying to get camera(perspective) projection matrix from camera 
parameters..

that is

{
    perspective
   //location  <0, 0, -8>
   location  <15, 5, -15>
   direction <0, 0, 1.0>
   up <0,1,0>
   right <1, 0, 0>
   look_at   <0, 0, 0>
}


Is there any way to get camara projection matrix?

Please help me.

thanks


-Don. H


Post a reply to this message

From: Jim Holsenback
Subject: Re: camera projection matrix?
Date: 11 Mar 2007 06:47:20
Message: <45f3ec48@news.povray.org>
"Donald Han" <oce### [at] hotmailcom> wrote in message 
news:45f3c72d$1@news.povray.org...
>
>
> I have been trying to get camera(perspective) projection matrix from 
> camera parameters..
>
> that is
>
> {
>    perspective
>   //location  <0, 0, -8>
>   location  <15, 5, -15>
>   direction <0, 0, 1.0>
>   up <0,1,0>
>   right <1, 0, 0>
>   look_at   <0, 0, 0>
> }
>
>
> Is there any way to get camara projection matrix?

perhaps I'm misunderstanding, but if that is literally the syntax you are 
using you are missing the camera keyword .....

ie:

camera {
  yourstuff
  }


Post a reply to this message

From: Rune
Subject: Re: camera projection matrix?
Date: 11 Mar 2007 09:09:23
Message: <45f40d93$1@news.povray.org>
Donald Han wrote:
> Is there any way to get camara projection matrix?

You can't get the projection matrix for a camera already defined, but you 
can construct a projection matrix yourself and create your camera from that. 
It can be rather easy using the right macros. I suggest you have a look at 
the screen.inc file that comes with POV-Ray.

Rune
-- 
http://runevision.com


Post a reply to this message

From: Jim Holsenback
Subject: Re: camera projection matrix?
Date: 11 Mar 2007 12:29:51
Message: <45f43c8f@news.povray.org>
"Donald Han" <oce### [at] hotmailcom> wrote in message 
news:45f3c72d$1@news.povray.org...
>
> I have been trying to get camera(perspective) projection matrix from 
> camera parameters..
>
> that is
>
> {
>    perspective
>   //location  <0, 0, -8>
>   location  <15, 5, -15>
>   direction <0, 0, 1.0>
>   up <0,1,0>
>   right <1, 0, 0>
>   look_at   <0, 0, 0>
> }
>
>
> Is there any way to get camara projection matrix?

apologies .... I obviously misunderstood


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.