What's wrong with my water texture!?

Got problems with your models? Struggling with textures? Get help with your custom assets.

What's wrong with my water texture!?

Postby ThaGuyWithCake on Wed May 18, 2011 10:15 am

Ok, generating normal maps using caustics to make an animated water texture was a good idea. But when I view the water ingame its completely white and doesn't animate. However, when I view the underside of the water texture in hammer (otherside of the surface) it's there. But even in hammer the surface of the texture is white. Why is it doing that?
ThaGuyWithCake
Member
Member
 
Joined: Mon May 16, 2011 4:25 am

Re: What's wrong with my water texture!?

Postby ThaGuyWithCake on Wed May 18, 2011 10:18 am

If it helps, here is the code:

"Water"
{
"$abovewater" 1
"%compilewater" 1
"$forceexpensive" 1
"$reflectentities" 0
"$envmap" "env_cubemap"
"$refracttexture" "_rt_WaterRefraction"
"$refractamount" "0"

"$bumpmap" "Water/water_awsome_bump"
"$normalmap" "Water/water_awsome"

"$surfaceprop" "Water"
"$bottommaterial" "Water/water_awsome"
"$bumpframe" "0"

"$reflecttexture" "_rt_WaterReflection"
"$reflectamount" "2"

"$fogenable" 0
"$fogcolor" "[99 214 225]"
"srgb$fogcolor" "{63 214 225}"
"$fogstart" -1024
"$fogend" 90

}

Note: The bump map is the normal map texture saved as bump map.
ThaGuyWithCake
Member
Member
 
Joined: Mon May 16, 2011 4:25 am

Re: What's wrong with my water texture!?

Postby poisonic on Wed May 18, 2011 1:38 pm

lol you forgot to animate it my friend
[img:400]http://mypsn.eu.playstation.com/psn/profile/poisonic.png[/img]
User avatar
poisonic
Pheropod
Pheropod
 
Joined: Tue Jan 20, 2009 5:10 pm

Re: What's wrong with my water texture!?

Postby ThaGuyWithCake on Thu May 19, 2011 3:38 am

Here is the updated code:

The texture itself is still appearing as white however.


"Water"
{
"$abovewater" 1
"%compilewater" 1
"$forceexpensive" 1
"$reflectentities" 0
"$envmap" "env_cubemap"
"$refracttexture" "_rt_WaterRefraction"
"$refractamount" "0"

"$bumpmap" "Water/water_awsome_bump"
"$normalmap" "Water/water_awsome"

"$surfaceprop" "Water"
"$bottommaterial" "Water/water_awsome"
"$bumpframe" "0"

"$reflecttexture" "_rt_WaterReflection"
"$reflectamount" "2"

"$fogenable" 0
"$fogcolor" "[99 214 225]"
"srgb$fogcolor" "{63 214 225}"
"$fogstart" -1024
"$fogend" 90

proxies
{
"AnimatedTexture"
{
"animatedTextureVar" "$basetexture"
"animatedTextureFrameNumVar" "$frame"
"animatedTextureFrameRate" "25"
}

}
}
ThaGuyWithCake
Member
Member
 
Joined: Mon May 16, 2011 4:25 am

Re: What's wrong with my water texture!?

Postby WhiteDevil on Thu May 19, 2011 6:18 am

your animation is set on a basetexture which your water doesn't have :o
User avatar
WhiteDevil
Been Here A While
Been Here A While
 
Joined: Sat May 28, 2005 1:09 pm

Re: What's wrong with my water texture!?

Postby ThaGuyWithCake on Thu May 19, 2011 8:40 am

But my base texture is a normal map or can it not do that?
ThaGuyWithCake
Member
Member
 
Joined: Mon May 16, 2011 4:25 am

Re: What's wrong with my water texture!?

Postby poisonic on Thu May 19, 2011 2:27 pm

Code: Select all
"Water"
{
"$abovewater" 1
"%compilewater" 1
"$forceexpensive" 1
"$reflectentities" 0
"$envmap" "env_cubemap"
"$refracttexture" "_rt_WaterRefraction"
"$refractamount" "0"

"$bumpmap" "Water/water_awsome_bump"
"$normalmap" "Water/water_awsome"

"$surfaceprop" "Water"
"$bottommaterial" "Water/water_awsome"
"$bumpframe" "0"

"$reflecttexture" "_rt_WaterReflection"
"$reflectamount" "2"

"$fogenable" 0
"$fogcolor" "[99 214 225]"
"srgb$fogcolor" "{63 214 225}"
"$fogstart" -1024
"$fogend" 90

"Proxies"
   {
      "TextureScroll"
      {
         "texturescrollvar" "$bumptransform"
         "texturescrollrate" 3
         "texturescrollangle" -90
      }
   }
:P
[img:400]http://mypsn.eu.playstation.com/psn/profile/poisonic.png[/img]
User avatar
poisonic
Pheropod
Pheropod
 
Joined: Tue Jan 20, 2009 5:10 pm

Re: What's wrong with my water texture!?

Postby crazycarl on Fri May 20, 2011 1:01 am

White water: I'm guessing your reflections are too strong. Try this:

You can color or tone down the reflections by supplying your own RGB values here.
Code: Select all
   "$reflecttint" "[0.6 0.65 0.68]"


If you haven't already, remember to always build cubemaps

$bumpmap should be a Dudv, which is for users running directx 8 or older.

A typical proxy block for water:
Code: Select all
   "Proxies"
   {
      "AnimatedTexture"
      {
         "animatedtexturevar" "$normalmap"
         "animatedtextureframenumvar" "$bumpframe"
         "animatedtextureframerate" 30.00
      }

      "TextureScroll"
      {
         "texturescrollvar" "$bumptransform"
         "texturescrollrate" .05
         "texturescrollangle" 45.00
      }
      "WaterLOD"
      {
         // fixme!  This has to be here, or material loading barfs.
         "dummy" 0
      }
   }
}
crazycarl
Been Here A While
Been Here A While
 
Joined: Tue Jan 12, 2010 9:12 pm

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users

cron