XTDStudios / DMT

Dynamically Mapping Textures
101 stars 13 forks source link

More efficient texture packing by trimming the whitespace #6

Closed yurishkuro closed 11 years ago

yurishkuro commented 11 years ago

It seems DMT does not trim down the transparent/whitespace around move clip frames, even though Starling atlases support such format. It would be very useful if DMT could support that, as it would decrease the size of the auto-generated atlases significantly.

gilamran commented 11 years ago

DMT, support different frame sizes in MovieClips. Can you please give an example fla?

yurishkuro commented 11 years ago

Here's an example: https://www.dropbox.com/s/hm24yzos0f88sk6/Fire_Test.zip

gilamran commented 11 years ago

You have a transparent layer with an instance of Square_placeholder. DMT will catch all the layers, including the transparent pixels. We are not scanning the bitmap and trimming it because it's a very heavy process (Especially on mobile). Just remove the hidden layer (I don't understand why you would want that...)

BTW, love the graphics!