where could I see the changes in patch4

Any issues, problems or troubleshooting topics related to the Prepar3D client application.
Post Reply
shibekora
Posts: 4
Joined: Sat Aug 29, 2020 4:47 am

where could I see the changes in patch4

Post by shibekora »

Having patch 4, I could see some improvement of lighting.
There are following explanations in the patch 4 announcement.
==Added control over exposure and emissive interpolation tables in Prepar3D.cfg.
==Added environment variables for day/night interpolants.
I have compared the prepar3d.cfgs of patch 3 and patch 4, however I could not find out them.
I have tried web search too that only refered following advanced configuration page of prepar3d.cfg with no further information.
https://www.prepar3d.com/SDKv4/prepar3d ... ation.html
Does anybody knows where is these tables in Prepar3d.cfg? Or, Where can I find the related documents?
Thank you.

M. Miyawaki
Clifton Crane
Lockheed Martin
Posts: 1188
Joined: Tue Sep 25, 2012 2:34 pm

Re: where could I see the changes in patch4

Post by Clifton Crane »

Hi shibekora,

There are two Prepar3D.cfg entries that control how the day/night exposure and emissive values are interpolated. Here are the current defaults:

Code: Select all

[GRAPHICS]
EXPOSURE_INTERPOLATE_TABLE=4096.000000,65535.000000,9.000000,0.000000,0.000000,0.050000,0.025000,0.100000,0.120000,0.200000,0.430000,0.300000,0.720000,0.400000,0.800000,0.500000,0.845000,0.600000,0.900000,1.000000,1.000000
EMISSIVE_INTERPOLATE_TABLE=4096.000000,65535.000000,21.000000,0.000000,0.000000,0.050000,0.000220,0.100000,0.001110,0.150000,0.005480,0.200000,0.026590,0.250000,0.119200,0.300000,0.401310,0.350000,0.768520,0.400000,0.942670,0.450000,0.987870,0.500000,0.997520,0.550000,0.999490,0.600000,0.999890,0.650000,0.999970,0.700000,0.999990,0.750000,0.999990,0.800000,0.999990,0.850000,0.999990,0.900000,0.999990,0.950000,0.999990,1.000000,1.000000
Here are the same exposure defaults in an easier to read format with comments:

Code: Select all

EXPOSURE_INTERPOLATE_TABLE=
4096.000000,		// Night Threshold
65535.000000,		// Day Threshold
9.000000,		// Number of Table Entries
0.000000,0.000000,	// First Table Entry (Night)
0.050000,0.025000,
0.100000,0.120000,
0.200000,0.430000,
0.300000,0.720000,
0.400000,0.800000,
0.500000,0.845000,
0.600000,0.900000,
1.000000,1.000000	// Last Table Entry (Day)
These tables were needed to create a non-linear interpolation between day/night transitions. You can see the table starts from 0.0 and ranges to 1.0. The second number in the entry is the associated interpolant value at that point in the dusk/dawn transition. The interpolant is used to blend between day/night exposure values, as well as day/night emissive intensities for materials, particle effects, and dynamic lights.

The new Environment Variables will eventually be documented here:

https://prepar3d.com/SDKv6/sdk/referenc ... ables.html

In the meantime, I've listed them below. These variables can be accessed via RPN and lua scripts, for example:

Code: Select all

DAY NIGHT INTERPOLANT
Day night interpolant value used for transitioning between day and night lighting:
0 = Night
1 = Day

SUN MOON INTERPOLANT
Sun moon interpolant value used for determining the primary light source:
0 = Sun
1 = Moon

EXPOSURE INTERPOLANT
Exposure interpolant value used for transitioning between day and night exposure:
0 = Night
1 = Day

EMISSIVE INTERPOLANT
Emissive interpolant value used for transitioning between day and night emissive intensities:
0 = Night
1 = Day
Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
agfreeman
Posts: 213
Joined: Thu Dec 29, 2022 11:50 am

Re: where could I see the changes in patch4

