Add Texture To Material At Point
I would like to allow for some super basic character customization in my game. I would like to be able to choose from different eyes and mouth. The eyes and mouths will just be images/textures. Instead of making a different texture for every permutation (which would be silly), I would like to be able to create a material instance and set the textures of selected eyes and mouth via blueprint.
Can I take the texture as a 2d texture parameter and add the texture at a set x,y that won't repeat? Of course I'll need to add eyes, mouth and maybe more. I have tried adding, multiplying, lerping and much more on texture nodes with no luck.
I wasn't sure if this belongs in Blueprints or Rendering as it is a question regarding materials. I've been googling around all night and I'm not sure if I should be using a mask, painting or something completely different.
I am not great with material nodes and I really need to learn more. Thanks so much for the help in advance :).
asked May 02 '17 at 11:05 AM in Blueprint Scripting
Ok what you want to do can get pretty complex pretty fast but, here is some answers for you :
shader : http://imgur.com/kyeaEVT
Blueprint : http://imgur.com/FZcrERt
Now for the mouth its going to be a bit trickier, you will need another texture and then mask the area of the mouth on your UV so that this new texture doesn't affect the whole body. For the blueprint its the same logic as the eyes, you just change the alternative mouth in blueprint, the base texture and mask doesn't need to change unless you have very different face textures.
Now if you want to actually be able to move the eye and mouth position and then save those new position, you need to look for morph target, but its much more advance.
Hope this helped.
Follow this question
Once you sign in you will be able to subscribe for any updates here