It is currently Wed Nov 11, 2026 10:16 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [DECIDED TO BE IMPOSSIBLE] Convert a layer to an image's Alpha Channel
PostPosted: Sun Jan 17, 2016 6:06 am  (#1) 
Offline
New Member

Joined: Jan 17, 2016
Posts: 3
GIMP Version: 2.8.14
Operating System: Windows
OS Version: 8.1
GIMP Experience: Intermediate Level



Hi all,
For a game I do texture work for, environment reflections on the cars are governed by the Alpha Channel; White is maximum reflection, Black is no reflection.
Before being converted into the game's texture format, files are .tga format.

My normal workflow is painting the car in GIMP (Picture 1), creating a Layer at the top of the stack called 'Alpha' and painting the appropriate grey-scale shades on this layer (Picture 2).

(Doing it like this, when all the components are on separate layers, means I can more easily select areas of the same desired reflection level, rather than trying to select stuff once it's been exported to .tga)

I'll then hide the 'Alpha' layer, export to .tga and copy and paste this 'Alpha' layer into the .tga's Alpha Channel.

What I'm hoping for is a quick and easy way to turn my 'Alpha' layer into the Alpha Channel for the whole image, such that when I export to .tga I don't have to even open it.

Is there a feature (or third-party script/plug-in) to allow me to do this?

Cheers,
Doug


Attachments:
File comment: Picture 2 - 'Alpha' layer visible
002.png
002.png [ 204.54 KiB | Viewed 3085 times ]
File comment: Picture 1 - Painted Car
001.png
001.png [ 341.24 KiB | Viewed 3085 times ]


Last edited by AUS_Doug on Thu Jan 21, 2016 8:43 pm, edited 1 time in total.
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Convert a layer to an image's Alpha Channel
PostPosted: Sun Jan 17, 2016 9:35 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12856
You could just paint a layer mask or copy a layer and paste it onto the mask. Then just apply the mask when your done (or leave it as is). :)


Attachments:
lm.png
lm.png [ 224.32 KiB | Viewed 3050 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Convert a layer to an image's Alpha Channel
PostPosted: Sun Jan 17, 2016 4:35 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
Grue expounds a very clever trick for this on Reddit.

_________________
Image


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group