Jump to content

Transparency in TGA files


Recommended Posts

I dunno if this would answer what I did with TGA files, the originals were PNG's but the tutorials called for TGA's

if I recall the TGA is a 24bit + alpha you can open it in photoshop though and verify, I can dig up the original PNG as well, since I kept all my Castle textures archived

 

This is from my Haunted Graveyard Map

 

Fence TGA:

http://www.mediafire.com/view/?z6hrhqv998gi9qv

 

textures/graveyard/fence
         {
         Cull none
         qer_editorimage textures/graveyard/fence.tga
         {
         map textures/graveyard/fence.tga
         blendFunc blend
         alphaFunc GT0
         depthWrite
         rgbGen identity
         }
         {
         map $lightmap
         rgbGen identity
         blendFunc GL_DST_COLOR GL_ZERO
         depthFunc equal
         }
         }

Link to comment

eezstreet, on 18 Mar 2013 - 19:39, said:

JKA uses certain colors for transparency only if you have a shader. Otherwise, just use an alpha channel for TGA/PNG

Don't you still have to use a shader when using the alpha channel? Or is the default shader sufficient?

 

--edit--

Way to answer too late. That was the latest post I read. :D

 

OmegaSigma, that shader is not useful for models since it references a lightmap, which playermodels don't have. Master_Ibonek, take a look at the shader for Chewie's fur instead, that's transparent as well.

Link to comment

well major kusangi's hair the texture is rather flat, and Im assuming the shader removes the black from the image or the TGA has alpha

 

models/players/kusanagi/hair
{
 cull disable
    {
        map models/players/kusanagi/hair.tga
        alphaFunc GE192
        rgbGen lightingDiffuse
    }
}

Link to comment

well major kusangi's hair the texture is rather flat, and Im assuming the shader removes the black from the image or the TGA has alpha

 

models/players/kusanagi/hair

{

 cull disable

    {

        map models/players/kusanagi/hair.tga

        alphaFunc GE192

        rgbGen lightingDiffuse

    }

}

Still crashes.

spacer.png

Link to comment

Because no matter what shader you use, it doesn't seem to work. So the shader can't be the problem, right?

I just mean that I don't know what the problem with it would be. No clue at all.

 

Now it's not crashing but it doesn't make the alpha channel transparent.

 

 

If you must know, I'm rekinning Toshi's Luke to how he looks in A New Hope. It would be fine if it didn't have the collar there.

spacer.png

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