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

BGL lights color question

Messages
302
Country
us-newjersey
Hello All

Im stumped on how to figure out how to change the color of my BGL lights. Ive searched through out the forum and looked at the various examples but just dont seem to get an understanding of how to get the values.

BGL_LIGHT LIGHT_NAV, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0FFABABABh, 0.000000, 0.000000, 0.000000 ; Color is AB AB AB (rgb hex)

Basically what im trying to do is i created 4 BGL lights very close to each other for some floodlights. I created 3 different lods depending on the distance to avoid the lights getting brighter which works perfectly as when you are close you will see all 4 lights, then as you move away 2 of them turn off, then the last lod only consists of one BGL light which works great. To add a more realism to it, i want to change to color of each set of lod's to give more of an effect of fading out when moving away from them. Basically, I have white lights now and for each lod, i want to add some grey to it
I understand where to change in the code above but just cant understand how to figure out the values for rgb and what the letters and numbers are.

If someone could perhaps help in giving me a better understanding on how to achive this or point me to some material that might help explaine this better it would be greatly appriciated.

Dave
 
Hi Dave,

I am not familiar with this way of editing lights, but from reading ur post, it seems to be the hexadecimal numbers you're having problems with.

If so, simply open the windows calculator, enter the decimal values individually for the red, green and blue components of your color. Then simply move the radio button from DEC (decimal) to HEX (hexidecimal).This is located in the top left corner of the calculator. This will give you the equivalent hex code for your color.

For example:
Full white = 255,255,255 Decimal (Red,Green,Blue) = FF,FF,FF in Hex
Mid grey = 127,127,127 Deciaml (Red,Green,Blue) = 7F,7F,7F in Hex
Full Black = 0,0,0 Decimal (Red,Green,Blue) = 00,00,00 in Hex

Then this part 0FFABABABh
would become (for mid grey) 0FF7F7F7Fh

Basically Hexidecimal is a base 16 notation(hex as in hexagon = 6 sides+10 decimal), that is it uses 16 'digits' which are: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

This is like a shorthand notation to represent (in this case) upto 255, only using two 'digits'.

Hope this helps :)
 
Hey Phoenix,

Thanks for the reply and the info as this great does help. I actually just figured a way to get the colors by using the fs2002 gmax gamepack and exporting an object, keeping the files and getting the hexidecimal numbers that way.

As this way is rather easy to get the code you need for a specific color, it doesnt help me understand or others for that fact but what you provided really does help as getting a better understanding how the files work and has helped me better understand it.

Thanks again for the great info

Dave
 
If ur using the standard gmax colors, i.e like the color used when creating an object, unfortunately gmax doesn't show any rgb values. But if you use the material editor to apply the colors, this will give you the RGB values in decimal. Then you simply need to convert them to hex.

If you must use the standard colors, a simple way to get the rgb value is to have the object selected, then press the [Print Screen] key, this will copy ur screen to the clipboard. Then open your paint program, paste a new image (from the clipboard) and use a color picker tool to select colors from the section on the right where the object is named and pick the color from there. The object in the main window will most likely have some highlights on it, so this wouldn't be the ideal place to 'pick' the color from.

If you let me know which paint program ur using, I maybe able to steer you in the right driection.
 
Hey Phoenix

I used the material editor in gmax to get the rgb values. When u export an object with fs2002 gamepack(used the material editor and selected a random color) i just realized when you keep the files and open the asm. file that it puts the value already in hexidecimal format where as fs2004 gamepack doesnt..uses decimal format. Being that i hardly use the fs2002 gamepack, it never occured to me until after i started the thread to give it a shot and see. I rather use your way as it is alot easier to use the calculator to find the hex values. Again thanks for all the useful info as it helped me greatly and others im sure.

Dave
 
Back
Top