Vamiga: Small graphics issue in Planet Rocklobster (Oxyron)

Created on 15 Nov 2020  路  8Comments  路  Source: dirkwhoffmann/vAmiga

Bildschirmfoto 2020-11-15 um 10 16 07

It's most likely a timing issue with BPLCON0 or BPLCON2 as the demo toggles graphics modes every other line.

Bug

Most helpful comment

Sweet!

Using your voxel test case, it was easy to debug 馃憤.

All 8 comments

The readme for the demo also states

Last thing to mention is the hiding of the HAM6 color-bleed with sprites.

But maybe the hiding is only being done on the left side (and not the right side)

Last thing to mention is the hiding of the HAM6 color-bleed with sprites.

This might be it! I'll check that...

If all sprites are drawn in front and both playfields are cutted out, it looks like this:

Bildschirmfoto 2020-11-15 um 14 48 06

Assuming that I didn't do anything stupid in my experiment, you are right. Sprites are only used to cover the left border.

Alright. Then it's likely a timing issue as you suggested

I think I figured out the cause of this bug. It becomes clear when the border is highlighted in a different color (red):

Bildschirmfoto 2021-01-17 um 12 16 35

The red border is missing for all HAM lines. The emulator does draw the border, but the color is overwritten later in function colorize() (only HAM mode is affected, because of the way drawBorder() works):

```C++
// Translate bitplane data to color register indices
translate();

    // Draw sprites
    drawSprites();

    // Draw border pixels
    drawBorder();

    // Perform playfield-playfield collision check (if enabled)
    if (config.clxPlfPlf) checkP2PCollisions();

    // Synthesize RGBA values and write the result into the frame buffer
    pixelEngine.colorize(vpos);

```

Fixed.

Bildschirmfoto 2021-01-17 um 13 39 33

Sweet!

Sweet!

Using your voxel test case, it was easy to debug 馃憤.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gianmarco72 picture Gianmarco72  路  4Comments

Alessandro1970 picture Alessandro1970  路  4Comments

mithrendal picture mithrendal  路  3Comments

bnice picture bnice  路  4Comments

dirkwhoffmann picture dirkwhoffmann  路  4Comments