Water

General talk about the map making process.
Post Reply
Foooey
Private First Class
Private First Class
Posts: 19
Joined: Mon Sep 07, 2009 3:52 pm
Location: Leeds, UK

Water

Post by Foooey »

Hi,

Seen this in example of using water in the wiki

waterLevel
name example_waterlevel
height -1.0
end

question is how do define its position and size ?

thanks
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Water

Post by blast »

With the waterLevel object, you can only define the height that the water shows up. Additionally, touching the water will be fatal. If you want "water" in specific areas, then you need to do it yourself with a mesh or other object and then just use the water texture.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
Foooey
Private First Class
Private First Class
Posts: 19
Joined: Mon Sep 07, 2009 3:52 pm
Location: Leeds, UK

Re: Water

Post by Foooey »

thank you blast. will look at using mesh objects.
User avatar
Tanx
Private First Class
Private First Class
Posts: 125
Joined: Sat Mar 22, 2008 11:14 pm

Re: Water

Post by Tanx »

also if you want to make the water realistic (moving) you'll need to look into textureMatrix if you don't already know about it.

http://wiki.bzflag.org/TextureMatrix

also the wiki doesn't mention the fact that in faces they face the side that they are specified in a counter clockwise manner (the vertices that it). I never figured out a great way to explain this otherwise I would've added it already...
known as: Tanx, Eoncho, ckw.
Bzflag player since 2001.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Water

Post by JeffM »

It is called Polygon Winding and it is a standard concept in 3d graphics when dealing with Back-face Culling
ImageJeffM
Foooey
Private First Class
Private First Class
Posts: 19
Joined: Mon Sep 07, 2009 3:52 pm
Location: Leeds, UK

Re: Water

Post by Foooey »

Thanks for your help guys.
Post Reply