Jump to content

FUNC_ Entity & Specular


Recommended Posts

Posted

So I'm trying to add specular to my func_static and func_door, but alphaGen lightingSpecular doesn't work. alphaGen wave inversesawtooth 0 1 0 1.65 does so I've ruled out alphaGen itself not working with it.

 

Things to know:

 

- tried a seperate specular texture and specular in the diffuse alpha channel, no luck

- tried shaders that work on normal brushwork & MD3 models, no luck

 

 

Anyone have an idea as to what seems to be blocking a func_ entity from using alphaGen lightingSpecular? @@ensiform @@Xycaleth

Posted

@@Xycaleth Here's my shader:

textures/df2_lifts/lift1
{
    {
        map textures/df2_lifts/lift1
        blendFunc GL_ONE GL_ZERO
        rgbGen vertex
    }
    {
        map textures/df2_lifts/lift1_s
        blendFunc GL_SRC_ALPHA GL_ONE
        detail
        alphaGen lightingSpecular
    }
    {
        map textures/df2_lifts/lift1_glow
        blendFunc GL_ONE GL_ONE
        glow
    }
}

Glow works, just not specular.

Posted

mmm if i remember, lightningdiffuse \ specular works good for glm models, vertex for 2d shaders (like flags and banners).

for brush and MD3 models should use rgbgen identity.

maybe there is some reflective entity glass on some map game that allow to check how is the shader for a func_entity brush with light specular surface... maybe some glass door.

models/map_objects/pillars/symbol4
{
    surfaceparm    trans
    q3map_material    rock
    q3map_onlyvertexlighting
    {
        map models/map_objects/pillars/symbol4
        blendFunc GL_ONE GL_ZERO
        detail
        rgbGen identity
    }
    {
        map models/map_objects/pillars/symbol4
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        detail
    }
   {
        map $lightmap
        blendFunc GL_DST_COLOR GL_ZERO
        rgbGen identity
        detail
    }
}

maybe this shader parameters of my mod can be of help.

a metallic weapons example maybe can be of more help:

 

models/weapons2/concussion/gun
{
    {
        map models/weapons2/concussion/gun
        blendFunc GL_ONE GL_ZERO
    }
    {
        map models/weapons2/concussion/spec
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_AKPHA
        detail
        alphaGen lightingSpecular
    }
    {
        map models/map_objects/cda/marble_env6
        blendFunc   GL_DST_COLOR GL_ZERO
        alphaGen const 0.5
        tcGen enviroment
 
Posted

Works on everything else as usual. Alphagen wave even works on func ents but alphagen specular doesn't so I dunno. I've had to resort to loading an md3 model from the func_static.

  • 3 weeks later...
Posted

Speculars doesnt work on the md3 models that are parent with the func_doors or func_trains.. dunno why.. (they sorta doesnt work.. sometimes i see the _spec texture but it is bugged)

Maybe it doesnt work on other func_'s as well.. :S

 

Posted

Specular is working on MD3's that are loaded using func_ ent which is my workaround for func_ ent brushwork not being able to use specular.

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