VideoPost plugin without AA applied
-
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 -
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
-
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