P3Dv5.3 sloped - custom textures flickering

Discussion related to terrain/scenery design.
Post Reply
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

Hi LM

I work with the new apron/taxi options materialSet="GUID".
Project is a sloped airport.

The custom textures works fine for taxi and aprons.
Problem is when a such defined taxipath is connected or crosses a runway
the texture flickers in this area (z-fighting).

It looks like the custom texture is on same layer as the runway texture.
Used parameters:
- Taxi with custom texture using the materialSet option
- Runway with default texture

Any idea?

Ralph
www.simaddons.com

Image
Ralph
Owner Simaddons, Switzerland
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

Here another picture

Image
Ralph
Owner Simaddons, Switzerland
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: P3Dv5.3 sloped - custom textures flickering

Post by Clifton Crane »

Hi Ralph,

Do you see this issue when using default textures and materials for aprons, taxiways, and runways? This would help narrow down whether or not it is a material z-bias issue or a geometry issue.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

Hi Clifton

With default textures all is ok.

You can do a simple test. Use the materialSet on a runway.
Here the z-fighting is between the runway markings and the custom texture.

I have then this:

Image
Ralph
Owner Simaddons, Switzerland
mpni
Posts: 1096
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by mpni »

Hi
Maybe my remark is off topic but I noticed that, when a runway is sloping, the link with a taxiway must be on a horizontal portion, both for the taxiway and the runway.
Regards
Michel
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

Hi Michel

Thanks for the input.

In above picture the area with RW12 is pure flat. There is no slope.
All direct links and next behind with same value.

Regards,
Ralph
Ralph
Owner Simaddons, Switzerland
mpni
Posts: 1096
Joined: Thu Aug 09, 2018 10:37 am
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by mpni »

Hi Ralph
With the taxiway, have you tried with an elevation of 0.1 feet below the level of the runway?
Regards
Michel
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

The taxiway is connected with the runway. I can't use a different height. It's ONE point.

Look forward to receive a feedback from LM.

To bad we can not use this awesome new feature.
Ralph
Owner Simaddons, Switzerland
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: P3Dv5.3 sloped - custom textures flickering

Post by Clifton Crane »

Hi Ralph,

We've opened a ticket to investigate this issue. We'll post any new information as it becomes available.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: P3Dv5.3 sloped - custom textures flickering

Post by Clifton Crane »

Hi Ralph,

Could you try adding the DecalOrder element to your PBRMaterialDefinition? A decal order of 1 fixed the issue in my test case. Here is an example:

Code: Select all

<PBRMaterial id="{8A1B6D4C-7DCF-4946-8D70-79C20CCB8541}">
    <FriendlyName>Custom Surface</FriendlyName>
    <PBRMaterialDefinition>
        <Normal>
            <Filename>taxi_brick_normal.dds</Filename>
        </Normal>
        <Metallic>
            <MetallicHasOcclusion>True</MetallicHasOcclusion>
            <MetallicHasReflectance>True</MetallicHasReflectance>
            <Filename>taxi_brick_metallic.dds</Filename>
        </Metallic>
        <Albedo>
            <Filename>taxi_brick_albedo.dds</Filename>
            <RGBA>255,204,0,255</RGBA>
        </Albedo>
        <DecalOrder>1</DecalOrder>
    </PBRMaterialDefinition>
</PBRMaterial>

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
simaddons
Posts: 30
Joined: Sat Sep 11, 2010 11:11 am
Location: Switzerland
Contact:

Re: P3Dv5.3 sloped - custom textures flickering

Post by simaddons »

Hi Clifton

Sorry for the delay.

That works. Thanks.
Is there any description available? Can the value be 2, 3 etc., like a layer sort order?

Ralph

Here how it works:

https://www.ycn.ch/mp4/p3dv5_mattest.mp4
Ralph
Owner Simaddons, Switzerland
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: P3Dv5.3 sloped - custom textures flickering

Post by Clifton Crane »

Hi Ralph,

The PBR material Decal Order is typically used when creating 3D models that have coplanar surfaces (i.e. airport surfaces with lines or other details layered on top):

https://www.prepar3d.com/SDKv5/sdk/mode ... rials.html

The Decal Order will determine the draw order for each material. In this case it may make sense to use values greater than one to control the order of several different materials.

For our default airport materials, decal order 1 is used for surfaces, and decal order 2 is used for markings. You would therefore want your custom materials to use decal order 1.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Post Reply