Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Scale Sprite

Author
Message
Scottie Dog
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 9th Jul 2009 15:27
Somethings been bugging me for a little while.

I've enclosed a small picture with this post.
The picture shows 3 images, the one of the left is my program running at a zoom size of 100 (i.e. 100 / 1)
The picture top right is the program running at a zoom size of 50 (i.e. 100 / 2)
The picture bottome right is the zoomsize100 image shrunk by 50%

Why does it appear that the graphics produced by dbScaleSprite(Image, 50) are smaller than the graphics draw bottom right.
As you can see my ship appears to be further away from the Station at zoom level 50...

Im missing something obvious - I just cant think what.

Attachments

Login to view attachments
Scottie Dog
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 9th Jul 2009 15:54
OK - Ignore me.

Was going through my move/rotation code and found a sneaky divide by zoom command.
This basically meant that my zoom level was being applied twice to the position of objects attached to a part, and therefore was shrinking down the overall size of a structure.

Problems solved (at least for now)

Login to post a reply

Server time is: 2024-10-01 06:04:34
Your offset time is: 2024-10-01 06:04:34