[TUTORIAL] Fog Of War

Hunter of Dragons!

I’ve looked at you project and there were a few things missing:

  1. A default texture for PP_FOW_Mat’s FOWTexture and LastFowTexture parameter. I just use a simple black 32x32 texture in my project (they will get updated anyways). I think that’s why your screengrab uses some sort of tile-texture, it’s probably some default texture from the engine.
  2. The FOW_Mat_Instance material must have PP_Fow_Mat as its parent. Set both of the Texture Parameter Values to a plain white texture.
  3. In your LevelInfo-blueprint construction script where you create the dynamic material instance, the parent material must be set to FOW_Mat_Instance.
  4. To make the FOW render correctly the LevelInfo-instance in the game world should have coordinates of 0,0,0.

I think that’s it, at least it seems to be working for me now. I’ve uploaded a modified version of your project here: . If it’s allright with you I’ll just leave it there and other people may download it as a starting point. If you don’t want it up however, I’ll take it down at your request. Also, out of curiosity, my Visual Studio didn’t like your project so I couldn’t open it properly, but where do you call the RegisterFowActor(AActor* Actor)-method in FogOfWarManager?