Dynamic Lighting (DayNight/DawnDusk)

Discussion related to terrain/scenery design.
User avatar
pillack01
Posts: 17
Joined: Sat Jan 11, 2014 2:16 pm
Location: Germany
Contact:

Dynamic Lighting (DayNight/DawnDusk)

Postby pillack01 » Tue Oct 09, 2018 1:46 pm

Hello dear developer of the Prepar3D.

Regarding the dynamic lights Type 28 I have a question. Normal effects, such as fx.navlightred.fx, are controlled by the Day/Night/Dawn/Dusk parameters. But what about dynamic lights, do they have to be controlled by the parameters, or does the P3Dv4-Game-engine automatically detect if they are dynamic lights?

So the question is whether you have to set parameters for dynamic lights (Typ28 & Type27, SpotLight) so that the lights are not displayed during the day.

Best regards
Christian
Christian Bahr
Developer

For a sophisticated flight simulation
www.bahrometrix.de

mole_man99
Posts: 16
Joined: Sat Nov 25, 2017 9:06 pm

Re: Dynamic Lighting (DayNight/DawnDusk)

Postby mole_man99 » Tue Oct 09, 2018 3:13 pm

Not done extensive testing, But Arno found when adding dynamic lights to MCX, without the parameters available to set, the lights showed day and night. Adding the parameters allowed users to turn them off in the day.

Not sure if an effect created by FX_tool instead of MCX would distinguish automatically between day and night. You can have the intensity at zero in the day colour setting, and we assume the light is not there doing unecessary calculations. Would be nice to know for sure from LM.

User avatar
pillack01
Posts: 17
Joined: Sat Jan 11, 2014 2:16 pm
Location: Germany
Contact:

Re: Dynamic Lighting (DayNight/DawnDusk)

Postby pillack01 » Thu Oct 11, 2018 11:49 am

Hi,

thanks for the explanation. But unfortunately I need reliable information on the subject, which is why I had asked the question so synonymous directly to a P3DV4 developer here in the forum. Maybe someone from the LM team will answer.

All the best and best regards
Christian
Christian Bahr
Developer

For a sophisticated flight simulation
www.bahrometrix.de

User avatar
Rob McCarthy
Lockheed Martin
Posts: 1890
Joined: Wed Aug 24, 2011 1:37 pm

Re: Dynamic Lighting (DayNight/DawnDusk)

Postby Rob McCarthy » Fri Oct 12, 2018 2:26 pm

Hi Christian,

Yes, you'll have to set the intensity to 0 for dynamic lights to turn them off during these times.

Regards,
Rob McCarthy
Rob McCarthy
Prepar3D® Core Lead

User avatar
pillack01
Posts: 17
Joined: Sat Jan 11, 2014 2:16 pm
Location: Germany
Contact:

Re: Dynamic Lighting (DayNight/DawnDusk)

Postby pillack01 » Sat Oct 13, 2018 5:45 pm

In summary, one can say that one can turn off its dynamic lights during the day by setting the color values (Color Start = 0,0,0,0) to zero and the old parameter control over DayNight and DuskDawn is used for dynamic lights Type27 and Type 28 no longer needed. So it is enough to set the values for day to zero.

Thank you Rob for your answer!
Christian Bahr
Developer

For a sophisticated flight simulation
www.bahrometrix.de


Return to “Scenery Development Questions”

Who is online

Users browsing this forum: No registered users and 76 guests