slice a texture to multiple sprites by transparency?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
pizzazhang
Kobold
Posts: 30
Joined: Thu Jan 20, 2011 6:37 am
Location: Shanghai/China

slice a texture to multiple sprites by transparency?

Post by pizzazhang »

Hi, all,
I want to implement the feature that Unity has: http://docs.unity3d.com/Manual/SpriteEditor.html
"With the slicing type set to Automatic, the editor will attempt to guess the boundaries of sprite elements by transparency", what is the easiest way to implement this ?
User avatar
areay
Bugbear
Posts: 819
Joined: Wed May 05, 2010 4:59 am
Location: Auckland, NZ
x 69

Re: slice a texture to multiple sprites by transparency?

Post by areay »

Seems like it's something you'd get going with GIMP/photoshop for use by Ogre. It looks pretty similar to how CEGUI packs images into 'imagesets' which have coordinates for individual textures (like UV mapping).
Post Reply