Post by agfreeman »

That's interesting... I did exactly the same as the op. Compared the new cfg and old cfg using beyond compare. I noted no difference either in the files suggesting it's not writing it....

I'll check again when I get home....
Clifton Crane
Lockheed Martin
Posts: 1188
Joined: Tue Sep 25, 2012 2:34 pm

Re: where could I see the changes in patch4

Post by Clifton Crane »

Hi agfreeman,

The default tables are not currently serialized, however they will be loaded if the config entries are added.

If you plan to try and adjust the tables I would recommend turning on Content Error Reporting, as the tables will be validated and report errors. I believe the max size of the table is 21 entries, which is what our default emissive table is using.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
shibekora
Posts: 4
Joined: Sat Aug 29, 2020 4:47 am

Re: where could I see the changes in patch4

Post by shibekora »

Hi Clifton

Thank you for your polite explanation on my inquiry.
AS you mentioned these tables are not implemented yet, I added two lines of EXPOSURE_INTERPOLATE_TABLE= and EMISSIVE_INTERPOLATE_TABLE= to my [Graphic] section as follows;
[GRAPHICS]
SCREEN_CAPTURE_MAX_JOBS=10
VIDEO_CAPTURE_WIDTH=720
VIDEO_CAPTURE_HEIGHT=480
VIDEO_CAPTURE_FPS=30
VIDEO_CAPTURE_BIT_RATE=3200000
VIDEO_CAPTURE_IS_THREADED=True
VIDEO_CAPTURE_INFO_SEND_RATE=20
VIDEO_CAPTURE_MAX_FRAME_SIZE=500000
VIDEO_CAPTURE_TTL=255
GPUCrashReporting=0
MAX_POINT_LIGHTS=250
MAX_SPOT_LIGHTS=250
RS_MIN_OBJECT_PIXEL_RADIUS=2.000000
SIM_OBJECT_FORCE_DRAW_DISTANCE_METERS=100000.000000
SIM_OBJECT_FORCE_DRAW_MAX_SCALE=100.000000
SIM_OBJECT_FORCE_DRAW_MIN_PIXEL_RADIUS=0.000000
MAX_TEXTURE_REQUEST_DISTANCE=1000.000000
HDR_BRIGHTNESS=0.130000
MAX_EXPOSURE_DAY=13.884647
MIN_EXPOSURE_DAY=11.884647
MAX_EXPOSURE_NIGHT=6.877744
MIN_EXPOSURE_NIGHT=0.970854
EXPOSURE_SPEED_UP=9.000000
EXPOSURE_SPEED_DOWN=4.000000
EXPOSURE_INTERPOLATE_TABLE=4096.000000,65535.000000,9.000000,0.000000,0.000000,0.050000,0.025000,0.100000,0.120000,0.200000,0.430000,0.300000,0.720000,0.400000,0.800000,0.500000,0.845000,0.600000,0.900000,1.000000,1.000000
EMISSIVE_INTERPOLATE_TABLE=4096.000000,65535.000000,21.000000,0.000000,0.000000,0.050000,0.000220,0.100000,0.001110,0.150000,0.005480,0.200000,0.026590,0.250000,0.119200,0.300000,0.401310,0.350000,0.768520,0.400000,0.942670,0.450000,0.987870,0.500000,0.997520,0.550000,0.999490,0.600000,0.999890,0.650000,0.999970,0.700000,0.999990,0.750000,0.999990,0.800000,0.999990,0.850000,0.999990,0.900000,0.999990,0.950000,0.999990,1.000000,1.000000
HISTOGRAM_LOW_PERCENTAGE=0.100000
HISTOGRAM_HIGH_PERCENTAGE=0.900000
RegenerateLocalDisplayList=False
BLOOM_THRESHOLD_DAY=18.500000
BLOOM_THRESHOLD_NIGHT=11.000000
BLOOM_MAGNITUDE_DAY=1.750000
BLOOM_MAGNITUDE_NIGHT=1.500000
BLOOM_BLEND_SCALE=0.650000
HDR_SATURATION=1.180000
GRAPHICS_TIMER_CAPTURE=False
REFLECTION_PROBE_DELAY=20
ViewGroupWindowBorders=0
ViewGroup_Number=-1
MAP_DRAW_THREADED=1
MIPMAP_VC_PANELS=1
TEXTURE_MAX_LOAD=4096
DynamicTextureStreaming=1
COCKPIT_HIGH_LOD=1
AIRCRAFT_REFLECTIONS=1
DYNAMIC_LIGHTING=1
CLOUD_DYNAMIC_LIGHTING=0
LENSFLARE=1
AUTO_EXPOSURE=0
BLOOM=1
CustomToneMapping=1
ToeStrength=0.340000
ToeLength=0.500000
ShoulderStrength=0.500000
ShoulderLength=0.500000
ShoulderAngle=0.500000
Gamma=0.780000
CUBEMAP_REFLECTIONS=2
PLANAR_REFLECTIONS=0
SHADOW_QUALITY=2
SHADOW_NUM_CASCADES_LOW=4
SHADOW_NUM_CASCADES_MID=5
SHADOW_NUM_CASCADES_HIGH=7
SHADOW_NUM_CASCADES_ULTRA=12
OPAQUE_SHADOW_TEXTURE_SIZE=2048
TRANSLUCENT_SHADOW_TEXTURE_SIZE=512
OPAQUE_SHADOW_DRAW_DISTANCE=2000
TRANSLUCENT_SHADOW_DRAW_DISTANCE=2000
SSAO=0
SHADOW_LOG_PARTITION_LOW=0.850000
SHADOW_LOG_PARTITION_MID=0.850000
SHADOW_LOG_PARTITION_HIGH=0.850000
SHADOW_LOG_PARTITION_ULTRA=0.850000
EFFECTS_QUALITY=0
EFFECTS_DISTANCE=0
TEXTURE_QUALITY=3
IMAGE_QUALITY=0
See_Self=1
Text_Scroll=0

