-
Notifications
You must be signed in to change notification settings - Fork 317
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 Filter of Terrain Mesh is not set in Play Mode #50
Comments
I have had this issue in the past. I do not remember how I fixed it but I can try to help. You can try regenerating the mesh at runtime with HandleGameModeGeneration(), it's in the Celestial Body Generator of the planet. Another possible workaround is changing LOD to index 1, then 0 again. This can also be done through script, with the SetLOD() function. This might make the mesh show again.
Celestial body settings including seeds should not change on their own unless you hit randomise or obviously alter them yourself. You can note down a specific shape or shading seed for later use, alternatively make a copy of the celestial body settings and everything that goes along with it such as oceans, shading, shape etc. |
For all the other guys which suffer from the same error:
} However, I have to trigger the bool "update" per mouse click. Otherwise, the terrain will still not get generated. Also, thanks for your advise about saving the planets! |
You don't have to have it in Update(). You can do it in the Start() function, when the object that has the script is loaded. If you have multiple planets you can make a loop that loops through all CelestialBodyGenerators and resets their LOD. Something like this:
|
I think this happens because the Since we don't want the test light to deactivate anyway (it hides the planet and the atmosphere), I recommand just commenting this line. |
Hello together!
I know, Issue#38 is pretty similar to my request, however I was not satisfied with the answer there.
I tried to debug the problem, however I was not able to find the correct solution for myself.
In Edit Mode, I can generate different planets and I can edit them in terms of shape and shading (Picture 1). Sadly, if i press Play Mode, the terrain filter is not set in the inspector(picture 2). However, if i mark the terrain mesh within the inspector the shape of the terrain is drawn(picture 3). This means, that there is a terrain shape but the shading does not work correctly, right?
I tried to fix this but I did not get it right.
Additionally, I am curious how to save a planet if i am satisfied with it?
I hope someone can help me :)
The text was updated successfully, but these errors were encountered: