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
    • Recent
    • Tags
    • Users
    • Login

    Field of View of the current scene camera

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 399 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 23/11/2008 at 22:44, xxxxxxxx wrote:

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

      ---------
      How do I find out about the field-of-view of the current scene camera from within the InitRender function of a material shader?

      Thanks for the support.

      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 24/11/2008 at 01:04, xxxxxxxx wrote:

        Get the camera through the render basedraw.

        > \> irs->doc->GetRenderBasedraw() \>

        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 24/11/2008 at 14:26, xxxxxxxx wrote:

          GetRenderBasedraw returns me a pointer to BaseDraw class.
          I guess with that I can get the scene camera by
          ->GetSceneCamera()?

          However this returns me a BaseObject, and not a CameraObject, which I would need to use the functions GetAperture and GetFocus.

          Maybe you could tell me, where my misunderstanding is.
          Thanks again
          Geromaros

          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 25/11/2008 at 05:42, xxxxxxxx wrote:

            Or is there a direct way from BaseDraw to get the field-of-view of the current scene camera.
            Thanks

            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 25/11/2008 at 06:33, xxxxxxxx wrote:

              Just cast the BaseObject to a CameraObject or access the container of the BaseObject with the according IDs (e.g CAMERAOBJECT_FOV).

              cheers,
              Matthias

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