Weather Effects - Page 4

Weather Effects

Requests for features in the spring code.

Moderator: Moderators

imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Weather Effects

Post by imbaczek »

IMHO fog doesn't need a texture. RL fog doesn't have one (well, *maybe* a vertical gradient.)
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

i think it is done for now, since clouds cant be made, i tried everything
i could think of.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Weather Effects

Post by Argh »

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.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Weather Effects

Post by AF »

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.
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Re: Weather Effects

Post by Noruas »

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.
zwARREN69
Posts: 40
Joined: 12 Feb 2008, 04:55

Re: Weather Effects

Post by zwARREN69 »

Any luck with clouds?
Sheekel
Posts: 1391
Joined: 19 Apr 2005, 19:23

Re: Weather Effects

Post by Sheekel »

someone bug trepan about getting that fog shader released
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

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.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

no, it wont work, it uses some weird buggy code, so no special fog.
zwARREN69
Posts: 40
Joined: 12 Feb 2008, 04:55

Re: Weather Effects

Post by zwARREN69 »

=(
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Weather Effects

Post by Forboding Angel »

TO say that I'm impatient would be a bit of an understatement :-)

Any news/progress?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

i stopped posting stuff here, because nobody was replying, but i still work on it.
zwARREN69
Posts: 40
Joined: 12 Feb 2008, 04:55

Re: Weather Effects

Post by zwARREN69 »

any news?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: Weather Effects

Post by user »

my topic:
http://spring.clan-sy.com/phpbb/viewtop ... 23&t=14150

almost all my widget work:(some aren't listed here)

Image
Image
Image
Image
Image
Image
Image
Image
Post Reply

Return to “Feature Requests”