Outrun style road demo MSX2

Pagina 8/19
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9 | 10 | 11 | 12 | 13

Van Metalion

Paragon (1215)

afbeelding van Metalion

19-12-2019, 10:49

I'm looking at the sprite management now, and it's not going to be easy.

The first version of the sprite I made for the main car was taking 8 sprites, and I was planning on using at least 4 more to give the necessary details and colors. We're talking about 12-16 sprites just for the main car ! ... Then I started thinking about the number of sprites the game would need, and came with some very high numbers indeed. A spritesplit was going to be a necessity and even with that, I was not sure it was going to be enough.

Then I got an idea. And found a neat trick.
Can you guess which ?

Van Pencioner

Scribe (1201)

afbeelding van Pencioner

19-12-2019, 10:53

I didn't look carefully at the image but i guess that's a double-sized sprites (using big 2x2 pixels). Which should reduce number of sprites 4 times Big smile

Van thegeps

Hero (578)

afbeelding van thegeps

19-12-2019, 11:07

A blitter object?

Van Metalion

Paragon (1215)

afbeelding van Metalion

19-12-2019, 11:20

Pencioner wrote:

I didn't look carefully at the image but i guess that's a double-sized sprites (using big 2x2 pixels). Which should reduce number of sprites 4 times Big smile

Correct.
But usually, the 32x32 sprites look very blocky, like this :

Van Guillian

Prophet (3371)

afbeelding van Guillian

19-12-2019, 12:09

Overlaping magnified sprites with a little offset?

Van DarkSchneider

Paladin (939)

afbeelding van DarkSchneider

19-12-2019, 12:46

In this case magnified sprites looks like the only solution. Mixing resolutions is not so rare in other platforms.

If want to fit better with the road, maybe could adapt the road rendering. As the VDP commands already uses full byte (multiple of 2 px), only changing the CPU part is required, that surely will mask the borders to avoid that multiple of 2 rendering.

Van Metalion

Paragon (1215)

afbeelding van Metalion

19-12-2019, 14:52

Guillian wrote:

Overlaping magnified sprites with a little offset?

Exact. An very inspiring idea I found here :
https://www.msx.org/forum/msx-talk/development/it-good-trick...

But I did not know it would turn out so well.
You can indeed have very good results with them.

DarkSchneider wrote:

In this case magnified sprites looks like the only solution

And furthermore, they offer a nice solution to the rendering of cars arriving from down the road.
I can have a "size-split", where the sprites are 16x16 above a certain line, and 32x32 beyond that.

Van hit9918

Prophet (2897)

afbeelding van hit9918

19-12-2019, 14:57

I hope the 2x2 pixels dont make too much jumpy zooming. this version gets its speed from 3D correctness, so zooming is an important topic.
the megadrive version has too jumpy zoom.

Van hit9918

Prophet (2897)

afbeelding van hit9918

19-12-2019, 15:21

in the hires version the main problem was the wheels. maybe one could render the wheels in the screen 5? they are not much pixel mass.
similar one could have lights and blinkers in the screen 5 Big smile

Van wimpie3

Champion (324)

afbeelding van wimpie3

19-12-2019, 16:06

I love this project! Keep going!

Pagina 8/19
1 | 2 | 3 | 4 | 5 | 6 | 7 | | 9 | 10 | 11 | 12 | 13