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"

Fog of War for Landscape in Multiplayer

Hello, I found a way to create a Dynamic Texture for Fog Oа War, for that purpose I can use actor like that:

 class WARGAME_API ARenderFogOfWar : public AActor
     // Sets default values for this actor's properties
     // Called when the game starts or when spawned
     virtual void BeginPlay() override;
 //Our dynamically updated texture
     UPROPERTY(VisibleAnywhere, BlueprintRead, Category = "Fog of War")
     UTexture2D* FOWTexture;
     // Material we needs to set dynamic texture
     UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Fog of War")
     UMaterialInstance* MaterialInstance;
     // Called every frame
     virtual void Tick(float DeltaTime) override;    

I can create this actor for each player, and unique texture and I can set dynamic texture for material instance, but I am not sure that landscape and material instance for it is unique for each player controller.

Can someone help me find a proper way for my goal?

Product Version: UE 4.20
more ▼

asked Mar 24 '19 at 11:14 AM in Rendering

avatar image

30 3 4 6

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

1 answer: sort voted first

Dynamic Instance Material + Dynamic Texture will do the work

more ▼

answered May 07 '19 at 12:15 PM

avatar image

30 3 4 6

(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