Jump to content
Sign in to follow this  
n4gix

"Squishy Needle Element" in C Gauge

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
Guest Mathias

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...