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

    Viewport Rendering

    SDK Help
    0
    5
    597
    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

      On 28/07/2016 at 06:54, xxxxxxxx wrote:

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

      ---------
      Hello.

      I have my a VideoPostData plugin in which I use my render engine.
      Picture Viewer rendering works great, but I have some issues with C4D's viewport rendering.

      The problem is that I don't know how to get the starting call and the end call. I need those to start and stop my render engine. I have noticed that the stack which is described in VIDEOPOSTCALL enum runs in every change, so I can't rely on that (Or can I ?).

      So, how can I know when to start and stop my render engine on C4D's viewport rendering ?

      Thank you for your time.

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

        On 29/07/2016 at 01:27, xxxxxxxx wrote:

        Hello,

        I'm not quite sure what you are talking about. Rending in the viewport should not be much different than rendering to the Picture Viewer. Are you talking about rendering to the viewport or about the Intractive Render Region?

        Best wishes,
        Sebastian

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

          On 29/07/2016 at 05:16, xxxxxxxx wrote:

          Hello.

          I am referring to Interactive Render Region. I need an event that tells me that the rendering has started or stopped.

          Thank you.

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

            On 29/07/2016 at 09:15, xxxxxxxx wrote:

            Hello,

            unfortunately there is no specific message sent when the Interactive Render Region is started or ends.

            The only thing you could check for is if the Interactive Render Region is enabled or not. The internal data is stored in a Scene Hook with the ID 430000000. The enabled status is stored in IRR_ENABLE.

            In general Cinema does not expect that you handle this information. You just should render the given document handed over to your VideoPost.

            Best wishes,
            Sebastian

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

              On 30/07/2016 at 11:03, xxxxxxxx wrote:

              Thank you very much for your help. 
              I will try it.

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