P3Dv6 patch 3 Effect by DAWN and DUSK

Discussion related to terrain/scenery design.
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

Hi
This effect works in P3Dv5 (all versions) in DUSK, NIGHT and DAWN situations.
But, it doesn't work in P3Dv6 patch3.
By adding "Intensity Day" and "Intensity Night" in the "ParticleAttributes" section, it works now in v6 but only by NIGHT.
In DUSK and DOWN situation it doesn't works.
What modifications I have to do for having it working by DUSK and DOWN situation?
Regards
Michel

[Library Effect]
Lifetime=5
Version=2.00
Display Name=fx_Spot_Ext_White
Radius=10000
Priority=0

[Properties]
Spot=1
Tower=1
Map=1

[Emitter.0]
Lifetime=1.00, 1.00
Delay=0.00, 0.00
Bounce=0.00
No Interpolate=1
Rate=0.50, 0.50
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=0.00, 0.00
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.0]
Lifetime=0.00, 0.00
Type=25
X Scale=1.30, 1.30
Y Scale=0.80, 0.80
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=0.00, 0.00
Color Rate=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Static=1
Face=1, 1, 1

[ParticleAttributes.0]
Blend Mode=2
Texture=fx_2.bmp
Bounce=0.00
Color Start=200, 200, 255, 180
Color End=200, 200, 255, 0
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.00
uv2=0.50, 0.50
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00
Intensity Day=00.00
Intensity Night=70.00
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

I tried with Intensity Day=100.00 with no result.
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

SOLVED with:
"Intensity Day=50000.00"
I had a look at fx_c130_taxi.fx for having the day intensity
"Intensity Day=10000000.00"
It seems to me that:
- in v5 DAWN and DUSK are considered as NIGHT
- in v6 DAWN and DUSK are considered as DAY
Regards
Michel
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

Thanks for posting and sharing. Could you confirm where this file is please?
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

Hi agfreeman
This file is in the default effects folder of P3D.
Regards
Michel
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

FOund the files, thanks. I'll have a play with the other aircraft that are causing me problems.
mpni wrote: Fri Sep 15, 2023 4:16 pm It seems to me that:
- in v5 DAWN and DUSK are considered as NIGHT
- in v6 DAWN and DUSK are considered as DAY
I think you've hit the nail on the head here, completely. It makes a lot of sense as everything kicks in suddenly at nightfall, or out suddenly at dawn, when it shouldn't.
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

Just wanted to say thanks! I've sorted my dusk cockpit lighting out finally! I can see my ccckpit at dusk and dawn now!
gaab
Posts: 63
Joined: Sat Dec 02, 2017 12:18 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by gaab »

Hi,

I tried these parameters in a V5 fx file with no result, whatever high value I used.

In the official V6 learning center documentation the examples given are nowhere near these huge values.
Intensity Day=0.00 The daytime intensity of the dynamic light or sprite light.
fx_landing.fx( Intensity Day=0.00 )
fx_navgre.fx( Intensity Day=90.00 )
fx_air_taxi_edge_blue.fx( Intensity Day=144.00 )
Intensity Night=0.00 The nighttime intensity of the dynamic light or sprite light.
fx_landing.fx( Intensity Night=2000.00 )
fx_navgre.fx( Intensity Night=90.00 )
fx_air_taxi_edge_blue.fx( Intensity Night=36.00 )
Could official LM staff give some "instructions" to fix this problem ?

Thanks
User avatar
Sabre57
Posts: 493
Joined: Thu Jan 23, 2014 12:45 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by Sabre57 »

agfreeman wrote: Sun Sep 17, 2023 7:38 am FOund the files, thanks. I'll have a play with the other aircraft that are causing me problems.
mpni wrote: Fri Sep 15, 2023 4:16 pm It seems to me that:
- in v5 DAWN and DUSK are considered as NIGHT
- in v6 DAWN and DUSK are considered as DAY
I think you've hit the nail on the head here, completely. It makes a lot of sense as everything kicks in suddenly at nightfall, or out suddenly at dawn, when it shouldn't.

Can you elaborate on exactly what files and what entries were added or changed? I've played with various settings of intensity, suggested above, with no improvement.

