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
    • Recent
    • Tags
    • Users
    • Login

    VideoPost plugin without AA applied

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 232 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 29/04/2011 at 07:15, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi all,

      I'm trying to write a videopost filter that gets the buffer without Anti Aliasing applied (all remaining channels should keep it of course).

      I've been trying to do it like this:

        
        if (vps->vp==VIDEOPOSTCALL_INNER && !vps->open && *vps->error==RENDERRESULT_OK && !vps->thread->TestBreak())  
        {  
            BaseContainer bc = vps->render->GetRenderData();  
            bc.SetLong(RDATA_ANTIALIASING,RDATA_ANTIALIASING_NONE);  
            vps->render->SetRenderData(bc);  
            VPBuffer *rgba    = vps->render->GetBuffer(VPBUFFER_RGBA,NOTOK);  
      

      But that has no effect. Basically my output is working fine except for that one single little thing... alternatively, is it possible to write a multipass pass instead? I'm really not all that familiar with this part of the SDK I fear...

      Cheers
      Michael

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 04/05/2011 at 14:57, xxxxxxxx wrote:

        I don't know if this will be of any help.
        But this is how I set the Anti-Aliasing to None:

        RenderData *rdata = doc->GetFirstRenderData(); //The variable used to assign the data to  
         rdata->SetParameter(RDATA_ANTIALIASING, 0, DESCFLAGS_SET_0);   
         EventAdd();  
        

        And here's how I get at the multipass options:

        RenderData *rdata = doc->GetFirstRenderData(); //The variable used to assign the data to  
        rdata->SetParameter(RDATA_MULTIPASS_LIGHTS, 0, DESCFLAGS_SET_0);  
        rdata->SetParameter(RDATA_MULTIPASS_LIGHTMODE, 2, DESCFLAGS_SET_0);  
        rdata->SetParameter(RDATA_MULTIPASS_SHADOWCORRECTION, FALSE, DESCFLAGS_SET_0);  
        EventAdd();  
        

        -ScottA

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 04/05/2011 at 23:57, xxxxxxxx wrote:

          Hi Scott,

          thanks - unfortunately that is just to set the rendersettings for the document, so, in advance of the render. What I need to do is get the render data without the AA applied. The idea is to have my regular render (with AA and multipass) go through and then apply the filter on the non-AA'd data afterwards. It's so I can get a pointposition pass for nuke. It works fine when I turn off the AA, but that means I need to render each sequence twice.

          Michael

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