water dosent work ... sometimes?

lunarpumpkin

L2: Junior Member
Aug 31, 2016
72
15
sometimes in the map when i go under this custom water , this happen
F9F47ABED9DC83B64244898FE86132E95353FAD8

366F0A0EE08D2E1DDF0203C1DA5F26518C77DE41

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"
{
}
}
}
 

lunarpumpkin

L2: Junior Member
Aug 31, 2016
72
15
with the amount of views and the lack of responces i guess nobody see the error in the code ethier?
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
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.
 

lunarpumpkin

L2: Junior Member
Aug 31, 2016
72
15
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
 

lunarpumpkin

L2: Junior Member
Aug 31, 2016
72
15
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
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
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.