|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
|
|