Scanline effects: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
Special trick with the [[68k interrupts|raster line interrupt]] to stretch [[sprites]] horizontally.
[[File:Sengoku2persp.png|frame|[[Sengoku 3]] changes the shrinking and the position of a scrolling sprite block in its intro to create a mirror and perspective effect.]]
ver
Special tricks using the [[68k interrupts|raster line interrupt]] to distort [[sprites]] horizontally or vertically.
 
These effects are very CPU consuming as they can be triggered at very tight intervals during active display. Consequently, they may have to use tables of precomputed values (constants, or calculated during the VBlank) to be applied fast enough.
 
[[Neo Turf Masters]] relies exclusively on this effect to render the playing field.


[[Category:Code]]
[[Category:Code]]
[[Category:HowTo]]
[[Category:HowTo]]

Revision as of 07:45, 21 February 2011

File:Sengoku2persp.png
Sengoku 3 changes the shrinking and the position of a scrolling sprite block in its intro to create a mirror and perspective effect.

ver Special tricks using the raster line interrupt to distort sprites horizontally or vertically.

These effects are very CPU consuming as they can be triggered at very tight intervals during active display. Consequently, they may have to use tables of precomputed values (constants, or calculated during the VBlank) to be applied fast enough.

Neo Turf Masters relies exclusively on this effect to render the playing field.