1. Post #1
    This title is totally OVERKILL™!
    Coyoteze's Avatar
    November 2011
    8,219 Posts
    For an SFM project I need a scene where a boat is being pulled around in a heavy storm. I initially tried cheating my way around actual waves by making a displacement with the water texture but it didn't work very well.
    There's also func_water_analog, but that doesn't work either. Both my solutions turn out that the water-brush is completely invisible.

    Any way around this?

  2. Post #2
    Gulen's Avatar
    December 2011
    2,737 Posts
    It sounds like you have a leak somewhere in your map. With water, you can't have any part of your map lead out into the "black unknown", the simplest solution would be to cover the entire thing in a block and make it hollow.
    Reply With Quote Edit / Delete Reply Mac Norway Show Events Mapping King Mapping King x 2Disagree Disagree x 2Friendly Friendly x 2Dumb Dumb x 1 (list)

  3. Post #3
    This title is totally OVERKILL™!
    Coyoteze's Avatar
    November 2011
    8,219 Posts
    That actually reminds me, I've got a lingering feeling I do things wrong, because first I make a skybox-brush, which I turn hollow. I can't remember if that's doing it wrong.

    Edited:

    And actually, despite encasing everything in another hollowed cube, the water is still invisible.

  4. Post #4
    Gold Member
    vexx21322's Avatar
    December 2008
    10,602 Posts
    That actually reminds me, I've got a lingering feeling I do things wrong, because first I make a skybox-brush, which I turn hollow. I can't remember if that's doing it wrong.

    Edited:

    And actually, despite encasing everything in another hollowed cube, the water is still invisible.

    First wrong: Hollow.
    Just ignore the Hollow tool.
    Reply With Quote Edit / Delete Reply Show Events Agree Agree x 3Disagree Disagree x 1 (list)

  5. Post #5
    karolisoz's Avatar
    July 2012
    72 Posts
    Best way to have actual waves in the water is to author a new water shader. However, you can do a cheap workaround using moving brushes:


    Note that it won't have the physical properties of water though.
    Reply With Quote Edit / Delete Reply Windows 8 Lithuania Show Events Winner Winner x 4Agree Agree x 2Useful Useful x 1 (list)

  6. Post #6
    This title is totally OVERKILL™!
    Coyoteze's Avatar
    November 2011
    8,219 Posts
    Well, water shaders and SFM don't really make the best team. As for the other solution, that's awesome, and it's pretty much exactly the effect I'm going for but with larger waves as to make it more of a storm. How'd you make that?

    Edited:

    First wrong: Hollow.
    Just ignore the Hollow tool.
    Actually never understood why the hollow tool is so bad. it doesn't seem to cause any major issues?

  7. Post #7
    I HAVE A SQUID FETISH
    IronPhoenix's Avatar
    April 2005
    8,217 Posts
    Actually never understood why the hollow tool is so bad. it doesn't seem to cause any major issues?
    It uses the same algorithm as the carve tool, and it is extremely inefficient. Just use 6 brushes surrounding the map instead.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Informative Informative x 3Agree Agree x 2 (list)

  8. Post #8
    karolisoz's Avatar
    July 2012
    72 Posts
    Well, water shaders and SFM don't really make the best team. As for the other solution, that's awesome, and it's pretty much exactly the effect I'm going for but with larger waves as to make it more of a storm. How'd you make that?
    I'll see if I can dig up the old files, but it's just like making an escalator (there's a tutorial for that on interlopers) with brushes using water shaders.
    Reply With Quote Edit / Delete Reply Windows 8 Lithuania Show Events Friendly Friendly x 2 (list)

  9. Post #9
    Shirky's Avatar
    December 2009
    2,568 Posts
    Are you just looking for a really simple wave animation?

    Here is a link to the tutorial mentioned above.

    http://www.interlopers.net/tutorials/10366

  10. Post #10
    Gold Member
    Kuro.'s Avatar
    July 2006
    2,172 Posts
    You could also make an animated model by rendering ocean waves in Max or something, then texture it with a nice animated refract texture. Of course it won't have any collision though and you will have to animate the ship and everything else to match the wave's animation.

  11. Post #11
    This title is totally OVERKILL™!
    Coyoteze's Avatar
    November 2011
    8,219 Posts
    Are you just looking for a really simple wave animation?

    Here is a link to the tutorial mentioned above.

    http://www.interlopers.net/tutorials/10366
    This seems reeeaaally complex. How exactly would square blocks make for water waves?
    I'm terrible at reading between the lines.

  12. Post #12

    August 2012
    531 Posts
    What about something like this? http://facepunch.com/showthread.php?t=1252740

  13. Post #13
    Skibur's Avatar
    May 2013
    147 Posts
    This seems reeeaaally complex. How exactly would square blocks make for water waves?
    I'm terrible at reading between the lines.
    Like someone mention, making a wave compare to reality is best off making a 3D model of the waves instead of making a shader.

    You have to understand that the shader doesn't simply create the waves and apply displacement on the brush. Source is a bit behind from that kind of technology (Compare to UDK)

    In short, just do a simple wave tutorial using 3ds max or maya program, export it into smd, and convert it into mdl. Simply create a nice looking material shader for the refraction/reflection effect, and there you have it. A realistic water that you wanted.

  14. Post #14
    Acecool discovered a way to get classes working in Lua; MetaTable users hate him, ArmA devs love him

    February 2012
    3,585 Posts
    3D model would be the best way, render it as a clientside model so you can have your boat go through it, and have real water at the base level..
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 3 (list)

  15. Post #15
    Source Multi-Tool
    wazanator's Avatar
    March 2010
    937 Posts
    The Ship uses 3D water models, you could look and see if any of those suit your taste.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 1 (list)

  16. Post #16
    Ask me about my Zimmerman fetish

    March 2005
    3,309 Posts
    If he decides to use any of them, he will most likely want to re-skin them though. The textures on those water models leaves a lot to be desired.
    Reply With Quote Edit / Delete Reply Windows 8 Show Events Agree Agree x 2 (list)

  17. Post #17

    June 2012
    20 Posts
    this should be fairly simple, look at the older valve games like tfc, they had "moving" water in them but im not sure if the textures will work niceley with a source engine game (i mean take the water textures from the older games and edit them somehow) if that is even possible. i debut it.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 3Disagree Disagree x 1 (list)