cyberchris Posted May 11, 2012 Report Share Posted May 11, 2012 Summary: This package imports the spriter format scml into a dom-like java model and provides a basic drawer for drawing it with openGL on the screen. Currently it supports basic tweening by linearly interpolate the attributes of the sprites between key frames. That needs to be reimplemented later. Quick Start: Import the Spriter-File: spriterObjectHero = SpriterImporter.importFile( Gdx.files.internal("data/hero/BetaFormatHero.SCML"), new TextureProvider());spriterObjectHero.getAllTextures(); Note: The Spriter-object itself doesnt handle the textures, as they will probably handled outside. Instead it demands a texture provider, which gives back the needed Textures for the given image paths. Draw the Spriter object: SpriterDrawer.draw(spriteBatch, spriterObjectHero, "walk", 99, 150, 50, true, true); Note: this draws the spriter object with the animation "walk" at keyframe 99 at position 150:50. The last parameters defines, if the animation should be displayed repeating or not and if the animations should be tweened. Download: libGDX-Forum: http://www.badlogicgames.com/forum/viewtopic.php?f=17&t=3863 Source-code: http://www.badlogicgames.com/forum/download/file.php?id=717 demo-video: http://www.badlogicgames.com/forum/download/file.php?id=675 Feedback: Feedback is welcome. The source is maily java core, sou it should be portable in any other language. I will implement the other features of spriter as they come and if they are interesting for my developments. So others are invited to enhance the java driver, too. Please contact me at chris.f.news@gmx.de Quote Link to comment Share on other sites More sharing options...
Mike at BrashMonkey Posted August 30, 2012 Report Share Posted August 30, 2012 Awesome job cyberchris! Quote Link to comment Share on other sites More sharing options...
XtraTrstrL Posted August 30, 2012 Report Share Posted August 30, 2012 nice. Quote Link to comment Share on other sites More sharing options...
netguy204 Posted September 1, 2012 Report Share Posted September 1, 2012 Which format does your library support? Beta or final? Quote Link to comment Share on other sites More sharing options...
jdecarvalho Posted October 11, 2012 Report Share Posted October 11, 2012 This is great. Thanks a lot for your work. Any plans on upgrading the code to the new (1.0) version of the file format? Quote Link to comment Share on other sites More sharing options...
hopik Posted October 19, 2012 Report Share Posted October 19, 2012 Hello, I exchanged emails with Christian and he is too busy right now to upgrade his Importer to format 1.0. I also got response from Mike at BrashMonkey, that he has no info about somebody else to start implementation. Is there anybody already start on implementation? If not, maybe I will try, with no promises :) Quote Link to comment Share on other sites More sharing options...
Trixt0r Posted November 11, 2012 Report Share Posted November 11, 2012 Will or has anyone update the libGDX importer for the new scml file format? Or do libGDX users have to use the generic java importer made by Discobeard. See ya. Quote Link to comment Share on other sites More sharing options...
hopik Posted December 2, 2012 Report Share Posted December 2, 2012 Hi, I finished some basic implementation of new SCML format based on cyberchris SCMLImporter. Some additional functions added (scaling, encapsulating in Actor object). There are still missing some features of SCML format and bone structure is not implementated yet. But examples from actual version of Spriter a4 can be loaded and drawed/animated. Right now I'm testing it in one project. We will start with cyberchris a public project on Github soon (January). Quote Link to comment Share on other sites More sharing options...
Trixt0r Posted December 2, 2012 Report Share Posted December 2, 2012 Hey hopik, I already implemented bone animation in Discobeard's implementation. See Generic Java Importer, you can pull from the integration branch. The whole stuff runs already in LibGDX, but the implementation is not bug free. Greets. Quote Link to comment Share on other sites More sharing options...
Ceti Posted December 6, 2012 Report Share Posted December 6, 2012 Hey hopik,I already implemented bone animation in Discobeard's implementation. See Generic Java Importer, you can pull from the integration branch. The whole stuff runs already in LibGDX, but the implementation is not bug free. Greets. I can't use this project on Android phone,How to use it? Quote Link to comment Share on other sites More sharing options...
Trixt0r Posted December 10, 2012 Report Share Posted December 10, 2012 I know that it doesn't work on Android. You have to write your own asset loader for that and let libGDX do the rest with the AssetManager. If I have time, I try to write one. Quote Link to comment Share on other sites More sharing options...
Birmania Posted April 11, 2013 Report Share Posted April 11, 2013 Hi everyone, I successfuly run the cyberchris' importer but it only work with older verions of SCML files. (Good work anyway !) Do you know if new version of this importer are scheduled ? In fact, I hesitate to buy Spriter only due to this... Thank you in advance for the information. Birmania. Quote Link to comment Share on other sites More sharing options...
Trixt0r Posted April 13, 2013 Report Share Posted April 13, 2013 Hi Birmania, here you have a generic java implementation for importing scml files + some additional functions. I was testing everything with LibGDX and it runs quite well on PC and Android. HTML5 and iOS was not tested, but it should run fine, since LibGDX is meant to run similar on all supported platforms. - Trixt0r Quote Link to comment Share on other sites More sharing options...
Birmania Posted April 14, 2013 Report Share Posted April 14, 2013 Oh damn... Sorry Trixt0r but I completely forgot to mention that I tried your importer too ! But in fact, I didn't success to make it works. At the moment, I just retry to use it and it was a success ! Your library seems to work perfectly. My problem was that I tried to use the code in folder "spriter-test" instead of "Spriter" and "Spriter-desktop". (Due to the commentaries in your GitHub repository, speaking about LibGDX tests in this folder) To conclude : Great thanks for your Spriter Importer, it works like a charm, I hope that you will maintain it in the future. 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.