Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh is black by default #35

Open
MrPhantistic opened this issue Jun 18, 2021 · 2 comments
Open

Mesh is black by default #35

MrPhantistic opened this issue Jun 18, 2021 · 2 comments

Comments

@MrPhantistic
Copy link

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

@Gryph2021
Copy link

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! :)

@SajawalHassan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants