Waterfalls

Tutorial collection, comprehensive listings on main site.

Waterfalls

Postby Tutorial on Mon Mar 07, 2005 5:45 pm

category
General Half-Life 2/Effects

description
It takes a bit of work but waterfalls are possible.

keywords
water, rain, fall, waterfall, river.

This tutorial covers building and setting up a river and falls system. I have included the map for you to rip apart and a crappy water texture I made(you'll see if you compile and play the map). I am not covering water textures in depth as it involves alpha channels. This is an advanced tut so I am assuming you understand alpha channels. There are several tutorials on the net for that. The falls.vmt and falls.vft are both included in the falls.zip. You can simply edit the falls.vmt and replace with your texture name and rename the file. If there is no alpha channel in the texture, you cannot see into the water, but it will get you by for now. In the .vmt you can set the frame rate and scroll speed and direction.* i have not test with a single frame.

"animatedtextureframerate" 20.00 <- for animated materials.
"texturescrollrate" .025 <- The speed for the scroll.
"texturescrollangle" 45.00 <- Change this match the angle of your river(I have not tested but you will need to setup serveral files with the same texture file .vft but each one will need a new .vmt file to set the angle, I recommend renaming them water45,water90, water270, for the angles which it will flow.) My texture scroll angle for this map is set to 270.

If you use the water that you find in the game/editor it will not look right and just set on the falls. The texture I created for the falls effect is not water like in the game, there is no bump mapping and no reflections. I have not fully figured out what the format of what the texture needs (open water_normal with GCFscape to see a real water setup in the .vmt file) The vmt I copied to get this work was the water_dx70_beneath. If you use a real water texture this is what you see from below because there can be no reflections. I choose to animate my falls texture too and this also is not covered here as there are tuts on the net for this. I just got the whole texture working together and have not had the time to complete a nice looking falls texture yet.


Step one.
Setup your room with a channel for the water in the middle. Set one part higher for the falls.

Image

Step two.
You will need to offset your brushes to fit the water.

Image

Step three.
You will need 3 brushes for the water in this sample. The top and bottom and the part that goes down. Don't over lap water into water. You can extend the water in the regular brushes, just don't extend outside you map or it will leak(compiler error with entities, not the water)

Image

I suggest covering the whole brush with the nodraw texture first, then apply the water on top. Set you finished bushes into the channel. Now you have your water that looks like it is flowing.

Step four -optional.
If your careful, you can clip off the front of the falls to lose the hard 90 degree angle.

Image

Step 5.
Make 3 brushes to the fill the channel again the same size and shape of the original water brushes (before clipping, the push can extend outside the water if needed). Cover the whole brush with the nodraw texture. With the brush selected, click the to entity button and set to trigger_push.

Step 6.
Setup up the properties in the trigger_push. For this example you only need to set the push direction and speed. I found some figures.(edited) 100 will push the player but they can swim aginst the current, 200 will make the player struggle giving him hope of making it, but won't, +300 and the player can not re-enter against it and will be pushed regardless. *Note- do not set your trigger_push to 400, down and place against the bottom of a regular brush or you force the player to drown, you will pinned and cannot move out.

Image

Also you will need to tell the trigger_push, what to push. While in the properties select the flags tab. For the example I used everything.

Image

Step 7 -optional.
If you want group your water and push brushes and lift them out of the channel. Use the displacement tool to round out the river bed and surrounding area(the displacement tool is not covered in this tutorial). If you go to low you will need to stretch your water to reach past those areas. This applies to the sides too, just stretch to fill in the holes. Remember the water can extend into the brush, just not out side the map.

Image

Step 8.
Compile and test.

Image


*If you can not animate then use single simple texture and set the scroll speed, but it will look like conveyor belt.
*You can set the trigger_push to odd angles. For example you can make a water pool that carries your around in circles, or snaky or steep river.
*You can use the any of the water textures on ALL sides of a brush. I have even made floating water spheres. That you only can texture the top of a water brush is a myth.
*With the trigger_push to set to push other objects you should be able to set up a raft or a log ride.
*Watch out using displacement maps that have large bumps sticking out to high or at steep angles as the player will get pinched in between push and bottom. Softer more flowing angles work best.
*You can apply displacements maps to the water bush to rough it up, like a rushing river, but there will be no water underneath, you can use for decorational use.
*Displacement maps on the trigger_push will cause crashing. Be careful not to select one by mistake when using.

Reasons why a water won't work- bad material, water brush out side of the map, leaks, displacements, tied to an entity, improper texturing.

Related:
Example Map


slayera
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby RaccoonKing on Thu Jun 02, 2005 9:05 pm

Cool.
RaccoonKing
Been Here A While
Been Here A While
 
Joined: Wed May 18, 2005 2:15 pm

Postby Spas12 on Thu Jun 02, 2005 9:11 pm

You do realize this is a tutoiral dont you. :shock:
Past Treyarch Level Designer

Portfolio
Spas12
Veteran
Veteran
 
Joined: Thu Mar 31, 2005 3:21 pm
Location: trapped in level-design factory, send help

Postby RaccoonKing on Fri Jun 03, 2005 12:43 am

Is.. it bad to talk in class?

His method worked. I was complimenting him.
RaccoonKing
Been Here A While
Been Here A While
 
Joined: Wed May 18, 2005 2:15 pm

Postby infest on Thu Jun 23, 2005 6:49 pm

sorry to revive, but this is related and there isn't much info about it anywhere else. I tested some env_splash 'es for my waterfall (biiiig) and they didn't work. I think it's because they were just above the water's surface. next compile I'll try putting them just under the surface. Anyone have experience with them and want to share what they learned?
infest
Member
Member
 
Joined: Thu Apr 21, 2005 9:34 pm
Location: IA

Postby slayera on Fri Jun 24, 2005 12:20 am

I have never tried them. You should move this too the help forum, more people will see this whom might be able to assist you.
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

Postby Sauce on Sat Dec 17, 2005 6:55 am

Is it possible to make say, an escalator for a shopping center? Iunderstand that it would require the brush that moves you along, but what about the steps that move around in a continuous circle? Would paths be required?
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby Surreallemming on Sat Dec 17, 2005 3:53 pm

yes it is, but not using anything like this

you'd just need some path tracks...

(fyi, im making an escalator, I might Prefab it if you guys want :P)
Surreallemming
Regular
Regular
 
Joined: Fri Sep 30, 2005 7:44 pm

Postby Sauce on Mon Apr 17, 2006 12:08 pm

Yes please, I would love to have your elevator... (mine sucked and only had 5 steps and then i stopped coz i got bored of it) I'll credit you too.
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby Nimbulan on Fri Oct 27, 2006 12:34 pm

Heres an animated water texture.

Regards to the guys at background_mill.

http://www.fileden.com/files/2006/6/15/ ... ERFALL.vmt

http://www.fileden.com/files/2006/6/15/ ... erfall.vtf

I think. Who knows.
Last.FM

[...] It was to be a classic affirmation of everything right and true in the national character. A gross physical salute to the fantastic possibilities of life in this country.
User avatar
Nimbulan
Regular
Regular
 
Joined: Tue Feb 21, 2006 7:01 pm
Location: Bat Country

Postby slayera on Sat Oct 28, 2006 12:17 am

If you want to make your own water or falls texture-

http://www.interlopers.net/forum/viewtopic.php?t=8062

(I should did this a long time ago.)
Image


"When one person suffers from a delusion it is called insanity. When many people suffer from a delusion it is called religion." -Robert Pirsig
User avatar
slayera
Veteran
Veteran
 
Joined: Wed Dec 08, 2004 3:15 am
Location: Near the world's only super volcano.

Re: Waterfalls

Postby Trond on Mon Dec 08, 2008 6:43 am

Aoch my eyes.

The example map for this tutorial was horrible. The water didn't flow, it was jagged.

Why hasn't anyone else seen this??
Trond
Dumpling
Dumpling
 
Joined: Tue Nov 25, 2008 12:59 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users