• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

AEGP_FastBlur with EffectWorld?

Explorer ,
Jun 06, 2016 Jun 06, 2016

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?

TOPICS
SDK

Views

803

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 06, 2016 Jun 06, 2016

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.

Votes

Translate

Translate
Community Expert ,
Jun 06, 2016 Jun 06, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2016 Jun 06, 2016

Copy link to clipboard

Copied

It seems AEGP_New requires a "AEGP_PluginID" - how do I get one in an effect?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2016 Jun 06, 2016

Copy link to clipboard

Copied

Passing NULL for that argument works (not sure if that's morally unacceptable)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 06, 2016 Jun 06, 2016

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));

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 07, 2016 Jun 07, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 08, 2020 Oct 08, 2020

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines