Page 1 of 1

water effect.

Posted: 12 Feb 2008, 12:09
by Gota
Is it possible to make waves on the shores of a map?If it is how stressful will it be on the system?and can it come with the map itself?

Re: water effect.

Posted: 12 Feb 2008, 12:12
by user
i made an animated water widget, for me it lags when there are alot of units.

it could come with the map, if i made it work in lua gaia.

waves would be really hard to make in lua.

Re: water effect.

Posted: 12 Feb 2008, 16:38
by Gota
can you maybe post a short vid or a picture of that effect?
by the way does anyone know how to create this :
Image
in gimp?

Re: water effect.

Posted: 12 Feb 2008, 16:45
by user
i will post a screen of how it looks.

the screen will show different textures being used.

it is not much, all it does is rendering water with a texture(any texture) , and makes it move left, right, up, but it looks cool.

Re: water effect.

Posted: 12 Feb 2008, 16:58
by Gota
how aobut something like this?
http://www.youtube.com/watch?v=P5PF3bNSPC4

Re: water effect.

Posted: 12 Feb 2008, 17:03
by user
that background on that video appears everywhere.

it looks cool.

the screenshot of the widget is almost done, i am getting screens of 4 or more different textures.

Re: water effect.

Posted: 12 Feb 2008, 17:10
by rattle
Some specularity would be cool for all of us who can't use dynamic water.

Re: water effect.

Posted: 12 Feb 2008, 17:21
by user
i once tried to make reflective+<the other options> water, shadows, and
every other cool effect that requires special hardware, in lua, without
using shaders and any special functions, to make it work for everyone, i managed to get animated water and shadows working.

the animated water can use different textures, i will post a screen of water using a metal texture later.

the shadows are really cool, they rotate and rescale, using the sun position.

the other things that i wanted to make were: reflective water ,rain(almost done), waves, and cool effect for units entering water, a really cool lua clouds renderer, and other things i dont remember.

Re: water effect.

Posted: 12 Feb 2008, 17:54
by user
here it is, lowered quality to lower filesize.

it could be made to come in the map, by making it lua gaia.

that water moves too, it is animated water.
other textures can be used.

Image

Re: water effect.

Posted: 12 Feb 2008, 18:21
by Argh
Cool! Can people easily designate where the quads are generated? We could do rivers...

Re: water effect.

Posted: 12 Feb 2008, 18:28
by user
you might be interested in the shadow widget that i said that i made, since you have been trying to make blob shadow rotate and wrap around the units.

with a bit of changes, maybe it could be possible, like instead of using 1024x1024 quads with 2048x2048 textures, using 256 or 512 quads with small textures.

maybe i should make a new topic on lua scripts, so we can talk about these cool widgets.

Re: water effect.

Posted: 12 Feb 2008, 19:55
by user
updated the image, to show more different textures and 256x256 quads.

256x256 quads are faster to render than 1024x1024, and they can be used to make special areas, like certain places are rivers, others have a different color , or textures.

Re: water effect.

Posted: 12 Feb 2008, 20:49
by Gota
User.
Can the compiler be made to allow surface reflectivnes?
For example if i have a metal map and i want that metal to be shiny,to have the feel of glass instead of the earthy feel maps have now.

Re: water effect.

Posted: 12 Feb 2008, 21:30
by user
i would like to have it too, transparent maps and reflective map surfaces, would be really cool, but it doesnt works, spring doesnt supports dxt3 and 5 maps(this means no transparency), if think sm3 has it, sm3 maps are buggy and they lag alot, sm3 doesnt works for me.

there is a new lua gl function that was created recently, the stencil buffer, it allows creation of reflective surfaces and textures, or even shadows in lua, it only works for those who have support for the stencil buffer(OpenGL 1.4 or later, i think).

i made a copy of the water widget that uses it, it doesnt crashes the game, so i think it is working.

i have been (trying to) making reflections in lua without the stencil buffer, and without any shaders, it can be made using hacks like copying a unit then rotating it, but it would look really weird in the map edges, or getting the unit vertex data and doing some stuff.