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.

Code Snippets / Water effect

Author
Message
kevil
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 20th Mar 2004 18:07
Never knew a water effect could be this easy. Click the mouse to drag through the water.



Kevil
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 20th Mar 2004 19:07
Holy cow!

Nice one Kevil, this is one that'll prove very very valuable.



A book? I hate book. Book is stupid.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 20th Mar 2004 19:54
sweeeeet that is seriouusly cool, do you think that if you mapped the image onto a matrix it would look any good?

In the beginning, the universe was created...
This made alot of people very angry and it has been widely regarded as a bad idea...
Visit http://redeye.dbspot.com
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 20th Mar 2004 21:01
nice
kevil
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 21st Mar 2004 01:24
Red_eye: The code first calculates the height of the surface, and then calculates refraction based on that. So if you want to do this on a matrix, you can achieve the affect by setting the height according to the calculated height (which would be faster), but you won't be able to do proper refraction on matrix like this.

Kevil
B1rD
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 21st Mar 2004 18:46
could u also make this one working for DBC?
it looks really cool
Skybax
20
Years of Service
User Offline
Joined: 20th May 2003
Location: United States
Posted: 23rd Mar 2004 03:02
Wow...cool code! Alas, I am a DBC user and the code will not work for me.....

There is no king who has not had a slave among his ancestors, and no slave who has not had a king among his

Ph33r the Ringwraiths
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 28th Mar 2004 03:19
hello huge much beautiful one, I did not know that darck basic for he could make also this without DLL external. hello thanks
darkdomy
21
Years of Service
User Offline
Joined: 6th Apr 2003
Location: Italy
Posted: 28th Mar 2004 03:22
hello if possibly someone axes an effect example flame much realistic one, type heated text, etc.

help!!! post all samples

hello thanks
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 30th Mar 2004 10:58
I get the following error???



Using DBPro 1.051
kevil
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 30th Mar 2004 16:40
Hmm, strange. Shouldn't happen. Maybe you're trying to load your own image, that could be the problem.

Kevil
kidsa
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: MA,usa
Posted: 30th Mar 2004 23:16
*adr=memblock dword(1,pos(x2,y2))+100
i get an error here.

Login to post a reply

Server time is: 2024-05-13 05:51:46
Your offset time is: 2024-05-13 05:51:46