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.

AppGameKit Classic Chat / Problem with masking subimages

Author
Message
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 19th Nov 2011 23:03
See the example below for a masking problem.
In the picture, the first image is a straight assignment of the image to a sprite.
The second image is built from 2x subimages. Notice the masking problem when using the subimage method.

An example project is attached.

Can someone verify I haven't done something wrong before I submit this as an urgent bug?

thanks

Attachments

Login to view attachments
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 19th Nov 2011 23:03

Attachments

Login to view attachments
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 20th Nov 2011 16:04
I have had this problem, even with single images loaded up also. Just use this at the start of your code.


nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 20th Nov 2011 18:44
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 21st Nov 2011 03:27
You may also want to look at the SetSpriteUVBorder command since for sprite sheets it defaults to a half pixel border that prevents the images blending into each other. However if you are using sprites that match perfectly to your resolution you may be better off with a border of 0.

Login to post a reply

Server time is: 2024-11-22 15:47:33
Your offset time is: 2024-11-22 15:47:33