Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sprite Rotation
#4
Of course! Don't expect any kind of anti-aliasing, just the good-old blocky pixels. This is not an intended feature, just a side effect of how real 2D tiled hardware works.

In fact only few high-end arcade boards supported sprite rotation. As you say, the SNES rotated a background layer, not sprites. And the Neo*Geo had tile scaling (just shrinking to be exact, not upscaling), and no rotation of any kind. The scaling dinosaur boss in Super Mario World, and the bosses of levels 2 and 5 in Super Contra 3 were in fact backgrounds.

Rotating a background is quite trivial, as for each pixel in the whole screen, there's a corresponding source pixel in the background. But for sprites that's not the case. Determining coverage area on each scanline is complex because not all pixels are covered by the sprite, and even inside the boundin box area not all destination pixels have a corresponding source pixel. And it must be done in few calculations to keep high framerate, with as much caching and LUT tables as possible...

Have you tried the new features? Full background bitmaps and mouse support should enable you to do "Worms" without much effort
Reply


Messages In This Thread
Sprite Rotation - by Daniel H. - 05-18-2018, 04:14 AM
RE: Sprite Rotation - by megamarc - 05-18-2018, 05:37 PM
RE: Sprite Rotation - by Domarius - 05-27-2018, 07:55 AM
RE: Sprite Rotation - by megamarc - 05-28-2018, 01:09 AM
RE: Sprite Rotation - by Daniel H. - 05-30-2018, 05:40 AM
RE: Sprite Rotation - by Domarius - 06-05-2018, 11:42 AM
RE: Sprite Rotation - by megamarc - 05-30-2018, 06:39 AM
RE: Sprite Rotation - by megamarc - 06-24-2018, 04:10 PM
RE: Sprite Rotation - by Daniel H. - 06-27-2018, 04:06 AM
RE: Sprite Rotation - by megamarc - 06-27-2018, 03:28 PM
RE: Sprite Rotation - by Domarius - 07-03-2018, 12:29 PM
RE: Sprite Rotation - by RexyDallas - 09-05-2018, 03:54 AM
RE: Sprite Rotation - by megamarc - 09-05-2018, 06:28 AM
RE: Sprite Rotation - by Domarius - 09-06-2018, 02:59 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)