Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FSX <visibility> and Gauge Polygons

Featured Replies

Hi peoples I was wondering if anyone else has come across this problem. I have created a custom FSX <visibility> animation to control some gauge polygons in my VC radio stack. I have inserted the new animation code into the modeldef and attached the animation to the polygon using the attachpoint tool in 3DS. This works fine the visibility of the gauge polygon is nicely controlled by the C++ gauge logic. However as soon as i attach the visibility parameter to the gauge polygon all the mouse click points on the gauge become inactive the mouse courser dosent even change indicating the buttons are clickable. i can still control everything from the 2D panel but cant click on anything in the VC.Here is the modeldef code i am using <PartInfo> <Name>navcom_lights_on</Name> <Visibility> <Parameter> <Code> (L:NAVCOM_POLY, bool) 0 == if{ 1 } els{ 0 } </Code> </Parameter> </Visibility> </PartInfo> <PartInfo> <Name>navcom_lights_off</Name> <Visibility> <Parameter> <Code> (L:NAVCOM_POLY, bool) 0 == if{ 0 } els{ 1 } </Code> </Parameter> </Visibility> </PartInfo>VCLights.jpgAny ideas on this would be greatly appreciated CheersPaul

Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.

 

 

  • Moderator

Since you mentioned the Attachpoint tool, I'm assuming that you are modeling in either Max or GMax.There are several possibilities you might try.1. make certain that your eyepoint isn't "inside" the headrest of the seatback. Try shifting your eyepoint manually to see if that works.2. create a small triangle poly at your model origin (0,0,0) and apply the Attachpoint Visibility to it, then Link your actual gauge polygon to the control node.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Hi billThanks for the reply yes indeed i am using 3DS max unfortunately i have already tried both of your suggestions. If i remove the visibility properties from the model the gauge works fine again so i know its not a viewpoint issue but i did try moving the eyepoint any way. I have also tried the control polygon and linking the gauge poly to it but it has the same effect, mouse clicks stop working. it really has me stumped.cheers Paul

Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.

 

 

  • Moderator

Try creating a new gauge polygon for your radio stack, and suspend it in "space" (that is, hanging above the glareshield) and test from there. It may be that other geometry in the area around the radio stack is causing a problem.If that works, then try moving your "real" gauge polygons slightly so they "float" apart from the surrounding polygons.We are currently experiencing a somewhat similar problem with a model that was created by FSDS v3.51. Only a few gauge polys are behaving oddly, and that is only when battery power is turned on! What is truly odd is that I can use the exact same XML scripts in a "test panel" I ginned up quickly in Max7 and have had ZERO problems. Also, the exact same process works for the released FS9 version of the same aircraft... :( I've had remarkably few problems with any of my GMax models... Since both Max and FSDS use the same export module from the SDK (GMax uses a different export module), I've beginning to wonder if the problem might lie there... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

Cheers at least im not the only one :( will have a go at this in the morning and let you know how i goPaul

Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.

 

 

  • Author

I Think i may have solved the problem looks like it was an issue with the draw order i enabled Z-Write Alpha option in the lit gauge material at it seems to be working now YYYYAAAAAThanks again for all the help and suggestions Paul

Pilots track their lives by the number of hours in the air, as if any other kind of time isn't worth noting.

 

 

  • Moderator
I Think i may have solved the problem looks like it was an issue with the draw order i enabled Z-Write Alpha option in the lit gauge material at it seems to be working now YYYYAAAAAThanks again for all the help and suggestions Paul
Wow, I'm certainly glad you found the solution for your specific problem... :( With some luck it may well prove to be helpful for anyone else with the same issue...Several years ago I encountered a situation where an Attached mouse point simply would not be detected by the mouse in the VC. I never even though about trying Z-Write Alpha... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.