help understanding horizontal scroll

Page 2/2
1 |

By Manel46

Hero (625)

Manel46's picture

25-01-2019, 15:27

https://drive.google.com/open?id=12v6-gsxLEYKTjD9oYwLSHATbNG...
This is a demo, with graphics of "Mr. Balloon" where you can see the effect with or without a mask, in horitzontal scroll of 2 pages. It is handled with the cursors. "N" disables mask and "M" activates it.
With the HW sprites, in this scroll, it is not necessary to update the "X" coordinates, as it happens with the vertical scroll R # 23, with the "Y".

By Parn

Hero (630)

Parn's picture

25-01-2019, 16:24

I unfortunately don't have time to try it out right now (I'm curious), but it sounds similar in concept to my own little demo, which I shared previously. My demo uses sprites to show the contents of the horizontal scroll registers (no vertical scrolling in my demo) and also uses the arrows to scroll. It uses the spacebar to toggle the mask, however.

By Manel46

Hero (625)

Manel46's picture

25-01-2019, 16:54

Yes friend. Your demo demonstrates the concept too. I did not stop to see her for being in basic, that I do not dominate. Sorry. Excuse me.

By Manuel

Ascended (17869)

Manuel's picture

26-01-2019, 13:13

Parn wrote:

Unfortunately horizontal scroll on OpenMSX, at least at version 0.14, which is the one I tested, isn't working right when mask is disabled

Can you be more specific on what is not right?

By Parn

Hero (630)

Parn's picture

26-01-2019, 13:29

Manuel wrote:

Can you be more specific on what is not right?

It looks like it ignores how many pixels must be clipped at the right border. In other words, the border should stay at the same place, no matter whether masking is on or off. There's some weird flashing on that area as well, like it is trying to draw the border at the right place but then overlaps it with the pixels that should be invisible. It seems this problem only happens when R#26 is 0 or 32. It may be related to the graphics page wrapping around.

EDIT: I can confirm the problem happens whenever R#26 is 0 or 32, and it doesn't matter whether bit 0 on R#25 is set or reset.

By Manel46

Hero (625)

Manel46's picture

26-01-2019, 15:23

Running my demo, I can confirm that in the Openmsx, without the mask of R # 27, something wrong happens. The problem is shown in the right margin, when going to the left. 8 bits are filled right momentarily.
I have verified on real hardware, and this does not happen.
Tested with Open version 0.15.0-186.

By wouter_

Champion (456)

wouter_'s picture

26-01-2019, 15:33

I fixed this in openMSX a few minutes ago. Thanks for reporting.

By Manel46

Hero (625)

Manel46's picture

26-01-2019, 16:27

Perfect now with the new version 0.15.0-187, Wouter.

By Parn

Hero (630)

Parn's picture

27-01-2019, 16:22

Great news. I know this isn't a big deal (why on Earth would I want to use horizontal scroll without masking?), but I'm glad to see OpenMSX just one step closer to perfection. It's my favorite emulator. Big smile

Page 2/2
1 |