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

MSFS20 Automatically Set Day/Night Switch

Messages
48
Country
us-florida
When converting models from .mdl to .glTf, I have to set the Day/Night switch in the materials from False to True for proper display in MSFS. Is there any type of facility in MCX to automatically do that during a batch conversion?
 
I could check if I can automatically set the switch when there is a night texture assigned. Is that what you have in mind?
 
I could check if I can automatically set the switch when there is a night texture assigned. Is that what you have in mind?
Hi,

I noticed MCX automatically sets the emissive texture to additive with the PBR set to true, resulting in the night texture being displayed on top of the diffuse by day and night.
I think the additive night only switch doesn’t work properly in the PBR range of parameters, since the emissive texture keeps visible by day. It seems to work when I set PBR to false.

cheers
Antoine
 
Antoine,

Are you talking about these parameters in the MCX preview or do you also mean that in the sim it does not work as expected?

In FSX we have more options for how the emissive texture is applied, with PBR (and especially in MSFS) there are less options. I try to map between these different options, but there are probably some issues in there.
 
Hi,

I noticed MCX automatically sets the emissive texture to additive with the PBR set to true, resulting in the night texture being displayed on top of the diffuse by day and night.
I think the additive night only switch doesn’t work properly in the PBR range of parameters, since the emissive texture keeps visible by day. It seems to work when I set PBR to false.

cheers
Antoine

When dealing with models destined to be used in MSFS, I found that when PBR is set to false, the night texture is not displayed on top of the day texture however, when the model is re-exported to glTF, the PBR switch is automaticlly set to true again since MSFS glTF models require PBR textures. The solution for me was to leave PBR switch on and set the Day/Night switch for those textures to True. Though the MCX display won't look any different, the model will function correctly for Day/Night inside MSFS.

Stiletto2
 
Let me check, gltf export should not use the is pbr flag. That's only for internal MCX usage.
 
Let me check, gltf export should not use the is pbr flag. That's only for internal MCX usage.
I think it's the case, i.e. true or false changes the display in MCX but doesn't seem to change the gltf output.

I haven't yet found out if and which parameters in the list would necessitate to re-save the textures after an update, before exporting to gltf.

Cheers
Antoine
 
Hi,

I have modified the material now, so that the FSX EmissiveMode, P3D PBR EmissiveModePbr and the MSFS Day/Night switch attribute are linked together. They all three control the same aspect, so that should help in converting between models. New development release will be online in about 30 minutes from now.
 
This sounds good. For example, does this mean that when a conversion is done from FSX to glTF, the Day/Night switch will be set to True automatically when FSX EmissiveMode is detected?

Stiletto2
 
Just tested the new release and it works! No more having to manually set the Day/Night switch to True. Thanks, Arno!

Stiletto2
 
Back
Top