Gradient material on Cylinder
I'm trying to achieve this kind of color on a cylinder mesh:
But when I apply it, in the game world it has this colored top:
Any idea how to fix this?
asked Nov 20 '15 at 08:09 PM in Using UE4
If you want an solution independent of the Mesh UV's you could try to go for a world/object based gradient. I recently needed similar on a candle/cylinder like object to fake the subsurface scattering of candle light. I'm not saying this is the best approach and it for sure can be optimised improved. But this will give you a gradient like you want independent of Mesh uv's. You can adjust position of gradient, feathering etc with the scalar parameters. There are more ways to approach this than the one provided in the image. Thought the node set up below does exactly what you want.
I'm a bit rusty at the moment so I'm sorry if I'm not that helpful. Have you tried making a cylinder in a 3d software and UV unwrapped it? You could use those UVs to make a texture to mask the top face off of you cylinder, or just add two different materials for the mesh, one for the bottom (however you want the bottom face to appear) and top faces and one for the rest of the model. Make the first material just a simple red color and whatever opacity you want on that and the second material just like you have on your original material. This way you won't get the unwanted effect on your top face. I hope this was helpful!:)
Follow this question
Once you sign in you will be able to subscribe for any updates here