Jump to content

Home

lighting


epikon

Recommended Posts

Posted

I was wondering, after texturing a light with a light texture how do i get it to have that glowing effect? I have the light source by the light but it dosnt seem to have that glowing effect. Thanks for helo

Posted

To create the effect you mention you need to create a shader with your chosen textures and add a glow parameter to the blending stage with glow texture and possibly an optional flare effect.

 

A possible shader with the glow parameter highlighted could look like following:

 

textures/yourmap/yourlight
{
q3map_flare	gfx/misc/flare
   {
       map $lightmap
   }
   {
       map textures/yourmap/yourlight
       blendFunc GL_DST_COLOR GL_ZERO
   }
   {
       map textures/yourmap/yourlight_glow
       blendFunc GL_ONE GL_ONE
       [color=red]glow[/color] 
       rgbGen identity
   }
}

Posted

Heres what I did, if your using the textures in the flares directory:

 

Cover the whole brush with nodraw, then (keep in mind, that you will only be able to see the flare on one side, the side you put it on) then put the flare texture you want on the side you want. If you put it on two sides, it will look like there are 2 flares (and also, sometimes you can see certain flars through walls.. keep that in mind.

Posted

for the glow texture that you combine it with, how should that be made? Should it be a .jpg or .tag? Also, does the colour of the parts that glow effect the colour of the glow?

Archived

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

×
×
  • Create New...