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.

DarkBASIC Discussion / Making Water

Author
Message
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 1st Aug 2005 20:17
What do you think is the best way to do water?

--------------
Uncle Sam
r333
20
Years of Service
User Offline
Joined: 18th Jul 2005
Location:
Posted: 1st Aug 2005 22:30
Whenever I did outdoor enviroments, I used MatEdit, and textured part of the enviroment with a water texture, but you couldn't swim or anything. I never had a need for swimming. Do you want the water to be interactive, or do you want pretty landscapes?

Thanks!(for..whatever it is you did...)
blanky
21
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 1st Aug 2005 23:15
Have a look at TDK's Waterfall Demo, and his particle engine (if you're after animated water).

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!
Lavitz
21
Years of Service
User Offline
Joined: 16th Jan 2005
Location: Raddix Studio
Posted: 2nd Aug 2005 00:44
get one of the programs for creating landscapes and see if it'll help you in that area.

Treetops and Timber!
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 01:50
Well, interactive water would be nice, and, the reason why I put this topic up was because I saw his waterfall example, and was wondering if there was an easy way to make the water interactive, 'cause mine needs to be, unlike his.

Woah , run-on sentence!

--------------
Uncle Sam
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 2nd Aug 2005 02:33
You could try water blocks. Make a box, texture it with your water texture (if it's not a PNG with alpha channel, then use GHOST OBJECT) and scroll it as necessary for effects. Scale and position it so that it fits approximately in the area you want a body of water, then turn culling off. You can add particle effects and all that fun stuff afterward, as well as swimming physics.
Because you can look from the inside out of the box when it's not culled whenever the camera is in the box and you're looking out everything will have the bluish (or whatever color your texture is) tinge. The problem of course, it that you'll look down and probably will see the sea floor on blue-ified. Use a textured plain in front of the camera, or any other camera filter effects you can think of.

Be sure to add plenty sound effects, and maybe air bubble particles for when the character is underwater for too long or whatever.

If you're talking about interactive water where it splashes and conforms around you, then all you can probably do is test for collision with the moving water and add lots of fun particles.


I'm going to eat you!
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 04:45 Edited at: 2nd Aug 2005 04:46
Thanx a whole lot, that really helped!

I'm planning on using TDK's particle particle program for my particles.

--------------
Uncle Sam
master programmer
21
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 2nd Aug 2005 04:51
View the JetSki demo that comes with DB Classic. It will let you do waves and scaping. I think the best way is just making a custom one with phsyics, but I've never really tried.

__________________________________________
<<<<<Check out my sites>>>>>
www.rhettgames.tk | www.slayerbattletanks.tk
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 05:56
I just want like clear water, and the JetSki one isn't.

--------------
Uncle Sam
BearCDPOLD
22
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 2nd Aug 2005 07:20
If you're looking at a large, fairly symmetrical/round/rectangular body of water and you want some choppy waves, you could use the matrix method in JetSki, just make the texture a .png with alpha channel.


I'm going to eat you!
Kelebrindae
22
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 2nd Aug 2005 11:19 Edited at: 2nd Aug 2005 11:20
On this page, there's a small piece of code that uses a matrix to simulate water:

http://keleb.free.fr/codecorner/snippets-en.htm

It's not as beautiful as TDK's demo (far from it), but it's aimed at low-spec PCs; it may be useful...

Ideas: memories of things which did not occur yet...
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Aug 2005 17:34
I've also posted the water code from the waterfall demo in the demo thread now too if that's of any interest...

TDK_Man
Uncle Sam
20
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 2nd Aug 2005 19:44
Thanx everyone for your help.

--------------
Uncle Sam

Login to post a reply

Server time is: 2026-07-09 03:19:47
Your offset time is: 2026-07-09 03:19:47