Copy link to clipboard
Copied
I'm a bit out of my element here. I'd like to use the FastBlur that is part of WorldSuite2, but in an effect, not an AEGP. Is there a way to convert an EffectWorld into an AEGP_WorldH to feed into FastBlur?
if it's the input you'd like to blur, then you'll have to copy it's content
into a AEGP_WorldH.
however, if it's some intermediate, then you can enjoy both worlds by
creating an AEGP_WorldH and using AEGP_FillOutPFEffectWorld, which will
wrap the aegp world into an effect world, so you can access that one world
from both it's forms.
Copy link to clipboard
Copied
if it's the input you'd like to blur, then you'll have to copy it's content
into a AEGP_WorldH.
however, if it's some intermediate, then you can enjoy both worlds by
creating an AEGP_WorldH and using AEGP_FillOutPFEffectWorld, which will
wrap the aegp world into an effect world, so you can access that one world
from both it's forms.
Copy link to clipboard
Copied
It seems AEGP_New requires a "AEGP_PluginID" - how do I get one in an effect?
Copy link to clipboard
Copied
Passing NULL for that argument works (not sure if that's morally unacceptable)
Copy link to clipboard
Copied
Your method works, and I can enjoy the wonder that is FastBlur now. In case anyone finds this and is a bit confused as to what to do, it's something like this:
PF_EffectWorld effect_world;
AEGP_WorldH render_world;
ERR(suites.WorldSuite2()->AEGP_New( NULL,
AEGP_WorldType_16,
WIDTH,
HEIGHT,
&render_world));
ERR(suites.WorldSuite3()->AEGP_FillOutPFEffectWorld(render_world, &effect_world));
/*
Do some stuff with your effect_world here!
*/
ERR(suites.WorldSuite2()->AEGP_FastBlur(STRENGTH, PF_MF_Alpha_STRAIGHT, PF_Quality_HI, render_world));
ERR2(suites.WorldSuite2()->AEGP_Dispose(render_world));
Copy link to clipboard
Copied
passing a NULL for plug-in ID is not only morally just, it is also your
civic duty.
seriously though, it's fine.
Copy link to clipboard
Copied
Doesn't your example copy the render worlds content into the effect world, so that the blurring has no effect on the effect world?
Copy link to clipboard
Copied
Doesn't your example copy the render worlds content into the effect world, so that the blurring method has no effect on the effect world?