• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Challenge: Light maps

Heretic

Resource contributor
Messages
6,830
Country
germany
Here's a challenge:

1. Create a light map

2. In GIMP. No Photoshop.

3. Alpha Channel is a mix between pure black (windows, logo lights) and pure white (landing lights)

4. Do not use DXTBMP to add in the alpha channel manually.

5. Get it to work in FS9.

6. Do not do any polygon detaching, copying and visibility tagging with a "light splash" in GMax. Also, if you create a single, extra material, you lose instantly.


My personal highscore:

Pure white alpha: Works.
Pure black alpha: Doesn't work (GIMP makes EVERYTHING transparent)
Mixed alpha: I got this to work exactly once. I don't know how.


Help me get better at this.
Go, go, go!




- Edit 1:

Cheat: DXTBMP is now allowed.


Also, texture format seems to have a word in this matter. With DXT1, the alpha screws up everything, while in DXT3, DXTBMP shows the texture fine. 32bit works as well. ImageTool, on the other hand doesn't display any file with a black alpha channel properly.




- Edit 2:

Hm...

Enabling the landing lights lights up EVERYTHING, while enabling the nav lights only lights up EVERYTHING BUT the landing light splashes.

If this is normal, the issue is solved...I guess.
 
Last edited:
I'll answer the bit I understand.

With DXT1 there is no discrete alpha channel, it is colourkeyed using an RGB value (usually 0,0,0)

Therefore, if you have black alpha ... you have no colour information at that point. "White" alpha is simply "No Alpha information"

AFAIK, DXT3 is the best compressed format that FS9 will use.
 
In FS9, this is massively easy if you are doing light maps on interiors/exteriors. These are activated via Alpha channels and are managed by Landing Lights command or Nav Lights command (in FS9) and are use the Alpha as the switch between the two, thus pure white is one switch option, black is another.

They should both work for you, no transparencies.

In fs9, make sure you use 'L' as the last part of the name, such as 'my_interior_texture_one_L.bmp'. Do not use LM, as that is for scenery in FS9.



I hope that helps. I forgot which one uses Landing Lights; black or white, so you'll have to experiment with that.


In fsx, you no longer have to use the L, or LM, etc, on the back of the names.


Bill
 
Heretic, you should really try P3D for 30 days via the Dev '30 days only' purchase, and see how you like it. P3D is like FS2004 with FSX things in it. You will thank me later. $10.00 USD to find out and play for 30 days.

:cool:
 
I'll answer the bit I understand.

With DXT1 there is no discrete alpha channel, it is colourkeyed using an RGB value (usually 0,0,0).

DXT1 does have an Alpha channel, but it is only 1bit wide! It can only be black and white (1,1,1 and 0,0,0).

For FS9 lightmap control purposes, the entire Alpha channel must be pure black or pure white.

DXT1 DXT1 is recommended if the image in question employs a 1 bit Alpha channel (only Pure Black and Pure White)

DXT3 DXT3 and DXT5 should be used for images which employ 4 or 8 bit Alpha channels (16 or 256 grayscale levels). DXT3 and DXT5 both end up using the same amount of disk space when compressed, however the DXT5 compression scheme employs a better algorithm to compress the Alpha channel. DXT3 images can include some rather unsightly compression artifacts in the Alpha channel.

DXT5 Use the DXT5 option for any image where the Alpha channels bit depth needs to be 8 bit.
 
I'll answer the bit I understand.

In my defense, I was *very* tired and slightly drunk. :o




Thanks Bill, but I already knew that.



Heretic, you should really try P3D for 30 days via the Dev '30 days only' purchase, and see how you like it. P3D is like FS2004 with FSX things in it. You will thank me later. $10.00 USD to find out and play for 30 days.

:cool:

No, thanks.

1) I've still got FSX
2) My laptop can't handle anything beyond FS9
3) No trial versions. Either a dev subscription or bust.



DXT1 does have an Alpha channel, but it is only 1bit wide! It can only be black and white (1,1,1 and 0,0,0).

For FS9 lightmap control purposes, the entire Alpha channel must be pure black or pure white.

That's the puzzling thing. I thought DXT1 would work without hiccups.
 
DXT1 does have an Alpha channel, but it is only 1bit wide!

Bill. As I explained, It is a "fake" alpha channel ie Colourkey. The algorithm chooses an RGB colour and calls that "Black alpha"

If you want to test this out, try putting RGB colour information (say a nice blue colour) in pixels where there is black alpha and see what happens to it.

