rockdude86 Posted August 3, 2008 Report Share Posted August 3, 2008 so im trying to add a specular map to a wall texture ive made and when running in ldr it looks ok but when i use hdr everything turns completely shiny and my texture becomes plastic! here are some screenshots: with hdr: without hdr: as you can see the ldr version's specularity is barely visible so why does it turn into plastic in hdr mode? some help would be greatly apreciated Quote Link to comment Share on other sites More sharing options...
hessi Posted August 3, 2008 Report Share Posted August 3, 2008 that's what HDR does. it overbrights regions that are light intense. atm you are looking in a dark region and every tiny lightspot will be very bright due to the simulation of a human eye. if you want to bypass this effect even while being in HDR mode, you can define a region in your VMT file to lower the envmap intensity when in DX9 HDR mode. i don't have the code right in front of me but there exist several files in source engine games that use these commands. i hope this helped Quote Link to comment Share on other sites More sharing options...
rockdude86 Posted August 3, 2008 Author Report Share Posted August 3, 2008 dont really know what kind of method your refering to but im already using the commands to lower the contrast and saturation. here is my vmt file: "LightmappedGeneric" { "$basetexture" "set01/brick01" "$bumpmap" "set01/brick01_normal" "$envmaptint" "[ 0.3 0.3 0.3 ]" "$normalmapalphaenvmapmask" 1 "$envmapcontrast" 0.2 "$envmapsaturation" 0.2 "$envmap" "env_cubemap" "$surfaceprop" "brick" "%keywords" "set01" } dont know if it could be of any help but im not really sure if the hdr effect is the problem. Quote Link to comment Share on other sites More sharing options...
hessi Posted August 3, 2008 Report Share Posted August 3, 2008 HDR is the problem. you have to insert a special { } tag (which i dont know right now since it is cryptic and long) to detect HDR mode in the VMT and use a stronger "$envmaptint" command Quote Link to comment Share on other sites More sharing options...
rockdude86 Posted August 3, 2008 Author Report Share Posted August 3, 2008 thanks for the help ill try to find the tag. i can probably find it on the valve developer wiki and ill try using a stronger envmaptint. Quote Link to comment Share on other sites More sharing options...
DvS Posted August 3, 2008 Report Share Posted August 3, 2008 "LightmappedGeneric_DX9_hdr" { "$envmaptint" "[x x x]" } This goes inside the LightmappedGeneric bracket. Quote Link to comment Share on other sites More sharing options...
rockdude86 Posted August 3, 2008 Author Report Share Posted August 3, 2008 hmm i cant get that to work all i get when i replace the LightmappedGeneric tag with LightmappedGeneric_DX9_hdr is wireframe Quote Link to comment Share on other sites More sharing options...
Sentura Posted August 3, 2008 Report Share Posted August 3, 2008 hmm i cant get that to work all i get when i replace the LightmappedGeneric tag with LightmappedGeneric_DX9_hdr is wireframe you don't replace it, you put the dx9_hdr tag INSIDE it. Quote Link to comment Share on other sites More sharing options...
DvS Posted August 3, 2008 Report Share Posted August 3, 2008 This goes inside the LightmappedGeneric bracket. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.