Orion_ Posted April 13, 2014 Report Share Posted April 13, 2014 Hello, I'm trying to use the "scaling" feature of the OP, but as always with the Jaguar, using the hardware is good for getting headaches I'm trying a simple Zoom x2 sprite (160x120 -> 320x240) It's not working on real hardware, but it works under Virtual Jaguar (so I must be close) It seems not to be the HSCALE/VSCALE/REMAINDER values, because whatever value I try, I always get the same result on screen on real hardware. on real hardware: why ? Link to comment Share on other sites More sharing options...
sh3-rg Posted April 13, 2014 Report Share Posted April 13, 2014 It's hard to see in the photo of the TV, but does the first line of the image look correct? It doesn't look like the deckchair bars but with the bleeding it's hard to tell if it's the same as the emulated image. Link to comment Share on other sites More sharing options...
Shamus Posted April 13, 2014 Report Share Posted April 13, 2014 Did you try the same code with a non-scaled bitmap, and does that work on real hardware? Also, if you could post a minimal code example that displays the problem, that would go a long way towards helping figure out the problem (no need to post image files, I can insert my own). Link to comment Share on other sites More sharing options...
SCPCD Posted April 13, 2014 Report Share Posted April 13, 2014 It's probably because your scaled object is 16-byte aligned instead of 32-byte aligned. Scaled object should be 32-byte aligned. Link to comment Share on other sites More sharing options...
Orion_ Posted April 13, 2014 Author Report Share Posted April 13, 2014 yes, my OPlist was 32bytes aligned, but because of the 2 branch object at the beginning, the first sprite becomes 16bytes aligned... now it's working, but I have a strange behavior, the image "jumps" each 1 or 2 seconds, it seems that the remainder value have something to do with this (maybe it overlap the VDE or something) I tried ((1+2)<<5)-1, or (2<<5)-1 but still the same problem :/ (a "0" remainder gives very strange line drawn on screen ) Link to comment Share on other sites More sharing options...
Shamus Posted April 13, 2014 Report Share Posted April 13, 2014 @SCPCD: How does that work? Does the OP see that it's a scaled bitmap and then decide to drop the low 4 bits to get the rest of the data? Link to comment Share on other sites More sharing options...
SCPCD Posted April 16, 2014 Report Share Posted April 16, 2014 @SCPCD: How does that work? Does the OP see that it's a scaled bitmap and then decide to drop the low 4 bits to get the rest of the data? The OP detect that it's a scaled object and read the extra phrase at [ObjectAddr | (1<<4)] that is wrong if the object is not at an 32-byte aligned addr. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now