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

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

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...