Konami-style "mirror" raster effect
Moderators: BigEvilCorporation, Mask of Destiny
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
Konami-style "mirror" raster effect
Example, the 3rd stage of Rocket Knight Adventures (the lava) and the 2nd level of Castlevania: Bloodlines.
Is this just vertically flipping the tiles on a certain scanline or something? I figure a wizard in here knows exactly what's being done.
Is this just vertically flipping the tiles on a certain scanline or something? I figure a wizard in here knows exactly what's being done.
my album - last thursday died last week
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
The screen is put into full screen scroll mode and Vscroll value is changed on scanlines that are mirrored... simple, effective, loads of fun for programmer
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 256
- Joined: Tue Sep 11, 2007 9:10 pm
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
If I understand, you're basically waiting for a certain line and then adjusting vscroll to another line, and this way you can manipulate it to draw something "upside down." I think I know about the "squish" thing you're talking about, when you do the fire magic in Shinobi III there is a "heat wave" effect that looks like they are alternately skipping and duplicating individual lines to make it "wave." Any games use this as a water effect? I'm also guessing this same capability is what's being used to do sprite zooming in Treasure games (just duplicating the lines).tomaitheous wrote:Well, you can draw a BG layer upside down with a Hint and adjusting vscroll (full screen) on each corresponding scanline. You could even 'squish' (skipping map positions) it to give the appearance that it's a reflection.
Oh, and if anyone's curious, I do want to try banging together a demo just to say I did, and if I do I want to have some kind of neat graphic effect or something going on rather than a "hello world."
Also--can a palette entry be changed during the display period for a water effect, or is it using a separate palette table for top+bottom of the screen?
my album - last thursday died last week
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
you can set about 1 palette per line if you use DMA, but you will get some artifacts, the point where data gets passed to VDP is marked with a pixel with the color the data carries.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 615
- Joined: Thu Nov 30, 2006 6:30 am
You can avoid artifacts by turning off the display while you're doing the transfer. I was able to handle 8 colors per HSYNC when turning the display on and off if I polled the status register rather than using HINTs.TmEE co.(TM) wrote:you can set about 1 palette per line if you use DMA, but you will get some artifacts, the point where data gets passed to VDP is marked with a pixel with the color the data carries.
Of course, polling the status register like that makes it somewhat difficult to do anything useful with the 68K during the active display period.