Libgdx texturepacker giving two images12/25/2023 Message = "Unable to create image '"+sheetFilename+"'" If sheetImage.Create(packer.Width, packer.Height, 255, 0, 255, 0) = False ![]() SheetObject.SetByName("items",imagesObject) SheetObject.SetByName("file",TJSONString.Create(sheetFilename)) SheetFilename = prefix + "_" + sheetIndex + ".png" While FileType(sheetFilename) = FILETYPE_FILEįor sheetIndex = 0 Until packer.sheetTotal SheetFilename = folder + "/" + prefix + "_" + sheetIndex + ".png" Local root:TJSONArray = TJSONArray.Create(packer.sheetTotal) Method SaveAtlas:Int(path:String,packer:Skn3Packer,message:String var) If your interested in writing an exporter for a format that isn't yet supported, here is an example of two exporters. Added ability to save and load settings to a file Added ability to automatically trim blank alpha space from images Added ability to specify if texture should be split across multiple pages Added ability to export to sparrow format ![]() Added support for multiple import files/folders This was generated by TexturePacker with the output of Sparrow: Ironically it is using code from Objecty for the packing and such, but as long as it goes to good use to support monkey users. It is for a spine animation lib I am writing for monkey. It ended up being converted to a texture builder. I originally had this a tool for converting existing bitmap fonts to a better packed system with more character data pre baked. I'll definitely look at adding multi file/folder support. What does the sparrow format look like? I could potentially post the abstract exporter class if people wanted to extend that? That has lots of stuff that can't really be open sourced. I'd like to, to get support, but it includes some some stuff which I spent a lot of time on such as an image toolkit module (for building the images). Unfortunately I can't really release this open source. I will look at this on Monday when back to work and see what's doable. ![]() So yeah, when you can call this complete, source please, if it's not too much trouble :) Already have a pretty nice TextureAtlas class that I'd like to release with a nice packer like this as a bit of a 1-2 combo for the average monkeycoder's toolbox, but it uses some wacky plaintext metadata format that probably no one else uses. And every other feature, of course )Īnyway, when I get a chance, I'll check what kinda formats this thing outputs here - I'm presuming this uses your rect packing algo? I was actually going to use that to write my own texture packer app (in VB.NET), since the one we use in our projects kinda really sucks (and I don't know who made it). I haven't tested it yet, but one thing I can think of is that it would be nice to have the source available so that we can write our own exporters! Seems it would solve people's "standard" XML issue and anyone else who want a metadata format that this thing doesn't do. it'll be better if you could select multiple folders.Īnd maybe get it to output standard XML like Sparrow so we don't have to recode our apps ) cleaned up weird use of registry and xml for settingsĬool! Have you used any format standard (Sparrow etc) or just made it up yourself?
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |