Hi. I duplicated some polys of the character from the areas where eyes and mouth must go (and uv-ed 'em apart, with their own material in the modeler: it's a 256x256 texture with the polys fitted at centre) : this 'cause I would like to have 2d texture's eyes and mouth instead of other polys, so I thought that I had to duplicate a copy of these polys in order to show upon them the eyes and the mouth (with alpha, obviuously). Then I added these polys as childs to the main character, moving by some pixel in z and y in order to avoid ghosting. So far so good, but... The issue rises now: how to change these textures when blinking and show emotions (ungry, happy atc etc)?
Replies
What id recomend is to create a texture sheet with all of your facial expresions then scroll the uv's at runtime to specific coordinates that will match the intended expresion.
If you divide your map evenly then you can do some simple division on the uv tiling properties of your shader to pull up the intended expression, otherwise you'll have to play with the tiling values in the inspector then hard code the desired values