Setting Field of View of a Camera



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/07/2005 at 07:38, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.x 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    I can read and set the Aperture and Focal Lenght of a camera object:

    APERTURE=cambc->GetFloat(CAMERAOBJECT_APERTURE);
    FOCUS=cambc->GetFloat(CAMERAOBJECT_FOCUS);

    cambc->SetFloat(CAMERAOBJECT_APERTURE,APERTURE);
    cambc->SetFloat(CAMERAOBJECT_FOCUS,FOCUS);

    But, can I set the Field of View? If yes, what is the name of the parameter? And, will the Focal Lenght be automatically adjusted?

    Rui Batista



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/07/2005 at 11:55, xxxxxxxx wrote:

    Aperture sort of determines the FOV as a relation of (height/width)*FOCUS. There is no other way as far as I know.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 27/07/2005 at 16:06, xxxxxxxx wrote:

    The parameter name for the FOV is CAMERAOBJECT_FOV.
    Setting this (in radians of course) should change the aperture and focus automatically.

    -Chris



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 28/07/2005 at 03:29, xxxxxxxx wrote:

    Actually, I could only make it work by changing the FOCUS (CAMERAOBJECT_FOCUS). But what matters is that is working. Thank you all :)

    Rui Batista


Log in to reply