Here I am presenting you a with a library for sky rendering, which includes rendering of skies, clouds, rainbows, stars, etc.
I had planned to release this like two months ago, yet there were slight things which could have been improved with respect to the integration with jme.
Well, for starters, here is a link to the git page, with the project. To use it download the project, and add it as a reference, along with the assets.
@The_Leo thanks so much for your contribution.
Going to take a look at it soon, I will use this cool sky library in my game instead of an static skybox .
@boon yes, the shaders could use some cleanup… (although it is running for me fine even with opengl 3.0+, do you get an error? )when I was developing the library I used deffered and openGL 3.0+, now in this library, I think openGL 2.0 requirement is enough. So I might change that as well. (On second though, I’m using texelFetch somewhere)
PS: I’ve added the use of Compat.glsl
Do you have a source for what you based your clouds on? Like a paper on the algorithm or something. It looks similar to one I read but I can’t remember the reference anymore.
@Ali_RS I’ve updated the TestSky, to include moving clouds with keys (1,2), moving day/sun (3,4).
I think its too early to put it on maven, since atm there’s so many changes that can happen.
@Ali_RS does running test.theleo.sevensky.TestSky result in the same black pixels? If not could you provide a minimal test case of the issue?
It looks like an issue with the clouds.
Regarding the code for the video, as I was creating the system I’ve used deffered rendering, then I restructured the code for the library for jME, so it’s not really helpful to share. If you haven’t run TestSky.java try that, otherwise feel free to ask.
Actually it’s about moving clouds. I know in test sky you added key 1/2 which only offset the clouds, but in the video you posted the clouds are changing their shapes while being moved.
How can I reach the same result ?
@Ali_RS I’m glad the black pixels go away, thou its still an issue. Unfortunately, I do not have the issue on my laptop. Thank’s for the hint thou, that it has to do something with the sun position.
Regarding animating clouds: The clouds are based on weather map. This can be either a 2D top down texture painted by an artist, or automatically generated (default). Animation is obtained by modifying the weather map in any way you like.
The automatically generated weather map supports some simple modification, eg rotate, or move along a vector field (2D image). Hold key 5 to rotate the clouds. Also you can create your own weather map, check out the Clouds.createTestWeatherMap function. For more info about how the weather map looks/how vector field looks check the Clouds section of the dissertation.