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

Intensity of BGL_LIGHT's

Messages
103
Country
belgium
Hi,

Maybe this question has been asked before, but I couldn't find a solution with the 'search' function.

I'm working on several light objects in our scenery and I was wondering if there is a way to decrease the intensity of BGL_LIGHT's. I have for example the following line in my fs9-asm-code:

BGL_LIGHT LIGHT_NAV, -33.322, 4.879, -115.525, 20, 0.60, 0.40, 0FFFFFF87h, 0.000000, 0.000000, 1.000000

I know that some of the parameters are the xyz coördinates, and the hex value is the color. But isn't there a parameter to control the intensity?

Thomas
 
Hi

The lights are accumilative. ie.. if you use more than one they will appear brighter. I'm not aware that there is a way to increase the intensity otherwise but somebody else may know for sure.
 
Here's the macro:

Code:
BGL_LIGHT macro ltype,x,y,z,intensity,li_atten,sq_atten,color,nx,ny,nz
    dw BGLOP_LIGHT ; 0ADh
    dw ltype ; light type
    real4 x,y,z ; light offset
    dd intensity ; light intensity
    real4 li_atten ; linear attenuation factor
    real4 sq_atten ; squared attenuation factor
    dd color ; light color
    real4 nx,ny,nz ; light direction
endm

As you can see, there is a variable for intensity. The color variable should also affect the brightness.

Dick
 
Last edited:
Hmm, I tried to play with the parameters, but without result.
So in my example the intensity value is '20'. I changed this to '10' and to '2', but with no changes in the intensity. I also played with the li_atten,sq_atten parameters, but with no visual effect....


Thomas
 
Hi Thomas,

It seems some of the parameters giving in the macro Dick showed do not work. So I think apart from playing with the color there is not too much you can do.
 
Hi Thomas.

The color is expressed as 0FFFFFF87h.

FF FF FF 87

red green blue and '87' may equal brightness.


Lowering the color values should lower the brightness... or the number 87 may do the trick. For example, 088888887h might work.

It may well be that intensity, li_atten, and sq_atten, no longer are used in the current sim version.

Dick
 
Hi,

I don't know what you are trying to do, but it seems you have mixed the macro posted above by Rhumbaflappy in your ASM file. That is not how it works :).

The macro as posted above, is the code that BGLC uses when you use the BGL_LIGHT command. It was just posted to explain what all parameters do.
 
hmm.. i dun know much about the codings..
but tis is what i do ,
i juz edit the xml
scale and altitude increase the range
making 4 of these

Code:
	<SceneryObject lat="2 15.7654" lon="102 15.1225" alt="90" pitch="89.9" bank="0" heading="0" altitudeIsAgl="TRUE" imageComplexity="VERY_SPARSE">
		<LibraryObject name="FEC13CA7576445B3A99C9CEF9C963E25" scale="4.0" />
	</SceneryObject>

coding with 0 , 090 , 180 , 270 heading to make the light round and more intense .

http://img509.imageshack.us/img509/2455/intense5wy.jpg

hopefully this helps , note me if im wrong :wave:
 
Last edited:
Thanks for sharing this, this is an interesting idea. I never tried to change the scale when placing the lights to change their intensity. Will remember this the next time I place some lights.
 
Hi Thomas,

Intensity value seems to be not implemented in current FS version.
Take a look on this thread. May be it will sort things out.
 
Last edited:
Here's the macro:

Code:
BGL_LIGHT macro ltype,x,y,z,intensity,li_atten,sq_atten,color,nx,ny,nz
    dw BGLOP_LIGHT ; 0ADh
    dw ltype ; light type
    real4 x,y,z ; light offset
    dd intensity ; light intensity
    real4 li_atten ; linear attenuation factor
    real4 sq_atten ; squared attenuation factor
    dd color ; light color
    real4 nx,ny,nz ; light direction
endm

As you can see, there is a variable for intensity. The color variable should also affect the brightness.

Dick

Hi,
just read this post. As bgl lights iintensity is cumulative, I'd like to attenuate intensity with distance when several lights are set close together.
I tried to modify attenuation factors but seems to have no effect.
Does anybody have furher informations ?
Thanks
--
ALain,
who apologizes for his poor english
 
Last edited:
Hi ALain,

As mentioned before in this thread as well, not all parameters of the BGL_LIGHT command are actually supported by the scenery engine. It seems they added some parameters for future growth, but never got to actually implement them. So the attenuation factors seem to have no effect at all.
 
Hi,
Well the only way i found is lowering luminance directly inside the colour code.
Thank you
--
ALain
 
Back
Top