Jump to content

Home

Textured Lights possible?


WJTW

Recommended Posts

Posted

I am wondering if textured lights are supported in JKII, because textured lights look better and more natural than normal entity lights, as I've seen in some other games.

 

Thanks,

WJTW

Posted

Sure they are supported- just use a shader similar to this:

textures/textured_light/light2k

{

qer_editorimage textures/textured_light/light2k.tga

q3map_surfacelight 2000

surfaceparm nomarks

{

map $lightmap

rgbGen identity

}

{

map textures/textured_light/light2k.tga

blendFunc GL_DST_COLOR GL_ZERO

rgbGen identity

}

{

map textures/textured_light/light2k_blend.tga

blendFunc GL_ONE GL_ONE

}

}

 

 

Now just make two textures- 1. the texture to be displayed on the light and

2. a texture showing a) the areas that the light should come from and b) the color of the light

Posted

yup.

and to make the light that the shader emits coloured

put:

 

q3map_lightimage textures/mytextures/mytexture

 

after the q3map_surfacelight line

 

the compiler will take the texture specified and take the average colour and colour the light that colour. Try:

 

q3map_lightimage textures/colors/red (to emit red light)

 

to see what i mean.

Posted

Hmmm... seems difficult. Maybe I cannot visualise the process.

 

Does anyone know any tutorials regarding this?

 

And the JK2Radiant tool is quite tough. Resizing and selection objects is not even drag and pull, point and click (respectively)... or maybe I've done something wrong.

 

WJTW

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...