- تم التحرير
Combining two files in one
Hello
Does anyone know if there is a way I can merge two files together ? The developer thinks that having 3 files will make the game slower.
At the end I'll have like 10 characters on every file, 3 files because we have 3 views, so is there any chance I can combine them into one file ?
My apologies if this was already discussed, thanks !
If you're still in progress, you could probably have all 3 skeletons branching out of your root, and then control what's shown with loads of skins. That's the only way you'll get Spine to export out a single skeleton image, otherwise unless someone wiser than myself has an idea, you won't be able to easily combine skeleton image sheets together after having done all of the animation in 3 separate Spine files.
edit: Looks like this thread might be helpful and disprove much of what I said! viewtopic.php?f=11&t=2522
You can import skeletons from one project to another. Combining multiple characters into a single skeleton doesn't seem great. I'm not sure why having more files would slow down the game.
Keep in mind that you can still combine the texture atlases from multiple skeletons. Even if you have multiple skeletons they can share the same texture atlas.
Thanks for the responses ! Well I can't use the same skeleton cause they have different structure, I'll use the skins for the female versions and for this if it works then I'll import the skeletons in one project and probably export them in one texture atlas.
I've attached a few examples from the carrying animations so you could get an idea about what I was talking. We've other animations cry, struck poses and also bigger and smaller ants, so pretty various, these animations are from the basic ants. ( they will be much more smaller in the game, but you can get the idea. )
Cool looking characters
Thanks Shiu !! I'm glad that you like them
Shiu wroteKeep in mind that you can still combine the texture atlases from multiple skeletons. Even if you have multiple skeletons they can share the same texture atlas.
How do you combine the texture atlases from multiple skeletons?
Just pack your images into a single atlas. See the texture packing docs.
Nate wroteJust pack your images into a single atlas. See the texture packing docs.
Is there an example of this anywhere? I looked at the texture packing docs first (http://esotericsoftware.com/spine-textu ... er#Packing) but they don't really explain this part at all. That's why I'm asking here.
I have multiple spine project files with images in different folders (they don't share the same root folder, and not all the images in each project is used by the animation). I was hoping to be able to export each separately, then combine them. But, it doesn't seem like that's how it works.
From what I can tell, you need to have all your source images in the same root folder (with no unused images since it will not skip over them even if they aren't used in an animation). And then, all your exported animation .json files needs to use the same "skeleton"."images" root path as your source images root folder.
Can you confirm this, or am I missing something?
I figured it out. I made a tutorial video for our artists and it's uploading now to youtube. I'll post it when done.
Some of it is specific to our animation workflow but the spine bits are pretty generic. https://www.youtube.com/watch?v=o3lN4j6 ... e=youtu.be
Don't have 15 minutes to spare to watch the video at the moment. I scrubbed but didn't find what you used for a solution.
tayl0r wroteyou need to have all your source images in the same root folder [snip] then, all your exported animation .json files needs to use the same "skeleton"."images" root path as your source images root folder.
Correct. Running the packer once results in one atlas. There is only one input directory, so you need to put all your images in the same directory structure. They can each have their own subdirectory if you like. So, you have a folder under which you place images and subdirectories of images that you want packed together in the same atlas.
Packing multiple atlases and then combining them would be quite complex, since different atlas pages could have different settings.
smoking aint?
Shiu wroteKeep in mind that you can still combine the texture atlases from multiple skeletons. Even if you have multiple skeletons they can share the same texture atlas.
I'm trying to work out how to do this. Got all my skeletons in a single project, but no matter what options I try, Spine spits out an atlas for each skeleton. What settings do I need in order for several skeletons to be combined in a single atlas?
Thank you Nate. It's actually quite clear, but somehow I missed this on the first read through this morning.