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"

How do i change material on terrain surrounding an actor??

I am creating an ecology simulator/rts and i want it so when i place down some plants (actors) that the terrain underneath them within a certain radius changes to a grassy texture? As a way of showing different environments. How would i achieve this in blueprints??

Product Version: UE 4.21
more ▼

asked Dec 04 '18 at 11:56 PM in Blueprint Scripting

avatar image

6 1 1

avatar image ThompsonN13 Dec 05 '18 at 01:26 AM

will the different material have any effect in game? if not you could just use a decal which is probably the simplest solution.

avatar image rconnor410 Dec 05 '18 at 01:50 AM

I was planning on it tiling is the only thing, i want it to look nice. A load lf decals for a grass texture in my mind just wouldnt look pleasant? I also want each environment to have different effects eventually? But for now i just need this to work

avatar image Joost Dec 05 '18 at 07:39 AM

Check out this video: https://youtu.be/67z5u8ZcEcw

avatar image Tuerer Dec 05 '18 at 08:01 AM

Wouldn't tiling be almost the same as applying decals? You can use normal maps for decal materials as well, if I'm not mistaken. It's still be a flat texture. If you look up some tutorials, you can create a material based on Fresnel with irregular edges, and the decal will look different each time.

If you don't chase performance and want it to look as nice as it gets, you can randomly spawn a number of objets on the plane within the given radius, be that grass or stones or anything you like.

Alternatively, you can create a particle emitter that generates meshes; use sphere location with the given radius for spawning, and limit Z coordinate to zero — this way particles will only be spawned on a plane, and you can even make them spawn not altogether, but within 2-3 seconds, which will make a better effect.

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

0 answers: sort voted first
Be the first one to answer this question
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