Then start & exit as used to, I did not have any content error message in my Document\prepar3d v6 files folder.
I am thinking to visualize the warning and illuminating light of Aerosoft CRJpro as used in V5.4. They are much clear by patch4 than before.
I will try if these entry would have effect.
Anyway thank you again for your information.

M. Miyawaki
agfreeman
Posts: 213
Joined: Thu Dec 29, 2022 11:50 am

Re: where could I see the changes in patch4

Post by agfreeman »

M. Miyawaki, Clifton,

Many thanks for your responses.

I've noticed that these (amongst many others) are present in your cfg file, but not mine:
MAX_EXPOSURE_DAY=13.884647
MIN_EXPOSURE_DAY=11.884647
MAX_EXPOSURE_NIGHT=6.877744
MIN_EXPOSURE_NIGHT=0.970854
EXPOSURE_SPEED_UP=9.000000
EXPOSURE_SPEED_DOWN=4.000000

Can you tell me where these are documented and detailed please? I've tried looking, but seem to be looking in the wrong place.
Google doesn't return anything yet...

Many thanks

Andrew
shibekora
Posts: 4
Joined: Sat Aug 29, 2020 4:47 am

Re: where could I see the changes in patch4

Post by shibekora »

Hi Andrew

I am sorry, 6 lines of my cfg file you picked are not my work but p3d's.

Since I saw the following in the claim list of patch3, after carrying out Setup_Prepar3D.exe of patch4 I have deleted cfg file too, then restart p3d v6 patch4. these 6 lines are there.
==Reduced default bloom values (requires deleting Prepar3D.cfg in %appdata% directory or running “Delete generated files” in the application directory).
Therefore, I think these 6 lines are automatically added to cfg file if cfg file are newly generated in patch4.
To my regret I also do not have any documents related. It would be appreciated if LM gives us explanation on their meaning.

M. Miyawaki
Post Reply