How to import a 2d blender animation into Corona?
Hi @TheDarkHorse,
I don’t use Blender so I’m not familiar with its output. What file format are you wanting to import? Most likely you can’t import it directly into Corona. You’ll need to accomplish animation via sprites, most likely.
Brent
I don’t want to make sprites. Blender has spine like skeleton animation and its free, so I am planning to use it for 2d animations. It can export in .obj, collard, like formats.
Can’t we import animations directly into Corona like we import from Spine?
And I have heard we can import animated png files into corona, is it right?
Thank You.
You have to use sprites, there is no bone or model support in corona it is a 2d engine.
In order to do what you are looking to pull off you would need to export the animation as png files and either load them up 1 by 1 as a sprite object (bad idea) or combine them into a sprite sheet using something like texture packer and then load the sprite object up and pass in the image sheet with the frame numbers that are used for the animation.
http://docs.coronalabs.com/api/library/display/newSprite.html
Hi @TheDarkHorse,
Corona does in fact support Spine, but I haven’t used it personally, so I don’t know if this will work for you. If you are familiar with Spine, please direct your questions to the Spine sub-forum:
http://forums.coronalabs.com/forum/593-spine/
Take care,
Brent
Hi @TheDarkHorse,
I don’t use Blender so I’m not familiar with its output. What file format are you wanting to import? Most likely you can’t import it directly into Corona. You’ll need to accomplish animation via sprites, most likely.
Brent
I don’t want to make sprites. Blender has spine like skeleton animation and its free, so I am planning to use it for 2d animations. It can export in .obj, collard, like formats.
Can’t we import animations directly into Corona like we import from Spine?
And I have heard we can import animated png files into corona, is it right?
Thank You.
You have to use sprites, there is no bone or model support in corona it is a 2d engine.
In order to do what you are looking to pull off you would need to export the animation as png files and either load them up 1 by 1 as a sprite object (bad idea) or combine them into a sprite sheet using something like texture packer and then load the sprite object up and pass in the image sheet with the frame numbers that are used for the animation.
http://docs.coronalabs.com/api/library/display/newSprite.html
Hi @TheDarkHorse,
Corona does in fact support Spine, but I haven’t used it personally, so I don’t know if this will work for you. If you are familiar with Spine, please direct your questions to the Spine sub-forum:
http://forums.coronalabs.com/forum/593-spine/
Take care,
Brent