Render the Object with multiple cameras at the same time
gogeta last edited by a_block
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.
a_block last edited by a_block
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.
gogeta 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.