How to FadeOut with DisplayBrushFX()?

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1395
Joined: Sun Feb 14, 2010 7:11 pm

How to FadeOut with DisplayBrushFX()?

Post 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?
plouf
Posts: 671
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How to FadeOut with DisplayBrushFX()?

Post 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)
Christos
Bugala
Posts: 1395
Joined: Sun Feb 14, 2010 7:11 pm

Re: How to FadeOut with DisplayBrushFX()?

Post 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.
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to FadeOut with DisplayBrushFX()?

Post 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.
Bugala
Posts: 1395
Joined: Sun Feb 14, 2010 7:11 pm

Re: How to FadeOut with DisplayBrushFX()?

Post by Bugala »

Ah, thanks. Going to use that instead of Crossfade to make it cleaner.
Post Reply