water effect.

water effect.

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

water effect.

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

Re: water effect.

Post 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.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: water effect.

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

Re: water effect.

Post 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.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: water effect.

Post by Gota »

how aobut something like this?
http://www.youtube.com/watch?v=P5PF3bNSPC4
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: water effect.

Post 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.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: water effect.

Post by rattle »

Some specularity would be cool for all of us who can't use dynamic water.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: water effect.

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

Re: water effect.

Post 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
Attachments
luaWaterRenderer.jpg
(113.19 KiB) Downloaded 511 times
Last edited by user on 12 Feb 2008, 19:51, edited 1 time in total.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: water effect.

Post by Argh »

Cool! Can people easily designate where the quads are generated? We could do rivers...
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: water effect.

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

Re: water effect.

Post 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.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: water effect.

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

Re: water effect.

Post 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.
Post Reply

Return to “Map Creation”