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

MSFS issues using 3d knob as gauge, help?

Messages
160
Country
us-newyork
Hi, everyone!! I am almost finished with my plane. However I need help with these 3d switches. The gauge appears, but only what's in the xml gauge bitmap moves, not the actual switch & it is partly transparent. How do I make the 3d knobs move? i tried using the switches as actual vc textures and they wouldn't move / function as a 3d gauge with the regular texture bitmap (tried the textures from within the panel folder and it does not work)

1661723126899.png
'

1661723184727.png


1661723232398.png
 

tgibson

Resource contributor
Messages
11,338
Country
us-california
You do not need a 2D gauge if you have a 3D knob. The 3D knob can contain the animation tag, mouse rectangle, and the texture on the knob itself. No gauge required. Many people set it up so you left click the knob to rotate left and right click the knob to rotate right (that's what MS panels do), but you can use other conventions.

In this case if you want a custom animation sequence (i.e. not the same as a default knob), you would need to write the XML code into the P3D modeldef.xml file, found in the SDK (the one that you pointed your CAD program to, the one in the Modeling SDK bin folder). I usually copy a similar section in the modeldef.xml file and paste it to the top of the listing, and then edit it (including changing the name and GUID). If all the animations below it fail, you know you have made an editing mistake. As I remember there are two sections required for each part.
 
Last edited:

tgibson

Resource contributor
Messages
11,338
Country
us-california
Here is an example of a rotating knob, but this one turns round and round. Note the two sections, Animation Name and PartInfo.

XML:
    <Animation name="ap_turn_knob" guid="7cedcf04-1afc-400d-890d-134ad38cff27" length="100" type="Sim" typeParam2="ap_turn_knob" typeParam="AutoPlay" />

<PartInfo>
    <Name>ap_turn_knob</Name>
        <AnimLength>100</AnimLength>
    <Animation>
    <Parameter>
   <Code>50 (L:Bank Knob, number) 1.6 * + </Code>
    </Parameter>
    </Animation>
    <MouseRect>
       <Cursor>Hand</Cursor>
       <TooltipText>Left Click: LEFT Right Click: RIGHT %((L:Bank Knob, number) 3 / )%!d!</TooltipText>
        <MouseFlags>LeftSingle+RightSingle</MouseFlags>
        <CallbackCode>
            (M:Event) 'LeftSingle' scmp 0 ==
            if{ (L:Bank Knob, number) 3 - (&gt;L:Bank Knob, number) }
            (M:Event) 'RightSingle' scmp 0 ==
            if{ (L:Bank Knob, number) 3 + (&gt;L:Bank Knob, number) }
          </CallbackCode>
    </MouseRect>
</PartInfo>
 
Messages
160
Country
us-newyork
You do not need a 2D gauge if you have a 3D knob. The 3D knob can contain the animation tag, mouse rectangle, and the texture on the knob itself. No gauge required. Many people set it up so you left click the knob to rotate left and right click the knob to rotate right (that's what MS panels do), but you can use other conventions.

In this case if you want a custom animation sequence (i.e. not the same as a default knob), you would need to write the XML code into the P3D modeldef.xml file, found in the SDK (the one that you pointed your CAD program to, the one in the Modeling SDK bin folder). I usually copy a similar section in the modeldef.xml file and paste it to the top of the listing, and then edit it (including changing the name and GUID). If all the animations below it fail, you know you have made an editing mistake. As I remember there are two sections required for each part.
ok, I will try that!! thank you!!
 
Top