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 / image size too big?

Author
Message
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 8th Jun 2013 00:49
i want to use an image 4096 x 600 in a game. will this work on android or other platforms?
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 8th Jun 2013 01:09
I believe AppGameKit will automatically scale the width down to 1024 and scale the width acordingly. Then it will add empty pixels to make the image 1024*1024. I don't know if it does this on all platforms but im pretty sure it does it on android and iOS
qwe
21
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 8th Jun 2013 01:14
it's for a background for a scrolling game. it works fine on PC

would i have to use four 1024 images for it to work on android?
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 8th Jun 2013 06:10
I think the v10812 is supposed to allow larger images for Android.

The AGK.txt file (which lists changes in each build) says:
Quote: "Fixed loading of large JPG images on Android"


So, test your larger image. If it works, then we know. If it doesn't, then you will need to go with four images.

Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 8th Jun 2013 09:33
It's risky to use any image > 2048. This may work, but as it's hardware and OpenGL driver-dependent it will fail on many devices. I've just been reading extensively about this.

I don't think there's much that TGC can do about it. There are some OpenGL calls that will return these limits, and it would be handy to be able to get these via AGK.

-- Jim DO IT FASTER, EASIER AND BETTER WITH AppGameKit FOR PASCAL
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 8th Jun 2013 11:01
or direct more strips in 32 pixel size and load/create/delete sprite if needed.
yesterday i used GetSpriteInBox for in/outside screen test.

Login to post a reply

Server time is: 2024-11-24 16:07:03
Your offset time is: 2024-11-24 16:07:03