Rippling light through water effects

Any aspects of level design for the Source engine.

Rippling light through water effects

Postby Guessmyname on Thu Aug 27, 2009 12:31 pm

I'm trying to make a light-rippling-through-water effect, where, well, light is going through water and being distorted, creating rippling highlights and shadows on the ground. It's a considerable problem to implement though, being basically animated light.

I suspect the best / possibly only real way of doing this would be using an animated texture with env_projected texture... does anyone know if this is even possible? The other problem being this would be very expensive to use.

If there are any other alternatives, that would also be grand. Animated cubemaps could work, but would require specialised mapping, textures and wouldn't really give you any shadows.

Potentially, animated additive decals could also be used in some cases, but only if, say, illuminating a wall or floor singularly, and nothing else. A bit like a cheaper version of the env_projectedtexture method above, but again - no shadows.

It's a tricky thing to try and do... any suggestions?
User avatar
Guessmyname
1337 p0st3r
1337 p0st3r
 
Joined: Sun Mar 27, 2005 10:38 pm

Re: Rippling light through water effects

Postby tundra_cool on Thu Aug 27, 2009 12:44 pm

I'm guessing you mean caustics. You could search for a simple texture online or make your own. Once you do, make a material file with the additive property and two texture scrolling proxies and make it so they scroll against each other. Then you have a choice. You could do something like use overlays and turn texturelock off to cover your underwater area but I'd personally export the piece of the map to .dxf and create a model which is 1 unit off of the map's geometry and UV it so the texture stretches at the side like real life. That'd be pretty cool. You now have me day-dreaming.

http://www.dgp.toronto.edu/people/stam/ ... stics.html

Perfect for textures.
Last edited by tundra_cool on Thu Aug 27, 2009 12:48 pm, edited 1 time in total.
User avatar
tundra_cool
Been Here A While
Been Here A While
 
Joined: Thu Feb 23, 2006 5:48 am

Re: Rippling light through water effects

Postby Major Banter on Thu Aug 27, 2009 12:46 pm

Basically, wrong engine, unless you're going to code like a lunatic. I think I know where this is all going, and I'd love to see it work, but it'd be hideously complicated to do in Source. You've used all of my suggestions anyway :-D
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Rippling light through water effects

Postby TicTac on Thu Aug 27, 2009 3:10 pm

Srred, I believe, did an effect like this a while ago. He used an animated texture, alpha blended to whatever he needed it 'cast' onto.
Competent Level Designer, 3D Artist.
I don't really look like my avatar
User avatar
TicTac
Veteran
Veteran
 
Joined: Sat Aug 02, 2008 1:30 am
Location: Philadelphia

Re: Rippling light through water effects

Postby surgeon on Thu Aug 27, 2009 3:13 pm

there was a map in battlegrounds (the hl1 version) that had this effect in a cave. i think the rock texture was just animated with the static background and this effect overlayed on each frame.
User avatar
surgeon
Member
Member
 
Joined: Sun Sep 28, 2008 9:20 pm
Location: UK

Re: Rippling light through water effects

Postby Major Banter on Thu Aug 27, 2009 5:25 pm

Unless I'm mistaken, it means this:
Image

Rather than this:
Image

Otherwise it'd be a cheap overlay.
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Rippling light through water effects

Postby TicTac on Thu Aug 27, 2009 5:37 pm

Well, you can make the streaming effect with an animated volume-light model.

But I think he means cast thru a window onto walls/floors/etc, right?
Competent Level Designer, 3D Artist.
I don't really look like my avatar
User avatar
TicTac
Veteran
Veteran
 
Joined: Sat Aug 02, 2008 1:30 am
Location: Philadelphia

Re: Rippling light through water effects

Postby MayheM on Thu Aug 27, 2009 5:53 pm

either one of those effects could be done with an animated texture. It would not be the easiest thing in the world to do, but I member a map back in CS 1.6 having that effect. For the life of me I can not remember the map name, but I do know it was done with animated textures or more accurately as tictac suggested with a model which uses said animated texture.
Image
User avatar
MayheM
Veteran
Veteran
 
Joined: Tue Oct 16, 2007 7:46 pm
Location: Lancaster SC

Re: Rippling light through water effects

Postby Mess on Thu Aug 27, 2009 7:38 pm

I'm pretty sure BMS has already implemented caustics with a simple animated texture
Image
User avatar
Mess
Interlopers Staff
Interlopers Staff
 
Joined: Tue Apr 26, 2005 11:53 am

Re: Rippling light through water effects

Postby Armageddon on Thu Aug 27, 2009 10:34 pm

This might be cheap and I think it only works in tf2 but it still looks good. (Overlays on a water texture.)

http://www.youtube.com/watch?v=R8bGLLqpieA
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Rippling light through water effects

Postby srredfire on Thu Aug 27, 2009 10:42 pm

TicTac wrote:Srred, I believe, did an effect like this a while ago. He used an animated texture, alpha blended to whatever he needed it 'cast' onto.


Yupyup.



That the kind of effect you're looking for? ( on the back rock )
User avatar
srredfire
Veteran
Veteran
 
Joined: Sat Jul 22, 2006 10:44 pm

Re: Rippling light through water effects

Postby Guessmyname on Fri Aug 28, 2009 6:34 am

Yeah, pretty much.

How can you make that sort of texture?
User avatar
Guessmyname
1337 p0st3r
1337 p0st3r
 
Joined: Sun Mar 27, 2005 10:38 pm

Re: Rippling light through water effects

Postby Remonttimies on Fri Aug 28, 2009 1:34 pm

I found this nice tool with google. It is a free program that is able to generate many different kind of animated water caustic effects.

I created this by myself: nice water effect
User avatar
Remonttimies
Been Here A While
Been Here A While
 
Joined: Mon Jul 03, 2006 9:54 am
Location: Finland

Re: Rippling light through water effects

Postby TicTac on Fri Aug 28, 2009 3:25 pm

I'm just gonna speak for Srred again :P He told me that he used an alphablend texture on the rock, but that would require you use displacements for everything you want this 'cast' onto. Best bet might be to make an animated overlay in various generic shapes (such as a small one for a window, or a large one for a skylight). If that doesn't work out, then jump into the mods code and enable a few more dynamic lights (projected textures) and use them sparingly.
Competent Level Designer, 3D Artist.
I don't really look like my avatar
User avatar
TicTac
Veteran
Veteran
 
Joined: Sat Aug 02, 2008 1:30 am
Location: Philadelphia

Re: Rippling light through water effects

Postby Guessmyname on Fri Aug 28, 2009 4:31 pm

Yep. And for entirely underwater sections, there's always the LightmappedTwoTexture shader (animated caustic texture for $detail ftw!)
User avatar
Guessmyname
1337 p0st3r
1337 p0st3r
 
Joined: Sun Mar 27, 2005 10:38 pm
Next

Return to Hammer Editor Help

Who is online

Users browsing this forum: Google [Bot]