• Editor
  • Modifying an image and adapt it's mesh to the new version of the image

Hi,

I have made a new outfit for my character which is already rigged and animated and I would like to use this rig and animation for my new outfit, however adding a skin into the spine project would not work since the outfit is too different from the first one and every meshes have to be modified.

So I duplicated my Spine project and I am saving my new images in the Image folder, giving them the same name as the old ones.
Since my image is modified, Spine ask me if I want to keep the size or to extend it to the mesh, I want it to stay as it is so I click on keeping the same size.
Then I click on modify the mesh to modify every vertices so they are well placed onto my new image, they keep their weights and everything is good until now.

But then when I exit the modifying mesh view, my mesh takes back it's previous coordinates, and so I have to move every vertices to their new place so my new image looks good and not all squeezed because it has the previous mesh placement. In order to do so and to have a my vertices setted at the right place, I need to make a printscreen of my mesh in the edit mesh view, and put this image in my project to use it as a layer/guide to put back all my vertices in their exact position so my new image looks good and has it's correct mesh and animation.

This is a working way to do it, but it takes a lot of time moving every vertices twice, once to modify the mesh which is necessary, but the I would like to get rid of this second manipulation in which I need to move all my vertices again so my image is not squeezed with the previous mesh coordinates, I don't know if you understand my issue, but if you do and if you have a way to pass through that it would be really great !

Thanks for you time and your help, and sorry if it's something that has already be discussed, I looked a bit into the forum but didn't find this exact problem.

Thank you.

    Related Discussions
    ...

    Guiard It seems you have chosen a rocky road. Let me explain the recommended approach first.

    In general, when you plan to use the same mesh settings to another mesh, it is recommended to align the images to the same size in advance. Even if each image has large whitespaces, the actual size of the images will not matter at runtime because the whitespaces can be removed at pack time depending on the texture packer settings.
    The way to remove whitespace is shown in this tip: http://esotericsoftware.com/spine-tips#polygonal-packing
    For more information on each setting, please see the documentation: http://esotericsoftware.com/spine-texture-packer#Settings

    You can add whitespace to your images by increasing the Padding value when you output them with PhotoshopToSpine. The Images Resized will pop up when you open your project in Spine again, but when whitespace has been added evenly on all four edges of the image, you can keep the correct mesh settings by choosing Keep size. Then you can create a new outfit based on the size of the image with sufficient whitespace.

    Back on topic about the solution to your problem, you may want to modify the vertices of the mesh with checking Deformed: http://esotericsoftware.com/spine-meshes#Deformed
    I know that this would make it harder to adjust the position of the vertices since they would not be visible outside of the mesh hull, but it can eliminate the process of adjusting the position of the vertices after you are done editing, as you would like to do.

    As I mentioned in the beginning, the recommended approach when you want to use the same mesh settings for multiple images is to match the size for each corresponding image. This may seem like a lot of work, but I think you should adopt that approach especially if you plan to add more outfits to your character in the future.

    I hope this will help you!

    Thank you verry much !! Yes it helped me a lot actually, and as you say I had chosen a rocky road, but thanks to you it is now a clean path haha 🙂

    I will consider a verry different approach for the futur, thank you again and have a great day !