nesdev.com
http://forums.nesdev.com/

Vertical Line Animation Illusion
http://forums.nesdev.com/viewtopic.php?f=21&t=11542
Page 2 of 2

Author:  mikejmoffitt [ Tue Aug 19, 2014 11:06 pm ]
Post subject:  Re: Vertical Line Animation Illusion

I think you could do something like this using the SNES's mosaic parameters. If I recall you can change the "origin" for the mosaic pattern. If you have the mosaic magnitude at 8 pixels (an entire tile taking on just the value of the origin pixel) and shift down the origin every frame, you can represent 8 frames this way. Of course, the "resolution" is cut into 1/8th its original size this way, but the shimmering effect from the position offset is gone.

Author:  Sik [ Wed Aug 20, 2014 6:07 am ]
Post subject:  Re: Vertical Line Animation Illusion

Remember mosaic works in both axes, so technically an 8 pixel wide mosaic gives you 64 unique origins... May be better to use a less blocky mosaic while keeping a similar amount of frames in a single graphic (and if you combine this with palette trickery the amount of images can potentially explode, e.g. you can store 4 1bpp frames in a single 4bpp image, at the obvious expense of color count).

Author:  Myask [ Wed Aug 20, 2014 5:13 pm ]
Post subject:  Re: Vertical Line Animation Illusion

Memblers wrote:
That's a neat idea. I was thinking too, if the animation was only 2 colors, you could squeeze 3 more frames into the same memory.

So you'd have 2 1bpp combined images, then you'd combine them into a 2bpp NES tile arranged like this:
set1: transparent,transparent,color1,color1overlap
set2: transparent,color1,transparent,color1overlap

If that didn't make sense, another way of saying it is
literally having each bitplane be a separate image.

Now, would it be smarter to leave the sprites in place and just update the scroll register? That way your zoetrope-esque image would stay in place.

Author:  Celius [ Wed Aug 20, 2014 8:41 pm ]
Post subject:  Re: Vertical Line Animation Illusion

Scrolling the background would likely pose greater limitations with what you could do (using the sprite overlay). Since most (if not all) sprites would be taken, the background is all you have left to work with if you want anything else on the screen. Unless you do a sprite #0 hit to update the scroll midframe, everything else would be bouncing around.

Unless you did something clever with the blanked lines. You could turn them into prison bars, and have something going on behind them. If this were the case, you'd want the bars to remain in place, and update the scroll.

Author:  Myask [ Mon Aug 25, 2014 6:29 pm ]
Post subject:  Re: Vertical Line Animation Illusion

Yeah, for a moment I thought that having the animation stay in one place might be advantageous...

Author:  rainwarrior [ Mon Aug 25, 2014 7:02 pm ]
Post subject:  Re: Vertical Line Animation Illusion

If you wanted to eliminate the motion, the bars can be made with the background and the animation done with sprites placed underneath. That way you have no choice but to move the sprites.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/