• 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 Multiple UVs in the same model

Messages
85
Country
unitedkingdom
I've been experimenting with baking the AO onto my models. The only way I've been able to get it to show in FS however, is if I also bake the albedo/normals onto the same new UVs.

What I want to do, is to have my Albedo and Normal map on one set of UVs but the AO (and presumably the metallic and roughness as they're different channels of the same texture) on a different set of UVs.

This will let me have a nice, efficient albedo texture that's used on multiple areas of the model.

For example, here I've applied a generic 'brick' texture to a model:

1603763280090.png


It's nice and efficient as the brick is used on multiple faces. But I can't bake to these UVs as they overlap all over the place.

So I make a new set of non-overlapping UVs and bake the AO to them:

1603763357950.png



But in FS2020, it still uses the one set of UVs and so the AO is mapped wrong.

Is there a way to have different textures use different UVs? gltf seems to support it, if I add a UV node in Blender, set it to the second set of UVs and attach it to the metallic shader node the exported gltf code looks like this:
Code:
"occlusionTexture" : {
                "index" : 0,
                "texCoord" : 1
            },
            "pbrMetallicRoughness" : {
                "baseColorTexture" : {
                    "index" : 1,
                    "texCoord" : 0
                },
                "metallicRoughnessTexture" : {
                    "index" : 0,
                    "texCoord" : 1
                }
            }

Note 'texcoord: 1' on the occlusionTexture. On a normal object, they're all set to texcoord 0.

There's also this line which seems to indicate that FS supports the AO on a different set of UVs:

Code:
"msfs_show_ao_use_uv2" : 1,
 
Back
Top