View Full Version : textures
07-17-2002, 01:32 PM
Is it possible to control the amount of light a texture gives I have no lights in my level yet everything is well lit-but I wanted to darken it down a bit. Can I?
07-17-2002, 01:37 PM
you could edit the shader entry
07-17-2002, 02:19 PM
How exactly do I do access that and then what exactly do I do The only thing I have ever done with shaders is add one for my sky texture-oh and thanx.
07-17-2002, 03:32 PM
im not sure about making new shaders, and i dunno if you wanna edit existing shaders;
but there should be a variable named q3map_surfacelight, with a number after it; it controls the amount of light the texture gives off
07-17-2002, 11:15 PM
if you don't want to make new shaders, here's what i'd do, if you're only changing lighting:
first copy the shader folder to your desktop as a backup. open the shaders you used in notepad (the ones from the original shaders folder that's still in the base folder). you can lower the q3map_surfacelight numbers for each of the shaders you're using.
then save them. in the editor, go to textures --> flush and reload shaders. then recompile your map. experiment with different values.
since you only changed lighting, you won't have to include shader files with your map.
07-18-2002, 12:06 AM
Just be double sure that you revert the shaders back to their original files before you work on any other maps.
most screwup proof way to mess with shaders is to make your own shader file.
Additionally, extract the textures you want to emit light to a textures directory, and name it something personal so it's easy to identify.
Then in your custom shader file, cut and paste a shader entry into your file. Alternatively, just download this shader file and put that in your file. Two roads that get you to the same spot.
Then modify the file to point to your texture you have reserved in your own texture folder. If you used the file I just linked to, there are 5 lines you have to change.. I'll leave it to you to figure out which ones.
07-18-2002, 10:42 AM
But see, since all light rendering is predetermined, he wouldn't need to include any new shaders in the PK3, thus his suggestion.
Tho making new shaders would be much better. :D
jk2 won't "light" a texture if it's shader does not exist. All the generated light will appear like you expect but the texture itself won't be lit like you would see if the shader was present.
Texture tinting is apparently processed at runtime.
07-18-2002, 12:39 PM
Yes yes, but if all he was changing was surfacelight, that information would be hard-coded into the BSP. He wasn't going to change the glowyness of the shader. :p
07-18-2002, 12:42 PM
Are you sure you ran LIGHT, wombat? Just checking...if you didn't, everything would be uberbright
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.