gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Graphics > Effects examples

#158750 - no2pencil - Tue Jun 17, 2008 8:28 am

Can anyone point me in the direction to some more detail on the video effects such as Wipe & Swirl (as can be found here)

Any links (that I have found) from previous topics are casualties of 404.

Thank you!
_________________
-#2pencil

#158754 - gauauu - Tue Jun 17, 2008 3:11 pm

If those are doing what I think they're doing, the general idea is that you would use hblank dma to update one of the windows with every frame. So instead of a square window, you get any old odd shape you want, as long as you update the window correctly for each scanline.

The ones with lots of different shapes for each scan line seem trickier, so maybe I'm missing something, but something like the swirl could be done using 2 windows.

If you start with a "simple" circle, you could expand from there.

See this discussion for a nice little code snippet from cearn.

#158760 - Miked0801 - Tue Jun 17, 2008 7:25 pm

The swirl, random, vertical swipes, and plasma are not HBlank related. HBlank windowing can only be turned on and off once per scanline. The swirl I'm guessing is using Sprite Windowing and the vertical swipe just normal windowing. Random could be accomplished with Sprite windowing as well. The plasma probably isn't a screen fade. :)

BTW, hadn't seen that site before. Good info.

#158767 - Kyoufu Kawa - Tue Jun 17, 2008 7:46 pm

I could use effects like that for OpenPok?, actually.

#158769 - tepples - Tue Jun 17, 2008 7:48 pm

Miked0801 wrote:
The swirl, random, vertical swipes, and plasma are not HBlank related. HBlank windowing can only be turned on and off once per scanline.

Once or twice? I thought there were two windows, both of which could be controlled by HDMA.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#158780 - Miked0801 - Tue Jun 17, 2008 9:35 pm

I had forgot about the 2nd window - you are correct. You can start and stop the window twice which would allow for the swirl effect via BGs. Still is probably done with sprites though :)

#158782 - keldon - Tue Jun 17, 2008 10:05 pm

Yeah, I couldn't explain the plasma as a typical effect; must just be his own processing of the bitmap data (still would be a good effect with fading corresponding to the plasma).

#158796 - no2pencil - Wed Jun 18, 2008 2:37 am

Awesome information, thanks a bunch!

I also found this
_________________
-#2pencil

#168232 - sureideas - Thu Apr 16, 2009 8:50 am

Excellent work done ,very appreciable for the efforts to let us know about the graphics.This is really helpful indeed.
_________________
Free Online Games
Racing Games

#168277 - headspin - Sat Apr 18, 2009 4:57 pm

Looks like DarkCloud's website is no more, but I have uploaded the demo's mentioned in my article here. Those are mostly using window's.

The swirl effect mentioned in the article uses a palette effect. You can download it from here. The link to Cearn's splotlight effect is also very good and I will add that to the website. As for the sine wave effect it is very easy, you simply modify the horizontal scroll register during a hblank using a sin lookup table.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game