jregel Posted December 27, 2020 Share Posted December 27, 2020 When drawing a scaled sprite using the object processor, how is the x/y position calculated? E.g., if you have an sprite that is 32x32 pixels, with the top-left pixel at screen position 160x120 and then want to zoom in and make the sprite bigger, how does it calculate where to draw the scaled sprite? I've read that the Sega Saturn allowed a "zoom point" to be defined so you can specify that the scaling has an originating point that is left/middle/right and top/middle/bottom, but can't see from the Technical Manual how the Jaguar does it. Thanks for any help. Quote Link to comment https://forums.atariage.com/topic/315122-object-processor-scaled-sprites/ Share on other sites More sharing options...
swapd0 Posted December 27, 2020 Share Posted December 27, 2020 The scaling it's done from the left & top corner (right & top if the sprite it's flipped), If you need to scale the sprite from the center you must "move" the sprite so the center will be located at the same screen position. 2 Quote Link to comment https://forums.atariage.com/topic/315122-object-processor-scaled-sprites/#findComment-4709356 Share on other sites More sharing options...
jregel Posted December 27, 2020 Author Share Posted December 27, 2020 49 minutes ago, swapd0 said: The scaling it's done from the left & top corner (right & top if the sprite it's flipped), If you need to scale the sprite from the center you must "move" the sprite so the center will be located at the same screen position. That's really helpful, thanks for the quick reply. Quote Link to comment https://forums.atariage.com/topic/315122-object-processor-scaled-sprites/#findComment-4709385 Share on other sites More sharing options...
Recommended Posts
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.