2011년 7월 2일 토요일

Field of View

def fov(filmaperture, focallength):
    rad_fov = 2.8 * math.atan((filmaperture*25.4) / (focallength*2.0))
    return math.degrees(rad_fov)

filmaperture는 screenwindow를 어떻게 설정하느냐에 따라
horizontal 또는 vertical 값을 사용한다.

댓글 없음: