For MSFS 2020 VR compatibility, the SDK documentation explains how to build a PANEL_COLLISION mesh (https://docs.flightsimulator.com/ht...arch=panel_collision&rhhlterm=panel_collision). This mesh is needed to align the plane of the mouse pointer with the underlying model meshes so you don't see it as two cursors. This collision mesh also allows the use of the VR focus feature.
The MSFS Toolkit 4.0 exporter does not export the collision material in the correct format for MSFS to recognize the PANEL_COLLISION. After exporting the GLTF file, you can manually edit the JSON to format this material in a way that will work in the sim. For scenery projects with collision meshes, I'm not sure if this is needed, but if you find that collisions in the sim are not working, give it a try.
Open the cockpit LOD0 GLTF file in a text editor and search for the name of your collision material. In my case, this material is named "collision". Here is how it exports by default:
The ASOBO_tags section needs to be changed to this:
I don't fly in VR very often, only when I borrow my son's Quest. For other aircraft developers, it may be a good idea to think about getting a hold of a VR headset and testing out your creations in VR mode to check the camera position and things like the panel collision mesh. It's a small quality of life improvement that at least some of your users will be happy for.
The MSFS Toolkit 4.0 exporter does not export the collision material in the correct format for MSFS to recognize the PANEL_COLLISION. After exporting the GLTF file, you can manually edit the JSON to format this material in a way that will work in the sim. For scenery projects with collision meshes, I'm not sure if this is needed, but if you find that collisions in the sim are not working, give it a try.
Open the cockpit LOD0 GLTF file in a text editor and search for the name of your collision material. In my case, this material is named "collision". Here is how it exports by default:
Code:
{
"alphaMode" : "BLEND",
"emissiveFactor" : [
0.800000011920929,
0,
0
],
"extensions" : {
"ASOBO_tags" : {
"Collision" : true
},
"ASOBO_material_invisible" : {
"enabled" : true
}
},
"name" : "Collision",
"pbrMetallicRoughness" : {
"baseColorFactor" : [
0.800000011920929,
0,
0,
1
],
"metallicFactor" : 0,
"roughnessFactor" : 0.5
}
},
The ASOBO_tags section needs to be changed to this:
Code:
"ASOBO_tags" : {
"tags": ["Collision"]
},
I don't fly in VR very often, only when I borrow my son's Quest. For other aircraft developers, it may be a good idea to think about getting a hold of a VR headset and testing out your creations in VR mode to check the camera position and things like the panel collision mesh. It's a small quality of life improvement that at least some of your users will be happy for.