P3Dv5 Dynamic spotlights issue

Hi dyn lights gurus,

trying to install an airfield to P3DV5, I face a strange issue. The dynamic spotlights works well on all 3D and GP but resampled background is "burn". Here is the result:


Of course same files in V4 works well. I don't know if the bug is on LM side or if do not handle dynamic lights like I should.
Does anyone have an idea about that ?

Thanks
ANFS_003.jpg

ALain
 
Last edited:

Christian Bahr

Resource contributor
Hi ALain!

Since the P3Dv5 there are two new parameters in the effects files (.fx). The new parameters determine the intensity of the light, i.e. how strongly the light should act on PBR material. There is a corresponding contribution here: Prepar3D v5 effects photoscenery issue...

If I have correctly understood the documentation in the P3Dv5 SDK for these two parameters, this will only have an impact if the object/GP contains PBR material PBR:


Light N tab

Day
Red, Green, Blue, Scale
The day time color of a light. Use the color dialog, or input the values directly. The Scale value here applies to only non-PBR surfaces, a value of 0 will disable light. 128 is equal to an intensity of 1. Lower than 128 is scaled to an intensity of 0. 255 is equal to an intensity of 50.
Night
Red, Green, Blue, Scale
The night time color of a light. Use the color dialog, or input the values directly. The Scale value here applies to only non-PBR surfaces, a value of 0 will disable light. 128 is equal to an intensity of 1. Lower than 128 is scaled to an intensity of 0. 255 is equal to an intensity of 50.

Day
Intensity
The day brightness of the light in lumens, a value of 0 will disable light. Only applies to PBR surfaces.
Night
Intensity
The night brightness of the light in lumens, a value of 0 will disable light. Only applies to PBR surfaces.

In the meantime I have switched a large part of my projects to PBR. In combination with these new dynamic PBR lights, it looks like this:

p3dv5_pbr_dyn_light_hengesen.jpg
 
Hi Christian and thank you
I already searched and read your post.
But neither the resample nor the GP have PBR
That's why I'm stuck for now, I see no change
 

Christian Bahr

Resource contributor
Then maybe it's a texture problem rather than a lighting problem?
Perhaps the texture assigned to the ground polygon has an alpha channel that is completely white and causes this glaring effect.
 
I dont' think so. Lighting of the tarmac (groundpoly) is exactly the same for V4 and 5 and is correct.
Only the resampled area is over lighted. It is just a basic photo texture (day and night layers) compiled with V5 resample.
It seems like nobody run dynamic spotlights over photoscenery !!
I'm surprised. Will ask LM if nobody experienced this issue.
Thanks
 

Christian Bahr

Resource contributor
It seems like nobody run dynamic spotlights over photoscenery !!
Yes, there are several projects where this is the case. The Seneries consist of a groundpoly-layout mixed with photoscenery. The sceneries were created for P3Dv4 and P3Dv5 respectively. But the glaring effect you showed is not there.
Perhaps it is because different FX files illuminate the photoscenery for the P3Dv4 and the p3Dv5?

Mülheim
Bottenhorn
 
Top