Is there any way to change the colour of a (white) OSG text object? - It took me a few minutes to have the text on screen
and a few more hours to find no solution how to change its colour...
Here's the snippet:
- Code: Select all
<text>
<name>textosg</name>
<offsets>
<x-m>-0.09</x-m>
<y-m>0.05</y-m>
<z-m>0.06</z-m>
<heading-deg>90</heading-deg>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>xy-plane</axis-alignment>
<type type="string">number-value</type>
<property>an24/ARK-11/fix1-1</property>
<format type="string">%.1f</format>
<truncate type="bool">false</truncate>
<font>arial_black.txf</font>
<character-size type="double">0.006</character-size>
<character-aspect-ratio type="double">1.0</character-aspect-ratio>
<font-resolution>
<width type="int">32</width>
<height type="int">32</height>
</font-resolution>
</text>
<animation>
<type>material</type>
<object-name>textosg</object-name>
<diffuse>
<red>1</red>
<green>0</green>
<blue>0</blue>
</diffuse>
<ambient>
<red>1</red>
<green>0</green>
<blue>0</blue>
</ambient>
<specular>
<red>1</red>
<green>0</green>
<blue>0</blue>
</specular>
<emission>
<red>1</red>
<green>0</green>
<blue>0</blue>
</emission>
</animation>
Other animations such as "rotate" do work, "material" does not.
I've tried so much that I suspect that there's no possibility at all. I know, Canvas could do, but there's really no
need to put up a big canvas-solution for such a small problem...
Background: I have an ADF-controller (ARK-11) with a memory device (9 frequencies); A white board to write the stored frequencies
next to the nine "program-and-recall"-buttons. That's all! But white numbers on a white board are, well,.., uhm, no!
Any (attempt to) help is welcome as it will keep my head from banging-on-desk
Ciao,
Adrian