Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Feb 2008
    Posts
    9

    Default TGA and transparent backgrounds

    Hi everyone. I am new to these forums and have come up against a barrier in a mod that i am making for an old game (Wizardry 8) which uses tga graphic files for all its textures.
    I don't seem to be able to make a file with both opaque and transparent texture in it.
    Example would be a leaded window where i would like the window part fully opaque (i say leaded but actually it would be gold)
    I know this is something to do with masks and the Alpha channel but i have not figured it out.
    When i blank out the window part then the other colours in the image become semi-transparent and if i don't i get black window that i cannot see through.

    Could someone tell me or point me to a thread that explains how you get a transparent background while pr0tecting the rest of the image from any kind of transparency ?

    PS. I am using PSP 5, but also have Adobe photoshop
    IP

  2. #2
    Join Date
    Jul 2007
    Location
    Brockville, Ontario, Canada.
    Posts
    4,619

    Default Re: TGA and transparent backgrounds

    As far as I am aware, tga files do not support transparency.

    I'm sorry, but I have no idea what sort of workaround you will have to perform.
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.
    IP

  3. #3
    Join Date
    Feb 2008
    Posts
    9

    Default Re: TGA and transparent backgrounds

    They certainly do support transparency or they could not exist in the game i am editing which they do.
    Last edited by DoddTheSlayer; 12 February 2008 at 07:33 PM. Reason: bad spelling mistake
    IP

  4. #4
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,309

    Default Re: TGA and transparent backgrounds

    Hi welcome to TG

    tga can have alpha channel [transparency] - photoshop supports this - not sure about psp5

    if you post up an example to explain what you mean it might help
    -------------------------------
    Nothing lasts forever...
    IP

  5. #5
    Join Date
    Jul 2007
    Location
    Brockville, Ontario, Canada.
    Posts
    4,619

    Default Re: TGA and transparent backgrounds

    Humble apologies!
    Keith
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    There are 10 types of people in this world .... Those who understand binary, and those who don't.
    IP

  6. #6
    Join Date
    Feb 2008
    Posts
    9

    Default Re: TGA and transparent backgrounds

    Ok try this.

    http://img181.imageshack.us/img181/4...eegreenou4.jpg

    This is a tree that in the game there is no black background of course and the the tree part is entirely protected from any transparency and is completely opaque.

    When you load the mask from the alpha channel in psp 5 the tree shows as black on a white background.
    I tried working backwards by deleting the mask and then creating another one to re-produce the masked image, but i am missing something because it just does not work.
    I either get the black background or no background with a semi-transparent tree which is no good to me.
    This is ipg image was originally a tga file that i altered for imageshack.

    I will be happy to know how to do this using any image editor.
    IP

  7. #7

    Default Re: TGA and transparent backgrounds

    Never worked with TGA myself. Had a quick Google and found referrence to saving TGA without Alpha using layers.

    I started out with PS7 on my current PC, and apparently that version had a feature where you didn't have to create alpha channels in order to save a targa with transparency - you just created your image, adjusted the transparency of the applicable layers, and saved it as a 32-bit targa.
    It didn't go on though.

    Maybe a clue?
    IP

  8. #8
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: TGA and transparent backgrounds

    A tutorial about using Masks in PSP 5 is at
    http://www.mardiweb.com/web/masks5/masks501.htm
    Page two of the tutorial shows using a black and white mask to make the black background of a rose image transparent.

    The mask you mentioned where the tree is black on a white background. I think that if you reverse (make a negative) of that mask you may have what you need.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update
    IP

  9. #9
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,309

    Default Re: TGA and transparent backgrounds

    here is a 32bit tga of your tree ithas a transparent background - it was created in toon boom

    when you open it in photoshop and look at channels you will see that the alpha channel is there

    this confirms that you can get the tga to have alpha channel - still working on how to do it in photoshop - think I would be happier with gimp
    Attached Files Attached Files
    -------------------------------
    Nothing lasts forever...
    IP

  10. #10
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,309

    Default Re: TGA and transparent backgrounds

    ok progress - screen shot from gimp - rough and ready as I only removed black rather than spend time making a mask - but gimp will open and save 32bit alpha tga without turning a hair

    I think it must have been gimp I was thinking of in the first place [keith - I too make mistakes ] - gimp is free - if you want to go that way let me know
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	gimp screen shot.jpg 
Views:	2771 
Size:	40.4 KB 
ID:	45377  
    -------------------------------
    Nothing lasts forever...
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •