water dosent work ... sometimes?

Discussion in 'Mapping Questions & Discussion' started by lunarpumpkin, Sep 5, 2016.

  1. lunarpumpkin

    lunarpumpkin L2: Junior Member

    Messages:
    72
    Positive Ratings:
    12
    sometimes in the map when i go under this custom water , this happen
    [​IMG]
    [​IMG]
    anyone know why this happen? and why it is only SOMETIMES?

    water codes

    water_cyan01_scrolling.vmt

    "Water"
    {
    "%compilewater" 1
    "$forceexpensive" 1
    "$reflectentities" 1
    "$envmap" "env_cubemap"
    "%tooltexture" "dev/water_normal"
    "$refracttexture" "_rt_WaterRefraction"
    "$refractamount" "1"
    "$refracttint" "[.68 .76 .76]"

    "Water_DX60"
    {
    "$fallbackmaterial" "nature/water_dx70_beneath"
    }

    "Water_DX80"
    {
    "$refractamount" ".13"
    "$reflectamount" "2.5"
    "Proxies"
    {
    "AnimatedTexture"
    {
    "animatedtexturevar" "$normalmap"
    "animatedtextureframenumvar" "$bumpframe"
    "animatedtextureframerate" 30.00
    }
    }
    }

    "Water_DX81"
    {
    "$refractamount" ".13"
    "$reflectamount" "2.5"
    "Proxies"
    {
    "AnimatedTexture"
    {
    "animatedtexturevar" "$normalmap"
    "animatedtextureframenumvar" "$bumpframe"
    "animatedtextureframerate" 30.00
    }
    }
    }

    "$reflecttexture" "_rt_WaterReflection"
    "$reflectamount" ".75"
    "$reflecttint" "[1 .95 .85]"

    "$scale" "[1 1]"

    "$bumpmap" "dev/water_dudv"
    "$normalmap" "dev/water_normal"

    "$surfaceprop" "water"
    "$bottommaterial" "water/water_cyan01_beneath"
    "$bumpframe" "0"


    "$fogenable" 1
    "$fogcolor" "{20 255 255 200}"
    "$fogstart" "0"
    "$fogend" "300"

    "Proxies"
    {
    "AnimatedTexture"
    {
    "animatedtexturevar" "$normalmap"
    "animatedtextureframenumvar" "$bumpframe"
    "animatedtextureframerate" 30.00
    }

    "TextureScroll"
    {
    "texturescrollvar" "$bumptransform"
    "texturescrollrate" .5
    "texturescrollangle" 90
    }
    }
    }

    water_cyan01_overlay.vmt
    "Refract"
    {
    "%keywords" "tf"
    "$refractamount" ".05"
    "$refracttint" "{20 255 255}"
    "$refractblur" "1"
    "$bluramount" "1"
    "$ignorez" "1"


    "$scale" "[1 1]"

    "$bumpmap" "dev/water_dudv"
    "$normalmap" "dev/water_normal"
    "$bumpframe" "0"


    "Proxies"
    {
    "AnimatedTexture"
    {
    "animatedtexturevar" "$normalmap"
    "animatedtextureframenumvar" "$bumpframe"
    "animatedtextureframerate" 30.00
    }

    "TextureScroll"
    {
    "texturescrollvar" "$bumptransform"
    "texturescrollrate" .5
    "texturescrollangle" 90
    }
    }
    }

    water_cyan01_beneath.vmt
    "Water"
    {
    "%keywords" "tf"
    "$abovewater" 0
    "%compilewater" 1
    "$CHEAPWATERSTARTDISTANCE" 500.0
    "$CHEAPWATERENDDISTANCE" 1000.0
    "%tooltexture" "dev/water_normal"
    "$refractamount" ".5"
    "$refracttint" "[.68 .76 .76]"

    "$reflectamount" "1.0"
    "$reflecttint" "[1 1 1]"

    "$refracttexture" "_rt_WaterRefraction"

    "$scale" "[1 1]"


    "$blurrefract" "1"
    "$normalmap" "dev/water_normal"

    $underwateroverlay "colour/water/water_cyan01_overlay"
    "$surfaceprop" "water"
    "$bumpframe" "0"

    "$fogenable" 1
    "$fogcolor" "{20 255 255 200}"
    "$fogstart" "0"
    "$fogend" "300"

    "Water_DX60"
    {
    "$fallbackmaterial" "nature/water_dx70_beneath"
    }

    "Proxies"
    {
    "AnimatedTexture"
    {
    "animatedtexturevar" "$normalmap"
    "animatedtextureframenumvar" "$bumpframe"
    "animatedtextureframerate" 30.00
    }

    "TextureScroll"
    {
    "texturescrollvar" "$bumptransform"
    "texturescrollrate" .5
    "texturescrollangle" 90
    }

    "WaterLOD"
    {
    }
    }
    }
     
  2. lunarpumpkin

    lunarpumpkin L2: Junior Member

    Messages:
    72
    Positive Ratings:
    12
    with the amount of views and the lack of responces i guess nobody see the error in the code ethier?
     
  3. Vel0city

    aa Vel0city func_fish

    Messages:
    1,938
    Positive Ratings:
    1,540
    This happens when the bottom material is either invalid or not packed. Is this your map? Use water that ships with TF2. If it isn't your map, get in touch with the creator and tell him/her his water is broken.
     
  4. lunarpumpkin

    lunarpumpkin L2: Junior Member

    Messages:
    72
    Positive Ratings:
    12
    its my map , ive decided to take the normal map and dudv and make my own water , now.

    also is $abovewater nessesary because when i use it , water turn black when getting far away and dosent affect the water in general
     
  5. lunarpumpkin

    lunarpumpkin L2: Junior Member

    Messages:
    72
    Positive Ratings:
    12
    so , made a new water folder and system and texture and linked it all between itself , if the problme happen again then i dont fucking know ... i think the problem came from the "dev/water_normal" instead of tfwater_normal but dosent matter now i didnt take nethier
     
  6. Diva Dan

    aa Diva Dan hello!

    Messages:
    857
    Positive Ratings:
    1,467
    Let me just say your engineer looks stunning.

    <---
     
  7. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,377
    Code:
    $underwateroverlay "colour/water/water_cyan01_overlay"
    As I said last week in another thread that reported the same problem, this is probably the issue. Does the texture mentioned here exist? And if so, is it getting picked up by whatever you're using to pack? Because it's definitely not stock.