Jump to content

Surface lights


Go to solution Solved by SomaZ,

Recommended Posts

Hello, I am once again asking for help, this time with surface lights. I have this wierd problem where emissive textures don't emit light on a surface next to it, neither does the sun of the skybox. No matter what parrameters I put in the shader it just doesn't want to emit light on a surface. I made a map a few years ago, used the same textures and the same shader, it just to emit light on old map, now it doesn't.  Any ideas how to fix this problem?

Link to comment

As for the light/lamp:
textures/cinema2/justlight
{
qer_editorimage textures/cinema2/justlight
q3map_surfacelight 500
q3map_lightsubdivide 64
    {
        map $lightmap
    }
    {
        map textures/cinema2/justlight
        blendFunc GL_DST_COLOR GL_ZERO
    }
    {
        map textures/cinema2/justlightglow
        blendFunc GL_ONE GL_ONE
        glow
        rgbGen identity
    }
}

 

As for the skybox:
textures/cinemasky/sky
{
    q3map_lightimage    textures/colors/white
    qer_editorimage    textures/cinemasky/sky6
    q3map_surfacelight    100
    q3map_lightsubdivide    512
    sun 0.75 0.79 1 250 270 40
    surfaceparm    sky
    surfaceparm    noimpact
    surfaceparm    nomarks
    notc
    q3map_nolightmap
    skyParms    textures/cinemasky/sky6 4096 -
}

 

Link to comment

I have also found out that newer q3map2 uses q3map_skylight instead of q3map_lightsubdivide  and q3map_surfacelight . Thus I also tried sky shader that I found on the internet: 

textures/cinemasky/sky
{
    skyparms textures/cinemasky/sky6 4096 -

    q3map_lightImage textures/cinemasky/sky6

    q3map_sunExt 1 1 1 140 -35 25 3 32
    q3map_lightmapFilterRadius 0 8
    q3map_skylight 100 6

    surfaceparm sky
    surfaceparm noimpact
    surfaceparm nolightmap
    surfaceparm nodlight

    nopicmip
    nomipmaps

    qer_editorimage textures/cinemasky/sky6
    }
}

It also didn't have any effect on the map itself.

Link to comment
  • Solution

We had a talk about this over on discord. It boils down to:

GtkRadiant wasn't configured correctly and shader file name was not added to the shaderfiles.txt file in the shaders folder under base.

NAB622 likes this
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...