@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
@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.