• 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.

Prepar3D v4.4 PBR materials

Messages
86
Hi Arno. Thanks for your latest release supporting PBR, very useful!
I'm having a little trouble with the Ground poly wizard with the latest release. When selecting the export as P3Dv4.4... and whether I have a PBR material included or not.. everything in that export flickers like mad. I've tried with and without the PBR material, and I've also tried positive and negative z-bias numbers.
Any tips appreciated.
 
Messages
187
Country
us-florida
Hi Arno. Thanks for your latest release supporting PBR, very useful!
I'm having a little trouble with the Ground poly wizard with the latest release. When selecting the export as P3Dv4.4... and whether I have a PBR material included or not.. everything in that export flickers like mad. I've tried with and without the PBR material, and I've also tried positive and negative z-bias numbers.
Any tips appreciated.

I second this, I am also having this issue, I thought I did not but having it also.
 

arno

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

I have found out that for non PBR materials the zbias values seems not to be written correctly by the v4.4 XtoMDL. So if you don't use PBR materials better use the v4 option to export.

For the PBR materials you need to use positive layer values if I read the SDK correctly. I see they are stored correctly in the MDL file.
 
Messages
98
Country
russia
I second this, I am also having this issue, I thought I did not but having it also.
Hi Arno. Thanks for your latest release supporting PBR, very useful!
I'm having a little trouble with the Ground poly wizard with the latest release. When selecting the export as P3Dv4.4... and whether I have a PBR material included or not.. everything in that export flickers like mad. I've tried with and without the PBR material, and I've also tried positive and negative z-bias numbers.
Any tips appreciated.

I understand that you have a similar problem? https://www.fsdeveloper.com/forum/t...ay-on-the-runway-partially-disappears.444349/
I created a topic about this, but so far no answer on this issue.
 
Messages
187
Country
us-florida
The problem also happens with 'convert and place wizard' it appears some materials are altered (most of them non-pbr) when exporting.
So yes probably something in the x-tomdl format of the 4.4
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Which attributes do you think are missing?
 
Messages
244
Country
england
Hi Arno,
I've encountered a problem when exporting a model with MCX that has both PBR and non-PBR materials. Any non-PBR materials seem to get exported with the wrong material settings.
My original source model was modified in 3DS Max, with the fuselage and wings given PBR materials, with the other parts still having standard P3d materials. Exported from Max, and compiled directly using the 4.4 SDK. Works fine in sim and if I load the mdl into MCX the materials are defined correctly. If I then export from MCX, (export set as 4.4 mdl), then re-import into MCX the non-PBR materials have changed.
Here's a screenshot of the MCX material editor showing both the original model on the right, and the model after being exported with MCX on the left.

PBRSettings.jpg
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Would you happen to have the X file that Max made as well? That might help me to find where the difference is.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Thanks, I'll try to do some debugging tonight as well. Probably something changed in the way the X file should be written.
 
Messages
244
Country
england
Here's the .x file from a slightly simplified version as the original was around 22mb.

Hope that helps.
 

Attachments

  • MixedPBR.zip
    1 MB · Views: 173

arno

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

I have found the problem. It was a bug in my code in the end. Now all material settings seem to work correctly again. I'll push a new development release later this evening.
 
Messages
13
Country
finland
Hi. Ive been fiddling around with the GPW and the new pbr possibilities however, I cant seem to get MCX to work with transparent GP layers, it compiles fine but is not visible in the simulator, this is with the render mode translucent, with the mode set to anything else the texture shows up but ofc is not transparent nor translucent, any suggestions? Am I just doing something wrong here?
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
I'm also wondering if the GPW can manage PBR materials. If I'm not mistaken it should (theoretically) be possible to open a file in the wizard, change material settings (in the Material Editor) to make a material PBR) and then compile it as P3Dv4.4? That does not seem to work yet, I think because the positive z-bias value is stored as a negative number when compiled.
Also the wizard currently cannot save (PBR) material settings to mgp files so you can't save your progress.
 

arno

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

If you load a MDL file that has PBR materials I think it should work in the GPW. As you describe changing them after loading should also work.

You should see that the ZBias value becomes positive again. If it is saved as negative the GPW didn't see there was a PBR material in the object.

The MGP file only stores the name of the material and the layer number. So that is not changed by PBR materials.
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Does that mean for P3Dv4.4 you just use a "normal" mdl for the ground and have to apply layers manually?
Is there any way of preventing flickering textures if they all have the same altitude?

In the material editor you can use templates to easily edit materials. Is it possible to create a custom template for PBR materials?
 
Last edited:

arno

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

Not sure if I understand what you mean.

The GPW can be used to set the layers and it will slice the polygons as needed. But the PBR material settings can best be set in the input mdl file already.

The output bgl does use mdl files for the polygons, but they are sliced and curved.
 

Horst18519

Moderator
Resource contributor
Messages
2,370
Country
germany
Ok, so you import the X file into MCX and save it as an P3Dv4.4 mdl with PBR textures, then use the wizard to process it into a bgl?
 
Top