POV-Ray : Newsgroups : povray.newusers : Simulate a camera with no lens : Re: Simulate a camera with no lens Server Time
2 Jul 2024 11:11:04 EDT (-0400)
  Re: Simulate a camera with no lens  
From: Alain
Date: 26 May 2011 20:33:57
Message: <4ddef175$1@news.povray.org>

> Hi,
>
> I've only just downloaded pov-ray so sorry if this is a really stupid
> question...
>
> I understand that the camera model in pov-ray is that of an ideal pin hole
> camera, and that the field of view of the camera is set which essentially
> defines the properties of the 'lens' in front of the camera.
>
> What I'd really like to be able to do is model what a focal plane array (FPA)
> would see when a camera has no lens to focus the rays. In this 'no-lens'
> scenario I'd like to define an approximate field of view by placing the FPA at
> the back face of a cylinder, with an aperture in the front face.
>
> Is this possible in pov-ray?
>
> any thoughts/advice greatly appreciated!
>
> Stu
>
>

Having no lense can be approximated by a focal point placed extremely close.

A possibility:
Use focal blur with a focal plane very close to the camera location. 
Keep the aperture relatively small.

Sample camera:
camera{location Cam_Location look_at Subject aperture 0.01 focal_point 
Cam_Location + (Cam_Location - Subject)/100 blur_samples 10, 200}

Try this and compare with a real photography taken without any lense to 
see if it's going the right way.
Adjust aperture as you see fit.

If you place an open cylinder in front of the camera, it's radius is the 
upper limit for your aperture. Otherwize, you'll get some samples taken 
outside of it.



Alain


Post a reply to this message

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