Jump to content
IGNORED

Scale bug ?


Recommended Posts

Hi, 

I read on some topics on AA what there is a "known" bug on scaling.

Since emulators are able to render this bug, could someone explain me this bug ?

 

I'm trying to stack 2x scaled objects on screen but I have +1, +2 or +3 to ypos to avoid empty line.

So I'd like to know if I could use scaling or just forget about it and scale bitmap data outside of the Jaguar...

 

Thanks

Link to comment
Share on other sites

Just now, KanedaFr said:

It's hard to show code w/o filling a full page since I'll need to share rapinit.s  ;)

 

I'll try to isolate the problem on one sample project and share the zip + binary

The part of the object list should be enough. But JS experts might need only a look into your rapinit.S to pin-point the problem.

Link to comment
Share on other sites

When using a scaled object set the bitmap pointer address to the address of the bitmap +1 line worth of data. This is fully documented in the... documentation.

 

[edit] or it could be -1 line

 

Too tired to go check, but its one of those.

Link to comment
Share on other sites

I use a dynamic list 20 instances of the same object, scaled x2 (64), edited by code

so it's not that obvious to debug just with a rapinit.s

 

Something like:

object2.y_ =  240-(scale*object2.height)

object1.y_ =  240-(scale*object2.height)-(scale*object1.height)

Link to comment
Share on other sites

3 minutes ago, CyranoJ said:

When using a scaled object set the bitmap pointer address to the address of the bitmap +1 line worth of data. This is fully documented in the... documentation.

Oh no!!!

not again...:(((

What the hell did I miss...?!

 

I only saw

The object must be on a 32 byte boundary in 64 bit RAM.

which I was trying to debug

 

Link to comment
Share on other sites

ARG !!!!!!

 

Please note that for scaled bitmap objects, HEIGHT
should actually be the bitmap height -1.

 

 

So, for exemple, 16 if not scaled, but 15 if scaled ?

and what about framez ? and vbox ?

Edited by KanedaFr
Link to comment
Share on other sites

If you are passing the same values in for both scaled sprites ( different x and y - on screen ) then they should be drawn the same.
The pictures you shown from another thread has a shift in the x whilst  you talk about the y.

Chances are its the SBMO Remainder
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...