WJTW Posted November 22, 2002 Share Posted November 22, 2002 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 Link to comment Share on other sites More sharing options...
Tigris Posted November 22, 2002 Share Posted November 22, 2002 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 Link to comment Share on other sites More sharing options...
Gignatz Posted November 25, 2002 Share Posted November 25, 2002 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. Link to comment Share on other sites More sharing options...
WJTW Posted November 26, 2002 Author Share Posted November 26, 2002 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 Link to comment Share on other sites More sharing options...
taboo Posted November 26, 2002 Share Posted November 26, 2002 A good resource for shaders is Q3A Shader Manual. I would suggest that you look at some of the light textures and their shaders that came with the game and learn from them. Link to comment Share on other sites More sharing options...
Tigris Posted November 26, 2002 Share Posted November 26, 2002 Well, you could use Q3ASE as a help, because it shows you pretty much how your shader will look once you've got it ingame... Here's the link! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.