Update I’m also working on a customizable Day/Night cycle that will work with the time of day. here is the → WIP <–**
** It works with a 24h system that can be sped up or down. Differnt tints can be added at different points of the day. The clouds are not part of the skybox!
This package will be released to be used in your Unity Projects as a free drag and drop prefab when it is done.
I tried to make a dynamic weather system for First Person Games in Unity.
This is bad Weather: Weplayer here The slider controls the weather[/size] I can’t seem to find anywhere if you can control the wind settings for trees and grass with scripting, anyone want to help on that?
There must be a way but it isn’t documented, so unless someone already found it OR you try guessing/reflecting OR if a Unity dev will tell you, I don’t think you’ll find the way to change wind speed
I tried to catch the value of Terrain.terrainData.wavingGrassSpeed inl a variable but Unity editor crashes on me when I run the script.
I hope this will be included in Unity 3.
Did you script everything? I mean, it is difficult to setup an animation for the sun in order to do a cycle?
Sorry but has been a while since I opened Unity, now I’m building a huge set in Softimage and I haven’t tried anything, so any help will be appreciate
I can get the shader to work, but it looks crap with direct lighting.
An ideal shader would be a grass shader that adapts to the light but can shade the grass on both sides.
A bit like the vegetation-leaves shader.
@Nick3D the scripting wasn’t that hard. I think most of the scripting is finished.
Here is a package.
If you want to add the TOD to your scene just drag the prefab in your scene and assign skyboxmaterial1 as your skybox.
Mind this is a work in progress, I haven’t had the time to make it very user friendly.
With all of the experience from making this ToD I’m thinking of redoing it and making it a lot better.