ETXreaL is a graphics mod for Wolfenstein: Enemy Territory using the enhanced XreaL id Tech 3 GPL engine.

Forum Thread
by member
  Posts  
Conventions and examples (Mods : ETXreaL : Forum : ETXreaL Texture Creation : Conventions and examples) Locked
Thread Options
Jul 18 2011, 11:51am Anchor

Naming

New style:**

diffuse:                    [original texture name]
normal map:           [original texture name]_norm
displacement map: [original texture name]_disp
specular map:        [original texture name]_spec

Old style: - Do not use this one

diffuse:                    [original texture name]
normal map:           [original texture name]_normal
displacement map: [original texture name]_parallax *
specular map:        [original texture name]_spec

*In other instances,it's also called _disp from displacement. _parallax Was chosen because it's used to generate a parallax map[1].

** after many fierce debates, in which at least 2 animal species were insulted and 70 pages of troll was posted, we settled on a new standard at 18 july, 2011. From then on, all new textures have to obey the new standard.

A random shader

Quote:textures/directory/trol_face
{
    qer_editorimage textures/directory/trol_face
    
    diffusemap        textures/directory/trol_face
    bumpmap         displacemap( textures/directory/trol_face_norm, invertColor(textures/directory/trol_face_disp) )
    specularmap        textures/directory/trol_face_spec

}


A shader with a transparancy

Quote:textures/directory/trol_face
{
    qer_editorimage textures/directory/trol_face
    
    {
                stage diffusemap
                map             textures/directory/trol_face
                alphaTest       0.5
       }
    bumpmap         displacemap( textures/directory/trol_face_norm, invertColor(textures/directory/trol_face_disp) )
    specularmap        textures/directory/trol_face_spec

}

Edited by: Eonfge

Reply to Thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.