make a texture more dark

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

make a texture more dark

Post 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
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post 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.
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post 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.
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Oh sorry good point
Image
User avatar
Jack Ruby
General
Posts: 1443
Joined: Fri Feb 07, 2003 12:20 am
Location: london

Post by Jack Ruby »

CTRL + L is a nice one too, play around with it.
Philip II of Macedon sent a message to Sparta:
"If I win this war, you will be slaves forever."
The Spartan ephors sent back a one word reply: "If".
Balr14
Colonel
Posts: 450
Joined: Sat Aug 03, 2002 4:01 am
Location: Germantown, WI, USA

Post by Balr14 »

Put shadow-caulk over it.
Post Reply