Page 1 of 1
How to FadeOut with DisplayBrushFX()?
Posted: Sat Jul 29, 2023 1:16 pm
by Bugala
I am using
Code: Select all
DisplayBrushFX(1, 0, 0, {type=#FADE, speed=10})
to Fade In a picture, but how do I achieve the opposite, as in I want to Fade Out the same picture?
Re: How to FadeOut with DisplayBrushFX()?
Posted: Sat Jul 29, 2023 3:09 pm
by plouf
AFAIK has not, so its a wishlist item

a similar effect is blend, if you stop in the middle of design like this
(here i count it takes 512 frames to draw)
Code: Select all
obj = DisplayBrushFX(1, 0, 0, {type=#BLEND, speed=1,parameter=#WHITE,Async=True})
Repeat
VWait
done = AsyncDrawFrame(obj)
inc = inc+1
Until inc=256
FinishAsyncDraw(obj)
Re: How to FadeOut with DisplayBrushFX()?
Posted: Sat Jul 29, 2023 6:24 pm
by Bugala
Okay, thanks from the info. Figured I use #CROSSFADE then with a black screen to achieve the same:
Code: Select all
DisplayBrushFX(1, 0, 0, {type=#FADE, Speed=10} )
CreateBrush(2, 1920, 1080, #BLACK)
DisplayBrushFX(2, 0, 0, {type=#CROSSFADE, speed=10} )
This results in first Bursh 1 fading in, and then seemingly fading out, since it crossfades to black screen, which in practice is the same as fade out to black.
Re: How to FadeOut with DisplayBrushFX()?
Posted: Mon Jul 31, 2023 12:50 am
by airsoftsoftwair
plouf wrote: ↑Sat Jul 29, 2023 3:09 pm
AFAIK has not, so its a wishlist item
Actually, it is possible but only with layers. In that case using
RemoveLayerFX(),
HideLayerFX() or
UndoFX() should fade out the brush. Without layers this is impossible to do because the call to
DisplayBrushFX() erases the old background so there is no idea for Hollywood to magically restore it. This is only possible with layers.
Re: How to FadeOut with DisplayBrushFX()?
Posted: Mon Jul 31, 2023 12:46 pm
by Bugala
Ah, thanks. Going to use that instead of Crossfade to make it cleaner.