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 » Sun Aug 05, 2012 12:24 pm

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: 4682
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Water

Post by blast » Sun Aug 05, 2012 12:29 pm

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 » Sun Aug 05, 2012 12:37 pm

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 » Sun Aug 05, 2012 6:31 pm

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: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Water

Post by JeffM » Sun Aug 05, 2012 7:04 pm

It is called Polygon Winding and it is a standard concept in 3d graphics when dealing with Back-face Culling

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 » Mon Aug 06, 2012 9:43 am

Thanks for your help guys.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests