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

P3D v4 Dynamic light visibility distance

Messages
54
Country
southafrica
hi
my lights only show up when im close to the terminal but when i taxi to the runway they dissapear ,how do i increase the visibility range and is it possible to have polygon lighting and switch to dynamic depending how far away you are?
thanks
Prepar3D_2018-09-29_18-13-25.jpg
ApplicationFrameHost_2018-09-29_18-16-09.png
 
Messages
168
You need an fx control file and you attach that to the object, and the control file references the dynamic light effect file. In control file you can set visibility distance and other parameters. Details on control file parameters are in sdk effects section.

It's not possible to do the switch you wonder about. It would need 2 sets of textures, and the sim to dynamically switch between them. It won't do that. Would be nice if it did.
 
Messages
54
Country
southafrica
Hi, sorry for the late reply, i have created the ctrl file and attached it but still didnt make a difference

Code:
[Library Effect]

Lifetime=5
Version=1.00
Radius=10000

Priority=0

[controller.0]
lifetime=0.0, 0.0
type=3
distance=1000000.00, 1000000.00
delay=10000000.00, 10000000.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=apronlight_FAOR, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
 
Messages
31
Country
unitedstates
have you found any solution to this? I am stuck with MMMX, i only get dynamic lights when I depart from there, and the controller file does not seem to make a difference
 
Messages
31
Country
unitedstates
It should!
Unless, of course, you have done something wrong.
here is my code, this is the coontroller file, pointing to the .fx file (dlt2alan-2.fx), as far as I know, there is nothing wrong with it but if youu have a different idea, please let me know, your input is welcome.

[Library Effect]
Lifetime=5
Version=2.00
Radius=200
Display Name=dlt2alan controller
Priority=0

[controller.0]
lifetime=0.0, 0.0
type=3
distance=15000.00, 15000.00
delay=10000000.00, 10000000.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=dlt2alan-2, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
 
Messages
5,214
Hi,:

Try some things in the following order:
- change the name of your fx to something with an underscore instead of a dash;
- change the delay to 0.00..
Sorry if I cannot be more specific as I do not have my own controller.fx available on this rig.
Can only check it as of next week Tuesday.
 
Messages
31
Country
unitedstates
Hi,:

Try some things in the following order:
- change the name of your fx to something with an underscore instead of a dash;
- change the delay to 0.00..
Sorry if I cannot be more specific as I do not have my own controller.fx available on this rig.
Can only check it as of next week Tuesday.
Ok I will try those two things. I have tried delay 0 without luck, as far as i read from the sdk it is the delay which will determine how fast it jumps to another effect within the same controller, but maybe I missunderstood. I will try thesr two things anyway

Thank you
 
Messages
98
Country
russia
Ali hello! If you have shaders installed, try to make backup defaults and see what happens. I had a similar problem with the free shaders installed
 
Last edited:
Messages
5,214
Then we have to look further!
You do have P3Dv4.3 or 4, do you not?
Then you should have in your effects folder a file called effects.cfg
Mine looks like this (I modified some stuff in there):

--------------------------------------------------
; These particle spite limits are applied based
; on the "Special Effect Detail" settings slider.

[Sprite Limit]
Medium=32000
High=128000
Low=16000

; These particle emit rate modifiers are applied based
; on the "Special Effect Detail" settings slider.

[Emit Rate]
Medium=0.700000
High=1.000000
Low=0.300000

; These particle Emit limits are applied based
; on the "Special Effect Detail" settings slider.
; If the emit limit is hit per frame as specified
; in the Emit Limit table then the rate it emits particles
; at is scaled by the factor specified in the modifier table.

[Emit Limit ]
Medium=2500
High=5000
Low=750

[Emit Limit Modifier]
Medium=0.300000
High=0.200000
Low=0.500000

; If an emitter has its LOD flag set and the viewpoint is
; further away than this at the time the effect is started
; then the emitter will be disabled.

[Detail]
Forced Distance=250

; The [Emitter Detail Distance] and [Emitter Detail Modifier]
; tables work together. If an emitter is further away than a
; distance specified in the distance table then the rate it
; emits particles at is scaled by the factor specified in the
; modifier table. Distances are in meters.

[Emitter Detail Distance]
Medium=5000
Far=10000
Very Far=15000

[Emitter Detail Modifier]
Medium=0.700000
Far=0.500000
Very Far=0.000000

; The [Light Detail Modifier] is used to LOD out lights that do
; not cover a specified number of pixels.
[Light Detail Modifier]
Minimum Pixel Size=15.5
-----------------------------------------------------------------------

If that does not help, then another thing to try would be to flush your shader cache and let P3D rebuild it (automatically) for you.

Good luck!
 
Messages
168
I have a similar controller file to Anarkia working well except my radius is set to -1. Just worth trying. Read about the -1 use somewhere but can't remember where.

[Library Effect]
Lifetime=5
Version=1.00
Radius=-1
Display Name=fx_dynlight01_mdm-controller
Priority=0

[controller.0]
lifetime=0.0, 0.0
type=3
distance=15000.00, 15000.00
delay=10000000.00, 10000000.00
x offset=0.00, 0.00
y offset=0.00, 0.00
z offset=0.00, 0.00
effect.0=fx_dynlight01_mdm, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00
 
Top