Page 1 of 1
Light Emitting Textures
Posted: Sat Oct 18, 2003 12:46 am
by CypheR
ok. i would like to know if its possible to change the color of the light that is emitted by a light emitting texture... and if possible, how could i do it?
Posted: Sat Oct 18, 2003 3:13 am
by bdbodger
It may be possible you should read a shader manual that is how the texture is made light emmitting . Here is one link .
http://www.qeradiant.com/manual/Q3AShader_Manual/
Posted: Sun Oct 19, 2003 1:01 am
by CypheR
ok...thx. but a more specific answer would be greatly apreciated... i dont understand much of what is written in there...sorry.
No
Posted: Sun Oct 19, 2003 1:08 am
by tltrude
I don't think you can because the color of the light is an average of all the light colors in the texture image. So, the only way to change the color is to change the image itself. However, you can place a weak point light near the light emitting texture on the map and the two lightmaps should mix.

Posted: Sun Oct 19, 2003 2:05 pm
by TheStorm
You can change the light that a texture is emitting by editing the shader but as tltrude said, that won't change the texture itself. Would look strange if a texture with blue surface is emitting a red light. But you can always edit a texture to. Just copy the texture and edit it and save it with a custom name, then copy the original shader and make a custom one for your new texture.
This should be in your shader
q3map_surfaceLight 300
surfaceColor 0 1 0
The first one is for the "strength" of the light....work as the key "light" that you can set for a light entity in mohradiant
The second one is for the color! To find the value for a color you want, open mohradiant and put in a light entity. Make sure it's selected and press K, you will get an "palette" choose the color you want to have for your light emitting surface. When you have choosen a color the entity will get a key and value. Write down the value and then use it in the shader for your light emitting surface.
surfaceColor 0.0078 0.9999 0.1100 (this was just an example...haven't got a clue wich color this is).

Posted: Mon Oct 20, 2003 11:47 am
by CypheR
Thanks alot TheStorm. was exactly wath i was looking for, its easy and it works perfect!!! that help is greatly apreciated. thx again
