Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / How do you create water affects?

Author
Message
MjG0001
13
Years of Service
User Offline
Joined: 19th Jan 2011
Location: U.S.A. - Indiana - Cedar Lake
Posted: 3rd Feb 2011 05:58 Edited at: 3rd Feb 2011 05:59
The Affect:

How do you create a water affect in DBP? In World of Warcraft characters can walk into water, and you can see the water move in ripples away from them.

I am speculating that this uses a ghosted matrix with animated water texture, specular on, and that the matrix has many 'verticies' that can be manipulated by a 'vertex shader' to create the ripple affect when a character walks into it.

What about spouts, waterfalls, and splashes? Probably uses some particle affects I'm guessing.

The Ripple Algorithm:

I'm speculating that the ripple affect is a function of sine inside a dampening function, and that the range of the ripple is determined by the velocity of the character.

1.) range = character velocity * ratio
2.) for dampening = 1 to range
3.) (sin(f)*range)/dampening
4.) next dampening

The Question:

How do you create your water affects?
Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 3rd Feb 2011 06:22
wrong section. I know its 3d chat, but this is a shader problem. Try Evolveds Water shaders, and then once you have basic water down with that, you could try vertex manipulation, or you could do a simple sprite that appears to splash or ripple.

MjG0001
13
Years of Service
User Offline
Joined: 19th Jan 2011
Location: U.S.A. - Indiana - Cedar Lake
Posted: 3rd Feb 2011 08:34
Evolveds Water shaders? What & where is that? Is that a code block, a plugin, what?

Thanks
Master Man Of Justice
16
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 3rd Feb 2011 09:10
Downloads:http://www.evolved-software.com/shaders/refractionreflection

Shader Thread:http://forum.thegamecreators.com/?m=forum_view&b=8&t=79849&p=0

Evolved's downloads come with demos.
Its not code or plugin, its an .fx file(shader).

MjG0001
13
Years of Service
User Offline
Joined: 19th Jan 2011
Location: U.S.A. - Indiana - Cedar Lake
Posted: 3rd Feb 2011 10:30
Extremely helpful, thank you.

Login to post a reply

Server time is: 2024-11-24 07:21:02
Your offset time is: 2024-11-24 07:21:02