POV-Ray : Newsgroups : povray.general : about the Focal length in Pov-ray... Server Time
1 Aug 2024 12:26:43 EDT (-0400)
  about the Focal length in Pov-ray... (Message 1 to 8 of 8)  
From: jiangzhijun
Subject: about the Focal length in Pov-ray...
Date: 31 Oct 2005 10:50:00
Message: <web.43663c3858088994f30002e90@news.povray.org>
well,I'd like to put forward a question,"How to Calculate or know the Focal
Length of the perspective type Camera in POV-RAY3.6",can anybody be so kind
to help me? I am a new user to the POV,Thanks!


Post a reply to this message

From: Slime
Subject: Re: about the Focal length in Pov-ray...
Date: 31 Oct 2005 14:53:59
Message: <43667657$1@news.povray.org>
Normally, POV-Ray's camera doesn't have any sort of "focus." There is an
optional "focal blur" feature, in which you specify a focal point whose
distance from the camera is then the focal length, but by default, without
this, there is no focal length.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Paul Bourke
Subject: Re: about the Focal length in Pov-ray...
Date: 1 Nov 2005 02:37:44
Message: <pdbNOSPAM-57FFC8.18373801112005@news.povray.org>
>  well,I'd like to put forward a question,"How to Calculate or know the Focal
> Length of the perspective type Camera in POV-RAY3.6",can anybody be so kind
> to help me? 

WHile it is possible to include a lens into the rendering process, 
normally a pure raytracer implements a so called pinhole camera. As
such there is no focal length, everything from 0 to infinity is in
focus.

-- 
Paul Bourke
pdb(NOSPAM)swin.edu.au


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: about the Focal length in Pov-ray...
Date: 1 Nov 2005 03:03:37
Message: <43672159$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jiangzhijun wrote:
>  well,I'd like to put forward a question,"How to Calculate or know the Focal
> Length of the perspective type Camera in POV-RAY3.6",can anybody be so kind
> to help me? I am a new user to the POV,Thanks!
> 
	To make a povray camera that produces the same effect as a given
focal length on a 24x36 real life camera, you need to add the
following to the camera definition:

angle 2*atan2 (36, 2*f)*180/pi

	For a 50mm camera lens, this gives an angle of about 40.

		Jerome
- --
******************************
*      Jerome M. Berger      *
*  mailto:jeb### [at] freefr   *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDZyFXqIYJdJhyixIRAg1XAKCTUOsFPKAM+fZTrbrxoZ9rzpSNFgCfUq2o
Slg4KOpJfwUwKcyjZYZI//Y=
=6YeV
-----END PGP SIGNATURE-----


Post a reply to this message

From: scott
Subject: Re: about the Focal length in Pov-ray...
Date: 1 Nov 2005 06:18:03
Message: <43674eeb@news.povray.org>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> jiangzhijun wrote:
>>  well,I'd like to put forward a question,"How to Calculate or know
>> the Focal Length of the perspective type Camera in POV-RAY3.6",can
>> anybody be so kind to help me? I am a new user to the POV,Thanks!
>>
> To make a povray camera that produces the same effect as a given
> focal length on a 24x36 real life camera, you need to add the
> following to the camera definition:
>
> angle 2*atan2 (36, 2*f)*180/pi
>
> For a 50mm camera lens, this gives an angle of about 40.

Do you have a formula to set the aperture as well for focal blur? :-)  That
would be useful.


Post a reply to this message

From: jiangzhijun
Subject: Re: about the Focal length in Pov-ray...
Date: 3 Nov 2005 08:30:00
Message: <web.436a0fe87f87481c76a52c700@news.povray.org>
"scott" <sco### [at] spamcom> wrote:

> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > jiangzhijun wrote:
> >>  well,I'd like to put forward a question,"How to Calculate or know
> >> the Focal Length of the perspective type Camera in POV-RAY3.6",can
> >> anybody be so kind to help me? I am a new user to the POV,Thanks!
> >>
> > To make a povray camera that produces the same effect as a given
> > focal length on a 24x36 real life camera, you need to add the
> > following to the camera definition:
> >
> > angle 2*atan2 (36, 2*f)*180/pi
> >
> > For a 50mm camera lens, this gives an angle of about 40.
>
> Do you have a formula to set the aperture as well for focal blur? :-)  That
> would be useful.

  Thanks for the above all, :)
  I am on my way to generate such a video sequence:A focus-length-fixed
perspective camera,moving along certain axis or direction,before some
object in the scene.
  I have done some expriments to recovery the focus-length of the above
camera,but was exhausted to find that the focus-length seems floating,Is
that real in POV? and how to fix the camera focus-length even when it moves
along?

       angle 2*atan2 (36, 2*f)*180/pi
  if this 'angle'  is fixed,does it mean that the focus length is fixed?


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: about the Focal length in Pov-ray...
Date: 3 Nov 2005 13:19:33
Message: <436a54b5$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

scott wrote:
> Do you have a formula to set the aperture as well for focal blur? :-)  That
> would be useful.
> 
	Not out of the top of my head. I'll think about it and let you know
if I find it.

		Jerome
- --
******************************
*      Jerome M. Berger      *
*  mailto:jeb### [at] freefr   *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDalS1qIYJdJhyixIRAnxtAJ4gLbv59jfPHFQA69SnVpFEtHULzgCcD9nu
OVDZ/w+V3RjJ0scm8dTuN4k=
=wepR
-----END PGP SIGNATURE-----


Post a reply to this message

From: "Jérôme M. Berger"
Subject: Re: about the Focal length in Pov-ray...
Date: 3 Nov 2005 13:24:03
Message: <436a55c3$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jiangzhijun wrote:
>   I have done some expriments to recovery the focus-length of the above
> camera,but was exhausted to find that the focus-length seems floating,Is
> that real in POV? and how to fix the camera focus-length even when it moves
> along?

>        angle 2*atan2 (36, 2*f)*180/pi
>   if this 'angle'  is fixed,does it mean that the focus length is fixed?
> 
	If your only camera settings are "location" and "look_at", then the
field of view (focal length) will change when these values change.
The best way to control directly the FOV is with the angle keyword, e.g:

camera {
   location -z
   look_at  0
   angle    40
}

	For more details on camera parameters, I can only refer you to the
documentation (section 2.3.1):
http://www.povray.org/documentation/view/3.6.1/246/

		Jerome

- --
******************************
*      Jerome M. Berger      *
*  mailto:jeb### [at] freefr   *
*  http://jeberger.free.fr/  *
******************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDalXBqIYJdJhyixIRAjrUAJ9RM+3v2nla2A1N673yqZXruWVT3ACeOPyU
rVoN0X3ZP4aV4L85SLZVz0w=
=uI0K
-----END PGP SIGNATURE-----


Post a reply to this message

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