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.

"Squishy Needle Element" in C Gauge

Featured Replies

  • Moderator

I have a wonderful replica of a Garmin 106a VOR that works perfectly on the 2d panel, but for some odd reason the "compass card" needle element gets "warped" out of shape every 45 degrees of rotation.At 0

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
  • Moderator

I really hate answering my own questions, but in this case I'll make an exception... ;)As it turns out, while a "needle element" that has a width such that the "corners" will intersect/overlap the "edges" of the background bitmap will display fine when used on a 2d panel, they will "get squishy" and distort when used on a VC panel.The solution is to use a sprite element instead, because in that case the 1,1,1 "mask area" is used to limit and define the visible area of the element at all times. This eliminates the "warping" of the image as it rotates 360

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

This doesn't seem to happen in my VC, all needles display unwarped no matter what angle they are at. Could this be related to not specifying gauge width AND height in the VC-section of the panel cfg? Such asgauge13=Do128-6_V2_XML!Sperry_AA300_Radar Altimeter, 81,224,85,83I have found most gauges will be squished to some degree or another in VC's if the gauge height is not also specified in the panel.cfg ...

  • Author
  • Moderator

Unfortunately, no. Keep in mind that there are some "unique differences" between how XML bitmaps and C gauge bitmaps display.For one thing, XML "gauge code" is translated into GDI drawing code... and there's a distinct difference in the way bitmaps are treated. ;)The same bitmaps that worked perfectly in the "XML Version" fail miserably when used in a C gauge painted to a VC...

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.