Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Is there a way to add a texture to a specific position on material? (ie. bullet hole or wave if you stepped in water)


Is it possible to add a texture to a specific location on a material? For example a wave if you step in the water or a bullet hole in a wall?

And if it is possible, how?

Product Version: Not Selected
more ▼

asked Jul 06 '14 at 07:54 PM in Using UE4

avatar image

256 20 15 23

avatar image RimmyD Jul 07 '14 at 12:35 AM

UE3 used a "hitMask" to do this. Effectively taking the point and converting that to UV space for a texture parameter in your material. I do not think that exists in UE4 but if you are a programmer it would be a place to start if you wanted to look into what they did before.

Recognize that this system would limit the effect to the edges of the mesh it hit. Decals will overlap multiple objects which can be nice. The hitmasks were very nice since decals on deforming meshes lead to ugliness.

avatar image Skullwing Jul 07 '14 at 01:45 PM

Thanks for your answer! The problem with the decals is, that I had problems spawning them with the built in system and if I spawn them as a class and DecalActor the won't disappear...aaand at the moment they don't spawn on my water...so I guess I will use decals for bullet holes and so on and a particle effect for water waves...

avatar image RimmyD Jul 07 '14 at 04:46 PM

Yeah you may definitely have some cleanup to do on your decals. I agree that particles would be best for water in this situation.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

A bullet hole on a wall could be accomplished by using a decal - a texture that is projected onto a surface. Here's a good tutorial on a blood spatter decal: https://www.youtube.com/watch?v=v-1H6EGnOas

A water ripple/wave could be done using a decal with a normal map to create the illusion of a raised wave. If you were to have it scale up gradually (and fade out) it would look like the wave was 'expanding' as things do when dropped into water. If you need it to be contained in a single material, you'd have to do something with UVs to position the texture. I'm not sure how you'd go about doing that, I think a decal would be simpler. Hope this helps!

more ▼

answered Jul 06 '14 at 08:06 PM

avatar image

26 1 2 5

avatar image Skullwing Jul 06 '14 at 08:40 PM

I am already working with decals, I was just curious if there was another way to do this. Thanks for your answer!

avatar image The Cheese Dragon Jul 23 '14 at 10:02 AM

I cant get decals to work on my water, it seems like you cant place decals on translucent materials, is there a way I can get decals to work in this situation? if not does anyone know how to do this in the material?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I want to make ripples on my water as you go through it and I can distort the water where you are using spheremask but cant work out how to make multiple textures on the water all rippling where you were previously as well as where you are now.

If I were to use decals how would I get them to not effect the ground too? I have other types of decal that I want to affect the ground so I cant just unchecked the receive decal button.

more ▼

answered Jul 22 '14 at 01:14 PM

avatar image

The Cheese Dragon
191 8 11 34

avatar image Skullwing Nov 03 '14 at 02:53 PM

You could try the Fluid Surface Plugin.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

In UE3 you could exclude/include specific meshes in your decal but this appears to not exist anymore. I don't know if this is an over-site or maybe some artifact of being deferred now.

The best i could recommend is creating a water Surface Type in your Project Settings and applying a Physical Material with that Surface Type to your water areas. This way you can trace, get the physical material surface type and only spawn the decal if it matches.

This would still give you ripple edges on land where a boundary occurs but you could increase the size of your trace (ex: Box Trace) to the size of a ripple and not drop a decal if it hits land maybe.

more ▼

answered Jul 23 '14 at 01:42 AM

avatar image

2.6k 98 16 97

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question