The short story is .. you can't. there is NO discrete alpha channel. This, of course may not matter, if DXT1 is suggested for FS9 LM's. If the black alpha bits are supposed to have RGB information as well, then it will not work.

@Bjoern:

Nothing wrong with your description ... just my comprehension!
 
Last edited:
Bill. As I explained, It is a "fake" alpha channel ie Colourkey. The algorithm chooses an RGB colour and calls that "Black alpha"
How the Alpha channel is stored in a compressed DXT1 .bmp file isn't really all that relevant to the modeler or texture artist insofar as the creation process is concerned.

What is relevant is that in the paint program itself (such as Photoshop), one creates an Alpha channel and floodfills it with either pure white or pure black. In this respect the procedure in Photoshop, PSP, et alia is precisely the same irrespective of the compression method one plans to use.

In practice I've only used DXT1 compression for lightmaps, which are typically limited to shades of gray in the RGB channels, and white or black in the Alpha channel.
 
Last edited:
"DXT1 vs. DXT3" discussion aside, the lightmap (or Imagetool) is letting me down (again).

- Exported from GIMP as 32bit .bmp, ensured that the alpha channel is pure black (0,0,0), with selected parts in pure white (255,255,255)
- Converted to DXT3 in Imagetool and looking a-ok in there
BUT
- Only the parts with white alpha (i.e. landing light splashes) show up in FS9, the nav light activated ones refuse to be visible at all


Maybe I should really stick to DXTBMP for conversion...
 
How the Alpha channel is stored in a compressed DXT1 .bmp file isn't really all that relevant to the modeler or texture artist insofar as the creation process is concerned.

What is relevant is that in the paint program itself (such as Photoshop), one creates an Alpha channel and floodfills it with either pure white or pure black.

If you floodfill ALL BLACK in the alpha channel as you suggest, there will be NO INFORMATION in the RGB channels at those pixels. IE no gradient. The alpha needs to be white if you want the gradient to exist in the compressed file.

This may not matter in this instance, given the DXT3 results.

Bjoern, have you tried using a 32bit tga as the intermediary file? (a format in which dxtbmp will automatically import the alpha channel)
 
Bjoern, have you tried using a 32bit tga as the intermediary file? (a format in which dxtbmp will automatically import the alpha channel)

Good idea, I might just try that.

(I've used .psd in Imagetool, but to no avail.)
 
Well, to be perfectly honest, it's FSX's Imagetool, not FS9's.
Although, in theory, this should not present a problem unless you accidentially choose DXT5 compression or .dds as output format.
 
This may not matter in this instance, given the DXT3 results.

My deepest apologies for my error. It's been so long since I've had to deal with FS9 stuff that I'd quite forgotten that all of my lightmaps have been saved as 16bit DTX3 .bmp files with pure black Alpha channel...
 

Attachments

  • DXT3_FS9_Lightmap.jpg
    DXT3_FS9_Lightmap.jpg
    426.3 KB · Views: 543
I have found that many formats that paint programs create (perhaps the 32 bit BMP from GIMP?) is not exactly the same as what DXTBmp (or Imagetool) is expecting.

I find it safest to:

1. Create the normal texture as a 24 bit BMP file.
2. Create a separate alpha channel image as a 24 bit BMP file. I copy the normal texture and add _alpha to the name, then edit it to black/white in the proper areas.
3. Load the normal texture into DXTBmp
4. Use Alpha/Import Alpha to add my separate alpha channel image.
5. Save as a DXT3 BMP file (NOT overwriting my 24 bit BMP images, in case I need them again).

As stated above, you cannot use a DXT1 image for night textures, since the black alpha channel will remove any color information from that area.

Hope this helps,
 
I have found that many formats that paint programs create (perhaps the 32 bit BMP from GIMP?) is not exactly the same as what DXTBmp (or Imagetool) is expecting.

Hmm...this rings a bell.

GIMP tends to screw up .bmps for IL-2 as well, as long as it saves color space information. So maybeeeeeeeee...

*Runs off*
 
1) Ticking "Do not save color space information" upon exporting a .bmp does not fix this.


2) Tom's "Bitmap assembly" method in DXTBMP, however, does. Input format did not matter, it worked just fine with two .psd files (one texture, one alpha) exported from GIMP.
 
Glad it works for you too. Sometimes that is the *only* method that worked for me. And yes, the inputs don't have to be BMP files, but any format that DXTBmp will support.
 
Well, I've set up separate, independently operating "lighting" polygons for the lights after all.
All for rewarding the itchy "switch flicking" finger...

(They still use the lightmap though, albeit in a separate material.)
 
Back
Top