Jump to content

Home

Help!! how do you make textures transparent


ape2man

Recommended Posts

Depends on what you wanna make.

 

Usually, you must create 32bits TGA file with the alpha channel. A channel marks the area which should be transparent.

 

Then you write a shader, smth in these lines:

path/texture
{
       {
               map path/texture
               blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        }
        {
                 map $lightmap
                 blendFunc GL_DST_COLOR GL_SRC_COLOR
         }
}

 

The code may vary depending on the effect you wanna achieve.

Link to comment
Share on other sites

Originally posted by ape2man

how do you do that in GTK

:D

 

You don't do that IN GTK. It's just a shader that does that. And I said that the shader code may vary. Your example is probably done like this:

 

path/texture
{
         q3map_nolightmap
       {
               map path/texture
               blendFunc GL_ONE GL_ONE
        }

}

Link to comment
Share on other sites

Originally posted by ape2man

Xcom 1 more question. A lot of the default shaders dont work becease they cant find the texture do you have this problem too.

 

Where? In the game or Radiant?

There are quite a few bogus shaders there, yes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...