POV-Ray : Newsgroups : povray.newusers : Camera field of view Server Time
5 Nov 2024 09:24:05 EST (-0500)
  Camera field of view (Message 1 to 8 of 8)  
From: Jason Jong
Subject: Camera field of view
Date: 9 Dec 2001 16:25:41
Message: <3c13d6d5@news.povray.org>
How do I change the output file from 800x600 to 600x800? I can use:

+w600 +h800

but that just squishes the image, rather than changing the FOV the camera
itself.


Post a reply to this message

From: Margus Ramst
Subject: Re: Camera field of view
Date: 9 Dec 2001 16:41:27
Message: <3c13da87$1@news.povray.org>
"Jason Jong" <NOS### [at] redshiftcom> wrote:

> How do I change the output file from 800x600 to 600x800? I can use:
> 
> +w600 +h800
> 
> but that just squishes the image, rather than changing the FOV the camera
> itself.
> 
>

Add something like this to your camera:

right x
up y*4/3

or whatever your image aspect ratio is (default is height=3/4*width, e.g.
600/800 = 3/4).

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

From: Jason Jong
Subject: Re: Camera field of view
Date: 9 Dec 2001 16:47:41
Message: <3c13dbfd@news.povray.org>
> right x
> up y*4/3

It gives me an error, "Cannot use non-perpendicular camera vectors with
vista buffer."


Post a reply to this message

From: Margus Ramst
Subject: Re: Camera field of view
Date: 9 Dec 2001 17:13:05
Message: <3c13e1f1@news.povray.org>
"Jason Jong" <NOS### [at] redshiftcom> wrote:

>> right x
>> up y*4/3
> 
> It gives me an error, "Cannot use non-perpendicular camera vectors with
> vista buffer."
> 

Hm? Those vectors are most definitely perpendicular...
What does your camera statement look like?

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

From: Chris Colefax
Subject: Re: Camera field of view
Date: 9 Dec 2001 17:16:47
Message: <3c13e2cf@news.povray.org>
Jason Jong <NOS### [at] redshiftcom> wrote:
> > right x
> > up y*4/3
>
> It gives me an error, "Cannot use non-perpendicular camera vectors with
> vista buffer."

Try placing the up and right vectors *before* any other statements in your
camera (e.g. location, look_at).


Post a reply to this message

From: Margus Ramst
Subject: Re: Camera field of view
Date: 9 Dec 2001 17:19:34
Message: <3c13e376$1@news.povray.org>
"Margus Ramst" <mar### [at] peakeduee> wrote:

> Hm? Those vectors are most definitely perpendicular... What does your
> camera statement look like?
> 

Oh, and if look_at is not the last thing in your camera statement, try
putting it there now.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

From: Jason Jong
Subject: Re: Camera field of view
Date: 9 Dec 2001 17:30:04
Message: <3c13e5ec@news.povray.org>
> Oh, and if look_at is not the last thing in your camera statement, try
> putting it there now.

That fixed it! Thank you.


Post a reply to this message

From: TinCanMan
Subject: Re: Camera field of view
Date: 9 Dec 2001 19:47:26
Message: <3c14061e@news.povray.org>
"Jason Jong" <NOS### [at] redshiftcom> wrote in message
news:3c13e5ec@news.povray.org...
> > Oh, and if look_at is not the last thing in your camera statement, try
> > putting it there now.
>
> That fixed it! Thank you.
>
>


BTW if you are using 3.5 you can use the following:
up y
right x*image_width/image_height

this keeps the image proportional no matter what aspect ratio you use, and
you don't have to change the vectors if you change the aspect ratio

-tgq


Post a reply to this message

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