Procedural-Landmass-Generation icon indicating copy to clipboard operation
Procedural-Landmass-Generation copied to clipboard

Mesh is black by default

Open MrPhantistic opened this issue 4 years ago • 2 comments

First of all, Sebastian great tutorials! I was experimenting and I found out that the mesh is always black scene or game until i change a value(f.e if octaves = 5 if change to 6 then it fixes). but the problem is i cant just change one of these values while you are playing. Also when you stop playing then it goes back to black until you do the same thing.

Any help is appreciated, Thanks

MrPhantistic avatar Jun 18 '21 09:06 MrPhantistic

So you have to generate the terrain when the game starts for one. And black mesh also mean you probably don't have a directional light in your project. So to fix the issue make it generate on start and put in a light and it should work. Hope this helps! :)

Gryph2021 avatar Oct 19 '21 00:10 Gryph2021

Probably a little late here, but I also had the same problem and I fixed it by simply calling the DrawMapInEdition function inside of the Start function in the MapGenerator script

SajawalHassan avatar Oct 16 '22 06:10 SajawalHassan