View topic - Focal Distance for the perspective camera

Focal Distance for the perspective camera

Ask here your questions about development and about raytracing theory & implementation. Here you can post your patches for review.

Focal Distance for the perspective camera

Post Thu Jan 01, 2015 1:42 pm

Hello,

As I was reading through Yafaray's python exporter, there is a line of code:

yi.paramsSetFloat("focal", camera.lens / (f_aspect * sensor_size)).

So it seems that focal distance = focal length / (aspect_ratio * sensor size).

I don't understand why the focal distance is determined in that way, it seems different from the focal distance in optics.

Can anyone give some explanation on this? That would be highly appreciated.
Thank You :D
Happy New Year!
XiaoyongLi
 
Posts: 1
Joined: Thu Jan 01, 2015 1:34 pm

Return to Developers' Corner



Who is online

Users browsing this forum: No registered users and 3 guests