Howto:Multi-channel lightmap: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 133: Line 133:


If not then with only the greyscale lightmap layer that you want to convert to the the first rgb color channel (r) selected, click on the Channel tab. De-select green and blue channels. All that you should have selected is the red and alpha channels. Save visible to new layer. This new layer is now the red channel layer (the first channel) of what will be your four channel lightmap. Repeat this process for the greyscale image (lightmap) that is going to represent the green channel and again for the one that will represent the blue channel.
If not then with only the greyscale lightmap layer that you want to convert to the the first rgb color channel (r) selected, click on the Channel tab. De-select green and blue channels. All that you should have selected is the red and alpha channels. Save visible to new layer. This new layer is now the red channel layer (the first channel) of what will be your four channel lightmap. Repeat this process for the greyscale image (lightmap) that is going to represent the green channel and again for the one that will represent the blue channel.
When finished with this step you should have three different original lightmaps, each in their own color channel (rgb).


[[File:Tutorial 05.jpg|400px|Changing greyscale to one color channel]]
[[File:Tutorial 05.jpg|400px|Changing greyscale to one color channel]]
Line 138: Line 139:


For the alpha channel, duplicate the greayscale layer that you want to convert to the alpha channel.
For the alpha channel, duplicate the greayscale layer that you want to convert to the alpha channel.
[[File:Tutorial 06.jpg|thumb|Duplicate greyscale for alpha conversion]]


[[File:Tutorial 06.jpg|800px|Duplicate greyscale for alpha conversion]]


[[File:Tutorial 07.jpg|thumb|Convert greyscale to alpha (color to alpha)]]
 
Select color to alpha.
 
[[File:Tutorial 07.jpg|600px|Convert greyscale to alpha (color to alpha)]]
 
 
Chance the color selector to black by clicking on it and choosing r = 0, g = 0, b = 0, apply.


[[File:Tutorial 08.jpg|thumb|Color to alpha details]]
[[File:Tutorial 08.jpg|thumb|Color to alpha details]]
Next you can apply some Gaussian blur to each of the channels you have now created (rgba)


[[File:Tutorial 09.jpg|thumb|Applying Gaussian blur]]
[[File:Tutorial 09.jpg|thumb|Applying Gaussian blur]]
The next step combines the channels back into one image that will be the final lightmap used by the shader in FlightGear.
With the images in order by r, g, b, a Using the dropdown below the Channel/Path/Layer tabs, put the red and green layer to additive. Leave the b layer to normal. make sure they are the only layers active. The last layer (blue) will show to have all three channels combined. select that layer and copy it to a new layer or use the "Layer" menu choice "To new layer".
Were almost finished, The next step adds the alpha channel to the 3 channel rgb layer you just created.


[[File:Tutorial 10.jpg|thumb|Combing color channels by addition]]
[[File:Tutorial 10.jpg|thumb|Combing color channels by addition]]
330

edits