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

    Prorender style viewport rendering

    Cinema 4D SDK
    2
    2
    417
    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.
    • E
      eldiren
      last edited by

      I'm in the process of adding a renderer to the viewport of C4D and I wanted some clarity on functions I should be looking into. I've gathered that I need to make a VideoPostData plugin, and I've used Execute pixel to blanket the viewport in red on hitting the render in viewport button. I also discovered that I could use

      GetMenuResource(maxon::String("M_VIEW_WINDOW"))
      

      to add items to the Viewport menu. I'd like to have the user be able to turn my renderer on and off similar to Prorender and draw interactively in the viewport. What documentation, functions, or examples should I be looking into to achieve this?

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        Hi eldiren, thanks for reaching out us.

        With regard to your request, please consider that ProRender has been integrated by using a non-public API which among the different features also gives permits to integrate the renderer buffer with the viewport.

        At the moment aside from the documentation about VideoPostData for non-interactive or semi-interactive rendering purposes and the approach seldom used of representing in a GeUserArea or via the SceneHook::Draw function the results of a renderer buffer, there are not yet examples showing how to integrate external renderers in Cinema 4D.

        Best, R

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