gdx-proto icon indicating copy to clipboard operation
gdx-proto copied to clipboard

Change Skybox to use texture atlas

Open jrenner opened this issue 9 years ago • 4 comments

jrenner avatar Aug 30 '14 08:08 jrenner

Can you explain a little bit more? Becuase a skybox offen use large texture such as 512x512, 1024x1024 or even 2048x2048 and I dont see why you would pack them because I think the max texture size on android is 2048. Tell me if Im wrong!

Caresilabs avatar Aug 30 '14 08:08 Caresilabs

If I was to make a mobile game, I would probably use a 6 512x512 textures and want to pack them into an atlas. For a desktop game I'd probably do 2048x2048 textures and not worry about packing them.

jrenner avatar Aug 30 '14 08:08 jrenner

Yeah, thats true. Im going to see what I can do. However I have already support for images like this: http://img1.wikia.nocookie.net/__cb20120928194713/niketubestudios/images/1/19/Day_Skybox.png

as long as it looks like a flag, you can use the Sky.createSkybox(texture);

Though it takes a Texture but if you have 6 512x512 packed image you dont have room for more anyway so its going to be a texure anyway instead of an atlas.

Caresilabs avatar Aug 30 '14 08:08 Caresilabs

alright, it's probably not something we need to worry about then

jrenner avatar Aug 30 '14 08:08 jrenner