I have painted some rocks on my terrain as a detail mesh with render mode set to 'vertex lit'. For some strange reason the rocks move as if by the wind. If I change the alpha value of healthy color and the dry color to zero the affect reduces but they still move. Setting it to render mode 'grass' and alpha again to zero stops them swaying but of course this effects the color. Any idea how I can get 'vertex lit' working without the movement?
Does the terrain engine assume that all detail meshes are supposed to be grass? I've never experienced this one!
I get the behavior in some of my projects but not other even when importing the same scene into all projects. I think there is some other project setting effecting it seeing as the scenes are identical.
It happens to me the same. :-( . I don't know why. I've got to experiment a bit more with it.
Did anyone ever get a fix for this?
post comments only as COMMENTS please, thanks
Answer by AurorasMercy
Jun 07, 2014 at 01:20 AM
I had this issue on my unity, and it turned out that when I downloaded a pack of things for my scene, unbeknownst to me, a custom shader came with it. Even though I never used this shader in my scene, just it's presence in my asset folder caused a ton of my meshes to misbehave, including the rocks moving as if by wind even on vertexlit. The simple solution after months of angst: remove the shader from the project. As soon as I did that, all my meshes behaved properly again. In my case it happened to come wit the V2 package that allows you to use normal maps on your terrain in unity. Turns out that pack also comes with a ton of other shaders. Got rid of the ones I wasnt using, and everything works again. So yeah, for this problem, I HIGHLY recommend going through the things you have imported, and making sure no custom shaders snuck their way in.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
6 People are following this question.
Wind: Detail meshes for rocks moving from wind?
Wind: Detail meshes are moved by wind back and forth, rather than swaying: how do I make them sway?
Child object jumps back and forth every frame
Why is there camera sway when using a 360 controller?
Put a detailed mesh into terrainData