Thanks!
I9-9900
32GB RAM
RTX 3090 FTW
Assorted SSDs and HDDs
3x55" TVs
Alpha/Bravo Honeycombs
SPAD.Next, ASV6
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

gaab wrote: Sun Oct 01, 2023 9:20 am Hi,

I tried these parameters in a V5 fx file with no result, whatever high value I used.

In the official V6 learning center documentation the examples given are nowhere near these huge values.
Intensity Day=0.00 The daytime intensity of the dynamic light or sprite light.
fx_landing.fx( Intensity Day=0.00 )
fx_navgre.fx( Intensity Day=90.00 )
fx_air_taxi_edge_blue.fx( Intensity Day=144.00 )
Intensity Night=0.00 The nighttime intensity of the dynamic light or sprite light.
fx_landing.fx( Intensity Night=2000.00 )
fx_navgre.fx( Intensity Night=90.00 )
fx_air_taxi_edge_blue.fx( Intensity Night=36.00 )
Could official LM staff give some "instructions" to fix this problem ?

Thanks
These changes are for v6, not v5. V6 is substantially different in terms of the numbers needed, so bear that in mind.

You need to restart the software after making changes too, if the files are in the default effects folder. It's a laborious painful, process.
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

Sabre57 wrote: Sun Oct 01, 2023 12:21 pm Can you elaborate on exactly what files and what entries were added or changed? I've played with various settings of intensity, suggested above, with no improvement.

Thanks!
So it is very dependent on the aircraft, but generally the files in question can be found within the default effects folder.

They are aircraft specific, and generally can be found with the prefix of the name of the aircraft in question and a suffix of what that file is for.

Each fx file for that aircraft does something to the lighting of something specific in that aircraft. In my case I updated all the internal lights and taxi and of an aircraft so they'd show during the 'day'. So the prefix was the name of the aircraft and the suffix was like 'left spotlight', right spotlight', 'taxi' etc.

As mpni noted, what is defined as day in v6 is entirely different in v5... so to get internal lighting for dawn and dusk working I had to change the 'day' setting for v6. In v5 you'd have to changed the night setting.

At the end of each file MIGHT be a setting like this:

Intensity Day=00.00
Intensity Night=70.00

It's these values that need changing.

What is really, really annoying (and please, PLEASE LM, fix this if you are listening), is that the fx files in the effects folder are loaded at startup and NEVER read again, unlike the other aircraft cfg files. This means you must restart the software every time you make a change.

I have spent HOURS doing what should be a simple update that is pulled in by simply changing the aircraft and changing it back again.... So if you are making changes, do it on an airfield that loads quickly..... I'd also advise making the change to one thing and then doing a blanket change on the rest to speed things up.
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

Hi
If you don't want to restart the sim at each modification, you can use Tools / Development / FX Tool.
It seems the Falloff Exponent has an action on the intensity:
SDK "...The exponent which controls the falloff of the light. Setting this to 2 is equivalent to inverse square falloff..."
Regards
Michel
mpni
Posts: 1098
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by mpni »

A little exemple for using FX Tool:
https://royalefrenchnavy.restauravia.fr ... x_Tool.mp4
agfreeman
Posts: 269
Joined: Thu Dec 29, 2022 11:50 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by agfreeman »

mpni wrote: Mon Oct 02, 2023 2:01 pm A little exemple for using FX Tool:
https://royalefrenchnavy.restauravia.fr ... x_Tool.mp4
I didn't even know that was a thing! Thanks for sharing, that will save me so much time!
gaab
Posts: 63
Joined: Sat Dec 02, 2017 12:18 am

Re: P3Dv6 patch 3 Effect by DAWN and DUSK

Post by gaab »

agfreeman wrote: Mon Oct 02, 2023 11:03 am
gaab wrote: Sun Oct 01, 2023 9:20 am I tried these parameters in a V5 fx file with no result, whatever high value I used.
These changes are for v6, not v5. V6 is substantially different in terms of the numbers needed, so bear that in mind.
Off course, that's why I wanted to modify a V5 effect to use the aircraft with V6 (as so far we have only one add-on officially compatible with V6).

An "how to" update V5 effects to V6 (for different type) by LM would be VERY welcome.

Gérard
Post Reply