Page 1 of 1

make a texture more dark

Posted: Wed May 12, 2004 7:42 am
by At0miC
Can I make a texture more dark in radiant? ( dont know how to say in english :oops: :P.

The green grasses are too light so is there a option to make it more dark?

At0miC

Posted: Wed May 12, 2004 3:26 pm
by panTera
It's easier and probably better to do it with a paint editing program, but there is a way to do it by making a new shader for the texture. Open pak0.pak and look for the shader of the texturefolder you are using and extract it from the pak (eg. misc_outside.shader) Then look for the texture and copy its part into a new shaderfile you make with notepad. Save as 'yourname.shader' and put it in main/scripts folder.
For example let's assume the following is the shader, be sure to edit the parts in bold text:

textures/yourshadername/yournewtexname
{
qer_editorimage textures/misc_outside/bocage_grass1a
surfaceparm grass
{
map textures/misc_outside/bocage_grass1a.tga <-leave original path & texname unchanged
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen constant 0.# 0.# 0.# //<-change 'rgbGen identity' to 'rgbGen constant'
depthFunc equal
}
}


---
the values for rgbGen constant can be from 0 to 1, the lower the values the darker it will become, 0.30 0.32 0.20 would be nice I think. This way you can also change the colour of the texture. You won't see the effect in Radiant, but only in game. There's another trick to easily play with the values to get it right if the colours are not right yet. After you load up your map, go to the console and type: editshader yourshadername. Now you can change the values and save them(ctrl+s). Type vid_restart to see the change.

Posted: Wed May 12, 2004 3:44 pm
by agentmad007
you can even import your texture in photoshop and play with ctrl +u to make it darker .......

save it as a custom texture and make a custom shader ......there is several post for custom texture

Posted: Wed May 12, 2004 4:34 pm
by blue60007
It would be best to copy the orignal as agentmad007 said, overwriting the original shader would mess up the textures all the way through...

Posted: Wed May 12, 2004 5:48 pm
by panTera
@Blue60007:
Well the way I described doesn't overwrite the original shader as you make a new one;
textures/yourshadername/yournewtexname. With a new shader and texturename you can borrow a standard texture. You can savely take one texture and use it for different purposes by writing another shader for it, as long as you change the name and put it in a separate shaderfile.
If you'd go and edit the texture yourself you'd need to make a new shader anyhow. But I believe Atomic wondered if it could be done in Radiant without editing the texture itself and this is just a way to do it. Nonetheless I too would prefer manually editing the texture in photoshop as the result is much better and you have lots more freedom.

Posted: Wed May 12, 2004 9:23 pm
by blue60007
Oh sorry good point

Posted: Thu May 13, 2004 8:27 pm
by Jack Ruby
CTRL + L is a nice one too, play around with it.

Posted: Fri May 14, 2004 2:37 am
by Balr14
Put shadow-caulk over it.