[RESOURCE] Basic Custom Water Material Generator

Discussion in 'Tutorials & Resources' started by Cynick, Mar 19, 2010.

  1. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    143
    Sick of all of those BORING default water materials that just don't feel right for your highly specialized needs for your super awesome never-before-seen map? Need an extra-blue colored water material for that beach map you're working on? A whitish-fog water material for that snowy map?

    Before, you might look at the work required to create a custom water material (roughly 250 lines of VMT code spread over 4 VMT files) and say "NO WAY! I'll just use the boring default Sawmill water until someone else makes the water I need and steal that!"

    NO MORE! Presenting:

    Custom Water Material Generator (Beta 1A)

    What is this, you say? An easy way to make your water look good with your map? Impossible. But it's true! And it's FREE!

    Features:
    • Generate custom water materials quickly and painlessly, with no VMT editing necessary!
    • Save water definitions as XML for editing later, and export to VMT simultaneously!
    • Auto-directory feature--auto saves files to your tf\materials\water directory, instantly accessible in Hammer
    • Control fog color/fading for both above and below water!
    • Auto generates DX8 Fallback materials

    Screenshots!
    I apologize for the quality on some of these shots, my tf2 was screwed up for a little while, and I didn't have the time to mess with it.

    The User Interface
    [​IMG]


    Really blue carribean water! (Beach not included)
    [​IMG]


    Egypt during the 2nd plague!
    [​IMG]

    So now that you're like :O "how do I make water/blood river?" Here's the download link!

    Download: From DropBox

    Notes:
    • Auto directory feature will automatically detect your steam username, see below note.
    • Auto directory feature will ask you for your steam username. This is only necessary to determine the place to put your newly created materials. Your steam username will NOT be stored/saved anywhere, and the program will NEVER ask for your password. YOU ARE NOT REQUIRED TO PROVIDE A USERNAME AT ALL, if you choose not to, a normal file browser will pop up.
    • Only supports TF2 at the current time

    Now go forth and make water (and post criticisms too! :p). Happy mapping! :thumbup1:
     
    • Thanks Thanks x 5
    Last edited: Mar 19, 2010
  2. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    only a gui for vmt editing waters?

    underwhelming :( I want a way of making new water textures. changing the fog values in a text editor is easy.
     
    • Thanks Thanks x 2
  3. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    143
    Water is barely based on textures at all (no $basetexture) and the Valve water materials all use the 2fort overlay textures pretty much. And I don't have the skill to make a program to create seamless, animated bumpmapped water textures :O. I just hate having to sift through the 250+ lines of code in 4 VMT files to change the color/fog one little bit, and I figured other people might too. (Especially when you realize it still isn't *quite* right, and you need to change it again).

    So would it be awesome? Yea. But with my (lack of high level) coding experience, it's unlikely >_>.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Pull the %sourcesdk% environment variable, backtrack to the user directory, and then down the tf install path to where you need to go.
     
    • Thanks Thanks x 1
  5. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    143
    Really? :O I searched and searched and never found that. Thanks x 9001

    EDIT: Epic fast update...it now automatically detects your steam username from %sourcesdk%. It still allows the option to not specify a username because some people hate convenience.

    EDIT2: A side note (I promise: last edit tonight :p): This was aimed mostly at the newer mappers/mappers who don't know the in's and out's of VMT editing, etc. More experienced mappers will probably find this superfluous. :p
     
    Last edited: Mar 19, 2010
  6. The Political Gamer

    aa The Political Gamer

    Messages:
    4,468
    Positive Ratings:
    1,684
    Holy crap how did I miss this! D: Jarate water here I come!
     
  7. MrDonde

    MrDonde L1: Registered

    Messages:
    22
    Positive Ratings:
    0
    Does this tool also add a glow to the water?
     
  8. MrDonde

    MrDonde L1: Registered

    Messages:
    22
    Positive Ratings:
    0
    OK I posted this question in another forum but I thought maybe someone here might know whats the issue.

    When I created some green water with this tool I started having some strange issues with the edge of the water in game. It looks like the reflection is off or something. Here is a screenshot.

    http://img100.imageshack.us/img100/4...010a370000.jpg

    If anyone has any ideas to fix this please let me know.

    -MrDonde
     
  9. Cynick

    Cynick L4: Comfortable Member

    Messages:
    153
    Positive Ratings:
    143
    Link is broken for me, so I can't see exactly what problem you have, but I have seen issues in the past with all water brushes, not just the ones this program generates, when they are up against the skybox. I never found a solution to this, so any insight is appreciated.

    Try using a official valve water material to see if this problem persists.
     
  10. MrDonde

    MrDonde L1: Registered

    Messages:
    22
    Positive Ratings:
    0