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

P3Dv4 Material Scripting

I hope somebody else can help you, I'm not so familiar with using the scripts yet and how they work. I just know how they are stored in the MDL :)
 
I experimented with a couple of scripts on an aircraft mdl, which worked as expected, but that was done using Max and the SDK tools and not with MCX.
 
@arno, thanks.

@DaveWG thanks, I saw the pictures you posted in other sites. I am not familiar with MAX and the SDK tools. I am just looking at it to test some dynamic material changes via regular programming code.

Do you happen to have a working MDL you could share ? That would save me time in learning MAX/SDK which I really don't use much. Thanks.
 
I don't have a working mdl at the moment. The one I did have was just for experimental purposes and had since been deleted. I could make a simple one to send you, but it won't be until the weekend.
 
Thanks for the help.
Is the Mooney G1000 WindShield currently working for you? If I could make that work would be great.
 
Thanks @DaveWG ! I will try it.
Question: does this work with Scenery Objects as well? Or just SimObjects?
Thanks
 
Hi,
I try this tip with thé Cessna 172 of FSX and i succed for the first try.
On my Cessna 152 which use more animations on the VC ... Not at all but glass texture use an alpha channel so it is possible what the two conditions are in opposition.
 
Last edited:
can someone plz post a screenshot on how to add LUA script to an MDL using MCX ?
i wanted to do that but i couldn't find it in the MCX UI !
 
In the material editor there is a Scripts attribute where you can provide the name of the script.

1544903706776.png
 
Hi. Someone knows if the material script is supported as a ground poly in GP wizard? The ContentErrors shows something weird. Its like the script lua language is not recognized.

Thanks.
 

Attachments

  • ContentErrors.txt
    31.6 KB · Views: 377
Appears you have special characters within the script.. remove special characters. Though I'm not a specialist in scripts either, but I know that special characters can't be used.
 
Thanks for the reply Pyscen. I actually kinf of took the script from the SDK examples. I am attaching it. I dont know if the P3D is expecting another language. This is lua but I dont know hoe the Ground Poly wizard is exporting the bgl.
 

Attachments

  • pkWetAsphalt.txt
    413 bytes · Views: 338
Back
Top