I was recently selected to be able to beta test SpriteIlluminator by CodeAndWeb. SpriteIlluminator helps you add dynamic lighting to your mobile games by helping you create a normal map to add to your sprite.
The first thing you’ll do is import a sprite into SpriteIlluminator. Here I just quickly drew a guy for this demo.
Next you can add the various effects, such as bevel and embossing.
You can drag the light source around and see how your sprites will look in real-time, which is very helpful. You can also use the lasso tool to select certain portions of the sprite and add effects just to that part.
When you’re finished, you can publish out the project and it will create your normal map file.
In this example, I beveled the sprite and then raised the shirt sleeve, nose, and eyes to make them stand out. Then in SublimeText, I created a main.lua file and did a composite of both the sprite and its normal map. Here you can see how a light source reacts to the sprite.
If you set the attenuationFactor to 0, you can see the portions are the image that I beveled and raised in SpriteIlluminator.
And if you reverse the order of the sprite and its normal map, you can see the beveled image.
SpriteIlluminator is a very easy-to-use and powerful tool to help add some nice dynamic lighting effects to your games. This is obviously a very basic example of what it can do, but hopefully it’s enough to get you started in integrating it in your Corona SDK apps.