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 / Those ugly back lines are back!!!

Author
Message
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Jul 2012 21:51
I am letting AppGameKit resize my 960x640 iphone game to ipad resolution.

i am using 1074 as 1076 does not compile on xcode3.

1 element of my game has those ugly dark borders around the edges when AppGameKit resizes it on the ipad. all works fine on the iphone as all graphics are designed for 960x640 and hence are 1:1

it's just 1 element!!!!

i have tried all possible commands:

SetImageWrapU
SetImageWrapV
SetSpriteSnap
SetMinFilter

making image power of 2 has no effect either

any other command that could get rid of the black lines?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 9th Jul 2012 22:11
If the image is 960x640, then you will always have black borders when displayed on an iPad if you are using SetVirtualResolution. It has a different width/height ratio.

Is that what you are seeing?

Cheers,
Ancient Lady
AGK Community Tester
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 9th Jul 2012 22:48
Yeah, the iPhone is 3:2 and the iPad is 4:3 so the screen will either have borders or be stretched.

bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 9th Jul 2012 22:56
sorry guys my fault...

DARK border around 1 SPRITE (the other 26 sprites look ok)!

NOT around the iPad screen!
Digital Awakening
AGK Developer
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 10th Jul 2012 00:32
Never ran into the problem myself. You could try SetSpriteUVBorder. You could also try SetSpriteUV to make the image larger than the sprite.

Rich Dersheimer
AGK Developer
14
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 10th Jul 2012 01:14
If it's truly only ONE sprite/image, post the image and the code that creates the sprite, maybe there's something we can spot.

I used to hate the thought of governments having orbital mind control satellites,
but now I can't really seem to care.
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 11th Jul 2012 13:10
Seems like setting SetSpriteUVBorder to 1 solves the issue!!!!

Thanks a lot guys!!
Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 11th Jul 2012 14:38
Hmm, I wonder if the command is mixed up somehow - the user guide says that setting it to 0 should get rid of defects, and do a full, like for like image paste. Ohhh, I wonder if the border somehow extends the image blending, rather than contracting it.

Health, Ammo, and bacon and eggs!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 11th Jul 2012 16:21
It's a bit irritating as not all sprites behave the same.

But it's also understandable as sprites are being stretched. Usually I have the artwork match 1:1 the resolution, but in this case i needed a quick iPad scaled up version.

Login to post a reply

Server time is: 2024-05-04 09:55:13
Your offset time is: 2024-05-04 09:55:13