I am newbie in the 3D world programming and i have been worked on Skydome with dynamics skylight (“A practical Analytic Model for Daylight” by A. J. Preetham, Peter Shirley, Brian Smits (University of Utah).
Since "time" doesn't change that fast, you don't have to update the colors every frame in the render() method. That should give you a nice performance boost.
does it have a way to do clouds I saw Q4 map that utilised inner domes to render clouds he used textures and alpha blending I think didn't dig to much into it.
New to jMonkey, I tried to attahced SkyDome to a very large gamefield.
Then I had a bug I thought was misconfiguration but after lost of lost time (well, not so lost, since I had to get into the inside), I figured out it is in the render() method of SkyDome:
- when you move your camera far away for (0,0,0), the sun isn't any more in the halo in the sky.
I corrected it but taking into account the camera position when calculating the sun direction for gamma var: