2011년 7월 9일 토요일

varying Normal vs facevarying Normal

varying Normal
: per vertex normal in polymesh

facevarying Normal
: per vertex normal in polyface

varying normal의 경우 normal soften edge, harden edge 를 표현할수 없다.
interpolation에 의해 항상 soft하게 랜더된다.

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 값을 사용한다.