Weather Effects
Moderator: Moderators
Re: Weather Effects
IMHO fog doesn't need a texture. RL fog doesn't have one (well, *maybe* a vertical gradient.)
Re: Weather Effects
so no texture in the fog, i will make some 3d clouds that will be used to block the sunlight, and make the map look better with the rain.
Re: Weather Effects
i think it is done for now, since clouds cant be made, i tried everything
i could think of.
i could think of.
Re: Weather Effects
I'll see what I can do about getting some rain sounds for you, should be very easy. Maybe some random wind noises, too?
As for clouds...
1. If there's a way to kill the shader that Spring currently uses to generate clouds, then that'd help performance.
2. A random series of quads, with several random cloudy textures with alpha blending, drawn at randomized heights (well over the camera's maxheight, which is some magic number that depends on the map size, btw), moving slowly in random directions, would probably do the trick, and look great, if the light levels on the map were turned down, so that it actually feels like a rainstorm. You'd just need to use a quad that's the cloud from underneath
You don't need giant polycount to do it, if nice enough textures are used, they'll all blend together and look great. I'll see about making some stuff for you.
As for clouds...
1. If there's a way to kill the shader that Spring currently uses to generate clouds, then that'd help performance.
2. A random series of quads, with several random cloudy textures with alpha blending, drawn at randomized heights (well over the camera's maxheight, which is some magic number that depends on the map size, btw), moving slowly in random directions, would probably do the trick, and look great, if the light levels on the map were turned down, so that it actually feels like a rainstorm. You'd just need to use a quad that's the cloud from underneath
You don't need giant polycount to do it, if nice enough textures are used, they'll all blend together and look great. I'll see about making some stuff for you.
Re: Weather Effects
i could use input-output lua lib to temporary make the cloud shader unavailable,or use lua os lib to move to a temporary folder, or make a temporary copy and delete the data.
both ways aren't very good.
glDeleteShader only works for shaders created using lua, i found it out when i was making the animated water, i tried using gl.DeleteShader, to delete the water shader and nothing happened.
wind sounds, would be really good.
rain currently is good with thunder sounds, wind+rain sound will make it even better.
the normal cloud texturing is not working for me, it draws something really weird in the square, i tried alot of options, the last one is another array of lists, it is not a very good option, because there are 10 cloud types, and more lists will take more memory, i will try it, since it is the last option.
i am making a widget that draws the collision shapes using those models i made for rain, it should be easy and fun to make.
both ways aren't very good.
glDeleteShader only works for shaders created using lua, i found it out when i was making the animated water, i tried using gl.DeleteShader, to delete the water shader and nothing happened.
wind sounds, would be really good.
rain currently is good with thunder sounds, wind+rain sound will make it even better.
the normal cloud texturing is not working for me, it draws something really weird in the square, i tried alot of options, the last one is another array of lists, it is not a very good option, because there are 10 cloud types, and more lists will take more memory, i will try it, since it is the last option.
i am making a widget that draws the collision shapes using those models i made for rain, it should be easy and fun to make.
Re: Weather Effects
moving clouds can be easily be made, but what should be their speed?
and what if they get to the map edges?,
do their rotation needs to follow the camera position?
should they be drawn in DrawWorldReflection,DrawWorldRefraction, and DrawWorldShadow?, in my opnion they should.
and what if they get to the map edges?,
do their rotation needs to follow the camera position?
should they be drawn in DrawWorldReflection,DrawWorldRefraction, and DrawWorldShadow?, in my opnion they should.
Re: Weather Effects
this was like my 10th try to make those clouds, results: nothing.
i know that it sounds really easy, and it was suposed to be, but, the problem is, the texture doesn't gets draw corectly.
not even storing the texture in "global" variables work.
i will try to use the 3d clouds to see what happens
i know that it sounds really easy, and it was suposed to be, but, the problem is, the texture doesn't gets draw corectly.
not even storing the texture in "global" variables work.
i will try to use the 3d clouds to see what happens
Re: Weather Effects
look here:
http://spring.clan-sy.com/phpbb/viewtop ... 23&t=11905
does anyone know what happened to that shader?, does anyone has a link to it?
and how did he made it?
http://spring.clan-sy.com/phpbb/viewtop ... 23&t=11905
does anyone know what happened to that shader?, does anyone has a link to it?
and how did he made it?
Re: Weather Effects
there are some ways to draw some cool fog:
that shader.
or drawing 2d quads with fog textures.
what happened to that fog shader?
the last option would cause lag.
that shader.
or drawing 2d quads with fog textures.
what happened to that fog shader?
the last option would cause lag.
Re: Weather Effects
When clouds move in real life its usually because they're being blown by the wind.
Thus the wind strength on a map will determine the cloud speed.
Thus the wind strength on a map will determine the cloud speed.
Re: Weather Effects
If you can't find the fog, release the rain gadget so it wont be vapor, itd be cool to get this integrated into mod options.
Re: Weather Effects
someone bug trepan about getting that fog shader released
Re: Weather Effects
look at the fog topic, the screens are back.
and it looks amazing, it will look good with rain, i would have to just make a few changes, so that the fog gets less density closer to the camera.
and it looks amazing, it will look good with rain, i would have to just make a few changes, so that the fog gets less density closer to the camera.
Re: Weather Effects
no, it wont work, it uses some weird buggy code, so no special fog.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Weather Effects
TO say that I'm impatient would be a bit of an understatement 
Any news/progress?

Any news/progress?
Re: Weather Effects
i stopped posting stuff here, because nobody was replying, but i still work on it.
Re: Weather Effects
my topic:
http://spring.clan-sy.com/phpbb/viewtop ... 23&t=14150
almost all my widget work:(some aren't listed here)








http://spring.clan-sy.com/phpbb/viewtop ... 23&t=14150
almost all my widget work:(some aren't listed here)