PNG's...

4 views
Skip to first unread message

kevin_d

unread,
Feb 5, 2010, 10:46:05 AM2/5/10
to Rokon
What's the best format for PNG's that we use for textures? PNG24?

Anton Hesselbom

unread,
Feb 5, 2010, 10:58:40 AM2/5/10
to rokon-...@googlegroups.com
Best quality is Png 32, but it obviously has a bigger file size than 24-bit PNG.

2010/2/5 kevin_d <kdos...@gmail.com>:

kevin_d

unread,
Feb 5, 2010, 11:03:45 AM2/5/10
to Rokon
What about pixel density? We are using 96, we only have a few
graphics like 6, all are under 40kb but we run into out of memory
errors when loading them into a texture atlas.

On Feb 5, 7:58 am, Anton Hesselbom <anton.hessel...@gmail.com> wrote:
> Best quality is Png 32, but it obviously has a bigger file size than 24-bit PNG.
>

> 2010/2/5 kevin_d <kdosh...@gmail.com>:

Richard Taylor

unread,
Feb 5, 2010, 11:08:16 AM2/5/10
to rokon-...@googlegroups.com
Pixel density (I'm guessing you mean DPI) really doesn't matter - it is the dimensions of the actual image, how many pixels wide x how many pixels high.


Are you loading 6 textures to one atlas, how big are they dimension-wise?

kevin_d

unread,
Feb 5, 2010, 11:11:42 AM2/5/10
to Rokon
They are large, 2 are the size of the screen 480x320, the others are
all somewhere around 150x80 (doors and such).

Stephen Charman

unread,
Feb 5, 2010, 11:15:28 AM2/5/10
to rokon-...@googlegroups.com

Thers is something odd going on there. I have at least 4 512x512 texture atlas'.  I'm assuming you are using power of 2 sizes?

On 5 Feb 2010 16:11, "kevin_d" <kdos...@gmail.com> wrote:

They are large, 2 are the size of the screen 480x320, the others are
all somewhere around 150x80 (doors and such).


On Feb 5, 8:08 am, Richard Taylor <rtaylor...@googlemail.com> wrote:

> Pixel density (I'm guessing ...

> On Fri, Feb 5, 2010 at 4:03 PM, kevin_d <kdosh...@gmail.com> wrote:

> > What about pixel density? ...

kevin_d

unread,
Feb 5, 2010, 11:17:32 AM2/5/10
to Rokon
Yes one texture atlas thats 1024x1024, should I be using more?

On Feb 5, 8:15 am, Stephen Charman <mrchazmob...@googlemail.com>
wrote:


> Thers is something odd going on there. I have at least 4 512x512 texture
> atlas'.  I'm assuming you are using power of 2 sizes?
>

Richard Taylor

unread,
Feb 5, 2010, 11:23:04 AM2/5/10
to rokon-...@googlegroups.com
Stephen: I believe the limit is ~16mb, so theoretically you can have 64 512x512's

kevin: What device are you running? Dependant on how much memory your phone has, you may be limited. For example, I cannot create a 1024x1024 texture atlas on my G1, but I can on a NexusOne

Stephen Charman

unread,
Feb 5, 2010, 11:25:01 AM2/5/10
to rokon-...@googlegroups.com

1024 is asking a lot on a g1 like richard says, it only works sometimes

On 5 Feb 2010 16:17, "kevin_d" <kdos...@gmail.com> wrote:

Yes one texture atlas thats 1024x1024, should I be using more?

On Feb 5, 8:15 am, Stephen Charman <mrchazmob...@googlemail.com>
wrote:

> Thers is something odd going on there. I have at least 4 512x512 texture

> atlas'.  I'm assuming y...

> On 5 Feb 2010 16:11, "kevin_d" <kdosh...@gmail.com> wrote:
>

> They are large, 2 are the size of t...

kevin_d

unread,
Feb 5, 2010, 11:25:54 AM2/5/10
to Rokon
This happens in the emulator, "the the texture atlas cannot fit the
texture", the error is similiar to that but not exact. I think im not
using texture atlas's correctly.

Stephen Charman

unread,
Feb 5, 2010, 11:27:58 AM2/5/10
to rokon-...@googlegroups.com

Are you specifying the coordinates when you add them in? If not it tends to fail if you don't add them in the order largest to smallest

On 5 Feb 2010 16:25, "kevin_d" <kdos...@gmail.com> wrote:

This happens in the emulator, "the the texture atlas cannot fit the
texture", the error is similiar to that but not exact.  I think im not
using texture atlas's correctly.


On Feb 5, 8:23 am, Richard Taylor <rtaylor...@googlemail.com> wrote:

> Stephen: I believe the limit...

> On Fri, Feb 5, 2010 at 4:17 PM, kevin_d <kdosh...@gmail.com> wrote:

> > Yes one texture atlas that...

kevin_d

unread,
Feb 5, 2010, 11:29:45 AM2/5/10
to Rokon
Thanks..Ok, I will try adding them in largest to smallest I was not
doing this.

On Feb 5, 8:27 am, Stephen Charman <mrchazmob...@googlemail.com>
wrote:


> Are you specifying the coordinates when you add them in? If not it tends to
> fail if you don't add them in the order largest to smallest
>

kevin_d

unread,
Feb 5, 2010, 1:14:22 PM2/5/10
to Rokon
Thanks that was it, I also split up the textures into 2 texture
atlas's and now it loads fine. Thanks again.
Reply all
Reply to author
Forward
0 new messages