How can I implement a screen dimming effect other than changing the time zone?

classic Classic list List threaded Threaded
4 messages Options
newlife958 newlife958
Reply | Threaded
Open this post in threaded view
|

How can I implement a screen dimming effect other than changing the time zone?

How can I implement a screen dimming effect other than changing the time zone?

Adjusting the value of Ambient darkens the ground but not the sky.
I want the sky and the earth darken together.

I want to implement the effect of blurring the weather due to obstacles such as clouds or rain, can you please tell me how to implement it?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How can I implement a screen dimming effect other than changing the time zone?

Perhaps you can use a shader? Check out the glsl.earth example.
Glenn Waldron / Pelican Mapping
newlife958 newlife958
Reply | Threaded
Open this post in threaded view
|

Re: How can I implement a screen dimming effect other than changing the time zone?

thank you. glenn

When gamma control was performed as in the example above, it was confirmed that only the color of the ground was still changed as in the image below.

Could you please help me a little more on how to do this so that not only the ground but also the sky change color?
Sky is using "simple" .

     
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How can I implement a screen dimming effect other than changing the time zone?

There is no direct way to get at the atmosphere stateset. Look at SimpleSkyNode::makeAtmosphere to see what's going on there, and maybe you can figure out a way to inject your own shader code.
Glenn Waldron / Pelican Mapping