![]() Nice find and quick update, I was also exploring this issue so much appreciated! I checked that it fixes the problem with "non-rotated" case: var frame : Rectangle = ame Īttachment.regionOffsetX = frame ? -frame.x : 0 Īttachment.regionOffsetY = frame ? -frame.y : 0 Īttachment.regionHeight = texture.height Īttachment.regionOriginalWidth = frame ? frame.width : texture.width Īttachment.regionOriginalHeight = frame ? frame.height : texture.height Var rotated : Boolean = atlas.getRotation(path) Īttachment.rendererObject = new Image(omTexture(texture)) // Discard frame. Var attachment : RegionAttachment = new RegionAttachment(name) Throw new Error( "Region not found in Starling atlas: " + path + " (region attachment: " + name + ")") Var texture : Texture = atlas.getTexture(path) Public function newRegionAttachment( skin : Skin, name : String, path : String) : RegionAttachment The code would even become simpler by unifying SubTexture and Texture cases as follow: Simply remove the local to global UV conversion done in StarlingAtlasAttachmentLoader.newRegionAttachment method In short, the UV of the region attachment are zoomed in twice. height ĪtUVs(attachment, attachment, attachment, attachment, atlas.getRotation(path)) Var rectRegion : Rectangle = atlas.getRegion(path) Īttachment = rectRegion. When calling tTexCoords(ii, uvs, uvs) in the SkeletonSprite.render method, the mesh relies on its tTexCoords method as follow: With the March 10th integration, you're now always relying on a SkeletonMesh renderer instead of an Image for standard non-mesh region attachments. ![]() on the right this is the TexturePacker atlas version.Īll mesh attachments are fine on both cases however the "shield" is wrong with the TexturePacker version.Īctually looking at it a bit more in details, I found the root cause and a possible fix:.on the left, it is using the Spine atlas format.When using the TexturePacker format, it looks like only the mesh types are rendered properly whereas the standard region types of attachment are broken.įor instance, the image below show a small example using the spine goblins skeletons: I did some investigations on my side and here is what I found:Ī display bug with Starling runtime / TexturePacker atlases appeared with the commit of March 10th:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |