Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

Custom Renderer & Viewport Rendering

Author
Message
  Topic Search Topic Search
karanik View Drop Down
Member
Member


Joined: 2015 Sep 19
Online Status: Offline
Posts: 14
Direct Link To This Post Topic: Custom Renderer & Viewport Rendering
    Posted: 2015 Oct 03 at 3:23am

User Information:

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

---------

Hi,

I'm trying to implement a custom renderer for C4D and so far
rendering within then Picture viewer appears to work correctly.
However when implementing rendering within a viewport, I have only 
been partially successful in emulating the film/resolution gate as it is
implemented in C4D, particularly the FOV and aspect ratio calculations.
Is there some sample code that demonstrates extracting the 
various camera parameters for integration with a custom renderer?
Also if there was an example of a basic Renderer plugin it would be a great help.

Thanks

Back to Top
S_Bach View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2011 Jun 27
Online Status: Offline
Posts: 1379
Direct Link To This Post Posted: 2015 Oct 06 at 2:17am
Hello,

currently there is no basic render plugin example. But you should find a lot information on this topic in the forums.

For rendering in the viewport you have to use the dimensions of the viewport. You can check if if the current render process is not happening in the picture viewer if the RENDERFLAGS_EXTERNAL flag is not set in the VideoPostStruct. See also this thread “MatPreview not matching camera view”.

best wishes,
Sebastian
SDK Support Engineer
Back to Top
S_Bach View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2011 Jun 27
Online Status: Offline
Posts: 1379
Direct Link To This Post Posted: 2015 Oct 16 at 9:45am
Hello karanik,

was your question answered?

Best wishes,
Sebastian
SDK Support Engineer
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.