Dwedit wrote:
Nothing beats
This website's Flash Intro. You can do anything on that site, the only limit is yourself.
THIS iS AWFUL !
Quote:
Out of a scale of 1 to 10, how cool would an SNES software sprite rotation algorithm be? I think I figured out a way of pulling it off. All I need is to finish the code, and test it out.
This is an interesting topic.
I did something like that for the NES a while back, too bad I lost it on my HD, but I hope it's still arround the internet. You must google something like "NES Rotation Demo" and eventually you'll find it... I don't even remember if I released the source, if I did not then it's lost and you'd have to disassemble it to figure out how it works (it sucks I know).
It is incredibly slow though. It takes like 2 seconds to compute a frame of a 32x32 image, but I didn't optimise the thing much.
The reason it's so slow is because for a 32x32 image, you have to do 32x32 multiplications of a 2x2 matrix in fixed point (that 32x32x4 = 4096 multiplications) plus fetch and write the pixel in the "complex" tiled sheme (the original image was stored in NES format too).
If you could do something like this but faster on the SNES it would sure be a cool thing.
EDIT : I didn't actually lose the demo I just changed it to become full screen and pixelized, and faster, but it looks ugly, is now glitchy, is NTSC only and I guess doesn't even works proprely on real HW... I'm stupid sometimes I wish I didn't change it and kept the original but oh well.
It's
here.
I couldn't find the original on google but I'm sure someone has archived it. If someone has a link it'd be great.