• Custom Water Problem
    9 replies, posted
Okay i made a custom water texture for a map, The top of the water shows fine but the bottom is just blue... My VTM for the water texture [CODE]"Water" { "$abovewater" 0 "%compilewater" 1 "$forceexpensive" 1 "$reflectentities" 0 "$envmap" "env_cubemap" "%tooltexture" "MRP/sandywater_top" "$refracttexture" "_rt_WaterRefraction" "$refractamount" "0" "$normalmap" "MRP/sandywater_normal" "$reflecttexture" "_rt_WaterReflection" "$reflectamount" "2" "$surfaceprop" "water" "$bottommaterial" "MRP/sandywater_bottom" "$bumpframe" "0" "$fogenable" 1 "$fogcolor" "[63 214 225]" "srgb?$fogcolor" "{63 214 225}" "$fogstart" -1024 "$fogend" 0 "$scroll1" "[.01 .01 .05]" "$scroll2" "[-.025 .025 .075]" "Proxies" { "TextureScroll" { "texturescrollvar" "$bumptransform" "texturescrollrate" .01 "texturescrollangle" 25.00 } "WaterLOD" { } } }[/CODE] My VTF: [url]http://www.mediafire.com/?xjzvmozwojv[/url]
$bottommaterial should reference a VMT, not VTF.
[QUOTE=Terrenteller;22867214]$bottommaterial should reference a VMT, not VTF.[/QUOTE] I did that, And now its showing blue and black... The top of the water is working fine [IMG]http://img69.imageshack.us/img69/2120/ontopp.jpg[/IMG] The bottom now shows as blue and black checkers when looking up. [IMG]http://img266.imageshack.us/img266/9158/waterproblemunder.jpg[/IMG]
Post the VMT used by $bottommaterial. Also, for the above VMT, change $abovewater to "1".
[QUOTE=Terrenteller;22867824]Post the VMT used by $bottommaterial. Also, for the above VMT, change $abovewater to "1".[/QUOTE] Okay i did that and instead of showing the checkers it now shows it as black underwater
Post the VMT used by $bottommaterial.
[QUOTE=Terrenteller;22869694]Post the VMT used by $bottommaterial.[/QUOTE] The VMT in the first post is for the bottommaterial if thats what you mean.
I was under the assumption that was for the water surface since it referenced a $bottommaterial. Post both VMTs.
[QUOTE=Terrenteller;22869757]I was under the assumption that was for the water surface since it referenced a $bottommaterial. Post both VMTs.[/QUOTE] Top [CODE]"Water" { "$abovewater" 1 "%compilewater" 1 "$forceexpensive" 1 "$reflectentities" 0 "$envmap" "env_cubemap" "%tooltexture" "MRP/sandywater_top" "$refracttexture" "_rt_WaterRefraction" "$refractamount" "0" "$normalmap" "MRP/sandywater_normal" "$reflecttexture" "_rt_WaterReflection" "$reflectamount" "2" "$surfaceprop" "water" "$bottommaterial" "MRP/sandywater_bottom.vmf" "$bumpframe" "0" "$fogenable" 1 "$fogcolor" "[63 214 225]" "srgb?$fogcolor" "{63 214 225}" "$fogstart" -1024 "$fogend" 0 "$scroll1" "[.01 .01 .05]" "$scroll2" "[-.025 .025 .075]" "Proxies" { "TextureScroll" { "texturescrollvar" "$bumptransform" "texturescrollrate" .01 "texturescrollangle" 25.00 } "WaterLOD" { } } }[/CODE] Bottom (Edited a few things from last one in OP) [CODE]"Water" { "$abovewater" 0 "%compilewater" 1 "$forceexpensive" 1 "$reflectentities" 0 "$envmap" "env_cubemap" "%tooltexture" "MRP/sandywater_top" "$refracttexture" "_rt_WaterRefraction" "$refractamount" "0" "$normalmap" "MRP/sandywater_normal" "$surfaceprop" "water" "$bumpframe" "0" "$fogenable" 1 "$fogcolor" "[63 214 225]" "srgb?$fogcolor" "{63 214 225}" "$fogstart" -1024 "$fogend" 0 "$scroll1" "[.01 .01 .05]" "$scroll2" "[-.025 .025 .075]" "Proxies" { "TextureScroll" { "texturescrollvar" "$bumptransform" "texturescrollrate" .01 "texturescrollangle" 25.00 } "WaterLOD" { } } }[/CODE]
Try taking off force expensive for the bottom material?
Sorry, you need to Log In to post a reply to this thread.