• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v4 What export from MCX is not the same even the same material properties and texture.

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
Hi,
My VTBS has been converted to PBR material by someone. I tried to study their work and I found many intereresting things. My project was done in Gmax. So I need to export in FSX.MDL. Then I use MCX to setup the same material and use their PBR texture. Then I export to be P3Dv4.4 by MCX. I place the new file with bglcomp.exe from p3dv4.4 sdk. When I look up in the sim, the lines are different desprite of all the same material setting and the same texture. Please take a look. The darker one is mine , the lighter theirs. In MCX show correct Normal. What did I miss? Something wrong with MCX regarding PBR material?
 

Attachments

  • problem02.jpg
    problem02.jpg
    571.6 KB · Views: 93
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

Without seeing the files it is hard to see. I would double check the normals and maybe there is one material attribute that is slightly different.
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
I will upload the bgl files. You got the one that I told you in PM already. The file name is GroundWork.bgl.
Here is mine.
 

Attachments

  • GP_taxiline_5_placement.BGL
    429.2 KB · Views: 91

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
I did the other way around. I loaded up their work in MCX and export as it is, nothing change at all and I can see the same file with the bglcomp.exe method. But with GPW, it comes with the dark texture. So, I think GPW does not work well with the PBR material.
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

The GPW does not change the materials when you process a model, except for the layers.

When I compare your file with the one from the other package, I see that the albedo color property is different. It is 150,150,150 in your file and 255,255,255 in the other one. I think that explains the color difference.
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
Hi Arno, I found something weird.

When I change ground poly to PBR material, the -ve Zbias has less priority than +ve Zbias.

I have made taxilines, put -ve Zbias, they become invisible. I took Zbias-ve asphalt layer and I found my taxiline below it!
When I make +ve Zbias, line became visible over asphalt layer.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

I need to check the SDK, but I think you are right. The pbr materials do the layers differently. Now that you say this, I am not sure the GPW is aware of this.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Yes, the SDK says the decal order is between 1 and 50, so positive.

Using values between 1 and 50, you can set and order the layering of ground polygon textures above the default airport aprons, taxiways and runways.
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
So, ground poly with PBR material needs to be +ve Zbias.
Ground poly with FSX, P3D material needs to be -ve Zbias.
GP with +ve Zbias is higher priority than -ve one.
I found that GPW might move the ground poly to 0 altitude which might cause flickering. It would be nice if you can verify this as well, Arno. Thanks.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Let me double check if pbr materials are sorted right.

The GPW does indeed project all polygons onto the ground by default. There is a checkbox to disable this in the GPW.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Hi,

I double checked the code that checks the sign of the layer, but it is already taking PBR materials into account. The PBR materials get a positive layer number.

Which SDK are you using when you export to P3D v4.4 in the GPW?
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
I think it is OK. If I use PBR material and get bgl file, I use MCX to check the value of Zbias in that bgl file. It turns out to be the same as I set in GPW, +ve is still +ve, -ve remains -ve.
But the problem is: there is no cure for flickerning. MCX does put ground poly to zero altitude that cause more flickering.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Are you using the latest development release? I tested yesterday and the zbias values were updated correctly.
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
Yes, the latest development one. But flickering is still there. I think the problem is not GPW but the ground poly itself. Nothing like FS2002 ground poly, although it has been more than 20 years ago. It is hard to believe that 20 years technology still problem free compare to today's technology.
 

jtanabodee

Resource contributor
Messages
3,921
Country
thailand
I found that PBR material needs to use with +ve Zbias. If I use -ve Zbias, it will cause flickering.
I am not sure if that is the true statement.
 
Top