Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    RayCamera

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 321 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

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

      On 13/05/2007 at 09:42, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.6+ 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi All,

      i need to calculate the focal, aperture for a raycam.

      I see that i have 2 value to get it:
      zoom and scale.

      form SDK:
      Vector scale
      The camera scale, this is the screen scale, including focal length, aperture etc.

      Any help to calculate the focal and aperture from the scale vector?

      Cheers
      Renato

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

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

        On 14/05/2007 at 02:50, xxxxxxxx wrote:

        From what I can see you can get only the Field Of View from the RayCamera scale.

        field of view = arctan(xres/scale.x/2)*2

        the field of view contains the aperture and the focal length

        field of view = arctan(aperture/focal/2)*2

        the scale.x and scale.y ratio is the pixel aspect ratio

        Otherwise couldn't you get focal length and aperture by accessing the RayCamera's link parameter?

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

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

          On 14/05/2007 at 02:54, xxxxxxxx wrote:

          Thanks Matthias,

          i can't access to link camera because will not work if i render a viewport without a camera 🙂

          Cheers
          Renato

          1 Reply Last reply Reply Quote 0
          • First post
            Last post