Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Rotating cameras near clipping plane

    SDK Help
    0
    4
    316
    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
      Helper
      last edited by

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

      On 14/12/2007 at 18:03, xxxxxxxx wrote:

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

      ---------
      I want to change the distance of a cameras near clipping plane
      pixel by pixel. The plane should appear to be rotated.
      Which point in the rendering pipeline is the right way
      to do this? Somewhere in a videopost plugin?
      Regards,
      Zour

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

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

        On 15/12/2007 at 03:56, xxxxxxxx wrote:

        I need to set clipping plane. Doing this in ExecutePixel
        doesn't have any effect.

        void VideoPost::ExecutePixel(PluginVideoPost* node, PixelPost* pp, LONG x, LONG subx, LONG suby)
        {
        RayCamera *rayCamera = pp->vd->GetRayCamera();
        if (rayCamera)
        {
           zclipping_dist+=0.0015f;
           rayCamera->clipping_plane = zclipping_dist;
        }
        }

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

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

          On 16/12/2007 at 23:20, xxxxxxxx wrote:

          You can't set the clipping plane of the RayCamera. It is only meant for reading. You have to do the clipping on your own. Using a custom lens is probably the best way to do it. Search for VIDEOPOST_CUSTOMLENS and MSG_VIDEOPOST_CREATERAY in the docu for more information.

          cheers,
          Matthias

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

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

            On 19/12/2007 at 12:19, xxxxxxxx wrote:

            I found this feature in the meantime, too.
            Thank you for approving it! 😉

            This example was of great help:
            https://developers.maxon.net/forum/topic/3593

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