ftguy2018 Posted June 18, 2018 Share Posted June 18, 2018 Can someone point me how to import and use the atlas and png file created by texturepacker into panda2 engine ? Thank you, Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted June 18, 2018 Share Posted June 18, 2018 Hi @ftguy2018 This is all you should need ... game.addAsset('yourAtlas.atlas'); Now if you want to use a specific image from your atlas, declare it in the same way as you would with a single imported image. Super easy Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 18, 2018 Author Share Posted June 18, 2018 Thank you however i have tried to add the atlas generated by texturepacker but the loader froze so it seems it cannot load the asset when the spine plugin is also added to the project ? Any idea why ? Quote Link to comment Share on other sites More sharing options...
enpu Posted June 18, 2018 Share Posted June 18, 2018 Is it loading properly when you don't use Spine plugin? Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 19, 2018 Author Share Posted June 19, 2018 Yes, I think there is a problem with atlas from spine and atlas for the game engine, if I export the sprite atlas using the "Spine option" from texturepacker, the atlas file can be loaded (thought I do not know how to use it) at least it does not crash, but if I export using the "panda2 option" from texturepacker it does freeze at the initial loading, can you please kindly advise how to fix this ? Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 19, 2018 Author Share Posted June 19, 2018 Also I found a bug in the Spine plugin, when there is a change in the attachment for a slot, the plugin will create a new object and not replace the old one, if you play the attached file to reproduce the issue, there is 1 animation idle_1 for the dragon , you need to turn the debugger panel on and you will see wings are created all the time, eventually it will reach hundreds of draw calls and frame rate will drop. dragon.zip Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 22, 2018 Author Share Posted June 22, 2018 Hello, any chance to have this Spine bug / Atlas reviewed ? Not being able to make atlas is not a so big issue thought I am always looking for best performances and memory footprint but spine plugin not working properly is holding our project. Please kindly advise. Quote Link to comment Share on other sites More sharing options...
enpu Posted June 23, 2018 Share Posted June 23, 2018 @ftguy2018 Sorry for the delay, will take a look at this now. Quote Link to comment Share on other sites More sharing options...
enpu Posted June 23, 2018 Share Posted June 23, 2018 @ftguy2018 This should be now fixed. Just updated new Spine plugin version 1.3.1: https://www.panda2.io/plugins I also tried to load regular atlas file while using Spine plugin and it worked as expected. Could you send me the atlas that you are having issues with? Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 27, 2018 Author Share Posted June 27, 2018 Thank you so much for looking into those issues, actually I was out of the town for a while so tomorrow I will update the plugin and give a try and report, hopefully it should be work well ^^ Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted June 27, 2018 Author Share Posted June 27, 2018 I downloaded the plugin 1.3.1 and indeed now animated textures are displayed correctly, maybe a little performances boost too , good job ^^.... as for the atlas files I will check later on and report. Quote Link to comment Share on other sites More sharing options...
Stephan Posted March 12, 2019 Share Posted March 12, 2019 It appears that the bug hasn't been fully resolved. When I import a a 'normal' .atlas file (exported with Texture Packer, Panda 2 settings) in addition to the spine atlas, I receive the following error: spine.js:6610 Uncaught TypeError: Cannot read property 'responseText' of undefined at Class.parseAtlas (spine.js:6610) at core.js:955 at Class._loadCallback (loader.js:200) at Class._onload (texture.js:87) at HTMLImageElement.<anonymous> (core.js:955) Steps to reproduce te problem: download the current spine plugin + demo project (plugin v.1.3.3). add the attached .atlas file to the project (test.atlas + texture pack with a single image: ) import the .atlas file the usual way with: game.addAsset('test.atlas'); Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
enpu Posted March 14, 2019 Share Posted March 14, 2019 @Stephan Thanks for the info! This should be now fixed in Spine plugin 1.3.4 Quote Link to comment Share on other sites More sharing options...
Stephan Posted March 14, 2019 Share Posted March 14, 2019 I just gave it a try it and the problem has indeed been fixed. thank you for the quick patch! ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.