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
    The forum rollback caused push notifications and recent user data to malfunction. The problem will fix itself naturally within the next days. See the topic Broken Push Notifications for a more in detail explanation. You can fix this yourself by forcibly clearing your browser cache (for most browsers: CTRL + F5).

    Render the Object with multiple cameras at the same time

    Cinema 4D SDK
    c++ r19
    2
    3
    1.2k
    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.
    • G
      gogeta
      last edited by a_block

      HI Team,
      Hope you are doing well 😃 !
      I have one question. Is it possible to render the object for multiple cameras at the same time using C++ SDK ?
      What I mean to say is suppose I have 5 cameras pointing to an object. I want to render the output of all the 5 cameras at the same time and view the output in a separate window.
      Is this possible? If possible, how can I achieve this using C++ SDK ?
      I am using R19 SDK and C++ language for development purpose .

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • a_blockA
        a_block
        last edited by a_block

        Hi,

        I guess, this question is also related to the other thread: Need to render the camera view on a separate preview window in c++.
        So I assume here, that the basic mechanism of showing a rendered image in a window is already clear (or will be explained by Riccardo).

        So the question here is, how to render a specific or multiple cameras.

        The normal procedure to render a scene in parallel to the user working is to clone the scene (C4DAtom::GetClone()) before passing the clone to RenderDocument(). And in the cloned document, you are free to change the active camera the way you need to.

        A completely different approach (but with the drawback of getting the result only in Picture Viewer or as files saved to disk) may be to use the Takes system. You can set up multiple takes, assign a different camera each and afterwards use one of the "Render All Takes" or "Render Selected Takes" commands.

        Last thing: Please consider to add tags to your threads, as I did for this one.

        Cheers,
        Andreas

        G 1 Reply Last reply Reply Quote 0
        • G
          gogeta @a_block
          last edited by

          @a_block HI Andreas,
          Thanks a lot for your reply. I am implementing the first approach as suggested by you as it seems the most feasible approach to my solution. I'll get back to you if I found any issue.

          Thanks again 😇

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