Light Emitting Textures

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

Moderator: Moderators

Post Reply
CypheR
Colour Sergeant
Posts: 84
Joined: Sat Apr 26, 2003 1:16 pm
Contact:

Light Emitting Textures

Post 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?
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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/
CypheR
Colour Sergeant
Posts: 84
Joined: Sat Apr 26, 2003 1:16 pm
Contact:

Post by CypheR »

ok...thx. but a more specific answer would be greatly apreciated... i dont understand much of what is written in there...sorry.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

No

Post 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.

Image
Tom Trude,

Image
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post 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). :P
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
CypheR
Colour Sergeant
Posts: 84
Joined: Sat Apr 26, 2003 1:16 pm
Contact:

Post 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 :D
Post Reply