I migrated my CustomDraw elements to TEXTURE element using the rendering plugin. As this is background element I use TEXTURES_BELOW_PANEL = 1 in the panel.cfg
As you can see it renders quite well and very fast:
however I have 2 problems that only appears on the VC. On 2D panel ALL IS GOOD and it is the same XML gauge.
1) The first issue is the black rectangle. I experimented a little bit and it is not related to the XML code as when I removed all elements and kept only TEXTURE element the black top left rectangle was still there. I believe it is something related with the model. As I am not 3d modeller could you give me a hint what could be wrong in that model definition ?
2) The second issue is the use of RECTANGLE element with Transparency attribute. It is used for dimming/shadowing some of the elements of PFD symbology. In 2D compass rose and altitude indicator are shadowed however in 3D VC view they are not. Can you tell me what is wrong ? Something in the model. The following code is used for the shadow:
and it looks <Transparency>0.800</Transparency> has no effect on that rectangle element.<Element id="Shadow">
<FloatPosition>219.000,232.000</FloatPosition>
<Image id="pfd_360_rose_shadow.bmp" Alpha="true" Name="pfd_360_rose_shadow.bmp">
<Transparent>true</Transparent>
<Axis>144.000,144.000</Axis>
<Bright>true</Bright>
</Image>
<Rectangle id="Shadow">
<Bright>true</Bright>
<Width>300</Width>
<Height>300</Height>
<FillColor>black</FillColor>
<Transparency>0.800</Transparency>
</Rectangle>
</Element>
BTW, one thing I also noticed. When background_color in panel.cfg IS NOT 0,0,0 then the texture element is NOT visible on 2D panel. When I move the gauge I can see it is rendered as it blinks for a second then it is covered by the background. I am not sure this is expected behavior.