DarkTI написалI searched the forum but only found issues with repacking normal maps at runtime. My question is more basic.
When should we create normal maps to use with spine objects in unity? Should we create them by editing atlases of main textures in Photoshop?
Or do we need 2 sets of images, one for the main textures and one for normal maps, and then make 2 atlases from them using spine?
I don't suggest using the generated atlas (after you've done texture packing) to 'trace over' to create the normalmaps. It would mean that if you changed something on your original images, and had to run the texture packer again, that the normal map atlas you painstakingly made would no longer match up with the new texture atlas.
This is my workflow:
1) Create the spine character as usual, with a spine project and an "images" folder
2) Use the program Sprite Illuminator to create the normal maps (individual normal maps for each image file) into its own separate folder
3) Use Spine's texture packing to pack the original images into its own atlas, and then pack the normalmap-images into their own atlas. You can use the Texture Packing option in the menu in Spine, or you can use command line to do the texture packing. Learning the command line setup takes a bit but it can save a lot of time/headache if you set up .bat file scripts to do the packing.
I wrote a little overview of the process halfway down this post: Use Premultiplied Alpha when texture packing normal maps?
I know its a lot of information, lol - if you have any questions I'd be glad to help 🙂
Also - that guide was for the 'Experimental' 2D Renderer in Unity, for the new 2D Lights setup, just FYI