September 17, 200520 yr 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
September 18, 200520 yr 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
September 18, 200520 yr 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 ...
September 18, 200520 yr 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