Custom Refraction Texture Help
Quote from dvlstx on July 14, 2008, 5:29 pm***********************************************************
THe problem is REFRACTTINT. Using REFRACTTINTTEXTURE fixes this issue, for reasons unknown to me.
***********************************************************Ok, my forcefield texture refracts, and is coloured how I want it, however! It seems to magnify the amount of light on ANYTHING seen thru it exponentially
If you notice the wall, it is bathed in shadow, but thru the refraction texture, it is bright and clear. AND, any mildly bright areas are brightened beyond recognition. Can anyone help? Below is my .vmt code.
"Refract"
{
"$normalmap" "dvlstx/forcefield_normal"
"$surfaceprop" "glass"
"$bluramount" "1"
"$refractamount" ".100"
"$scale" "[1 1]"
"$envmap" "env_cubemap"
"$envmaptint" "[.3 .3 .3]"
"$REFRACTTINT" "[44 88 201 100]"
}
***********************************************************
THe problem is REFRACTTINT. Using REFRACTTINTTEXTURE fixes this issue, for reasons unknown to me.
***********************************************************
Ok, my forcefield texture refracts, and is coloured how I want it, however! It seems to magnify the amount of light on ANYTHING seen thru it exponentially
If you notice the wall, it is bathed in shadow, but thru the refraction texture, it is bright and clear. AND, any mildly bright areas are brightened beyond recognition. Can anyone help? Below is my .vmt code.
"Refract"
{
"$normalmap" "dvlstx/forcefield_normal"
"$surfaceprop" "glass"
"$bluramount" "1"
"$refractamount" ".100"
"$scale" "[1 1]"
"$envmap" "env_cubemap"
"$envmaptint" "[.3 .3 .3]"
"$REFRACTTINT" "[44 88 201 100]"
}
Quote from Doomsday192 on July 15, 2008, 6:09 pmdoes the map have cubemaps?
does the map have cubemaps?
Quote from dvlstx on July 15, 2008, 7:06 pmYes, it had cubemaps. It still illuminated what was seen through it, however. (Essentially, it acts the same with and without cubemaps.)
Yes, it had cubemaps. It still illuminated what was seen through it, however. (Essentially, it acts the same with and without cubemaps.)
Quote from MrTwoVideoCards on July 15, 2008, 8:49 pmr_radiosity 3
r_radiosity 3
Quote from dvlstx on July 15, 2008, 9:43 pmMrTwoVideoCards wrote:r_radiosity 3Giving me a console command doesn't help at all. Something like, 'This is what is wrong, and this command will help because...' is good.
Also, this may be a bad time to say this, but I realized that I can't use this idea in my map without thinking of some serious workarounds... *bangs head into monitor*
Giving me a console command doesn't help at all. Something like, 'This is what is wrong, and this command will help because...' is good.
Also, this may be a bad time to say this, but I realized that I can't use this idea in my map without thinking of some serious workarounds... *bangs head into monitor*
Quote from MrTwoVideoCards on July 16, 2008, 11:28 amdvlstx wrote:Giving me a console command doesn't help at all. Something like, 'This is what is wrong, and this command will help because...' is good.Also, this may be a bad time to say this, but I realized that I can't use this idea in my map without thinking of some serious workarounds... *bangs head into monitor*
If it doesn't work, then you must have no idea whats going wrong then. Also it's pretty obvious that .100 is very high.
Also, this may be a bad time to say this, but I realized that I can't use this idea in my map without thinking of some serious workarounds... *bangs head into monitor*
If it doesn't work, then you must have no idea whats going wrong then. Also it's pretty obvious that .100 is very high.
Quote from Megadude on July 16, 2008, 2:47 pmMrTwoVideoCards wrote:If it doesn't work, then you must have no idea whats going wrong then.That's why he's asked for our help
MrTwoVideoCards wrote:Also it's pretty obvious that .100 is very high..100 is fine.
dvlstx - try getting rid of the 100 in your $REFRACTTINT line. You only need 3 numbers for the tint. The extra 4th number may be throwing things off a bit. If that doesn't work, add the line
- Code: Select all
"$model" "1"
to your VMT, and tie the brush textured with the refracting texture to a func_brush.
That's why he's asked for our help
.100 is fine.
dvlstx - try getting rid of the 100 in your $REFRACTTINT line. You only need 3 numbers for the tint. The extra 4th number may be throwing things off a bit. If that doesn't work, add the line
- Code: Select all
"$model" "1"
to your VMT, and tie the brush textured with the refracting texture to a func_brush.
gepy wrote:"The companion toilet cannot speak, however it can take your crap."Journey - no idea on length = don't know the % done
Quote from dvlstx on July 16, 2008, 7:19 pmMegadude wrote:A bunch of very helpful and useful information.Thank you Megadude. He also made the great point to MrTwoVideoCards that my knowing nothing about creating refracting textures, due to my not having any prior experience with said textures, is the whole damn reason I'm asking for help.
Once again, thank you.
[quote="Megadude']dvlstx - try getting rid of the 100 in your $REFRACTTINT line. You only need 3 numbers for the tint. The extra 4th number may be throwing things off a bit.[/quote]
The 4th number is actually the amount of colour saturation to apply to the texture. (0-225, empty to full). I'll try your advice, and post back in a bit.
*glares at MrTwoVideoCards*
EDIT:sorry Megadude, but positivly no change. But what if I used REFRACTTINTTEXTURE instead of REFRACTTINT?EDIT:REFRACTTINTTEXTURE fixed the problem, but I can't impliment this into my map without some serious changes... DAMNIT!
Thank you Megadude. He also made the great point to MrTwoVideoCards that my knowing nothing about creating refracting textures, due to my not having any prior experience with said textures, is the whole damn reason I'm asking for help.
Once again, thank you.
[quote="Megadude']dvlstx - try getting rid of the 100 in your $REFRACTTINT line. You only need 3 numbers for the tint. The extra 4th number may be throwing things off a bit.[/quote]
The 4th number is actually the amount of colour saturation to apply to the texture. (0-225, empty to full). I'll try your advice, and post back in a bit.
*glares at MrTwoVideoCards*
EDIT:sorry Megadude, but positivly no change. But what if I used REFRACTTINTTEXTURE instead of REFRACTTINT?
EDIT:REFRACTTINTTEXTURE fixed the problem, but I can't impliment this into my map without some serious changes... DAMNIT!
Quote from MrTwoVideoCards on July 17, 2008, 12:32 amSee I let people learn the hard way, not give them the straight answers .
See I let people learn the hard way, not give them the straight answers .