<DIV>Hi,</DIV>
<DIV>I wish to display some text as overlay on my window to show</DIV>
<DIV>information about the volume it displays. </DIV>
<DIV>I can do it fine, except that some characters looks corrupted</DIV>
<DIV>each time the renderer renders. It is always different characters</DIV>
<DIV>and I've try a few ways to display the text and I always have the</DIV>
<DIV>same problem. Any idea on how to correct that? I am using a </DIV>
<DIV>ATI 9600 Radeon (128 mb) card if it might be the problem. (VTK 4.2.2)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is how I add the text, Is it alright? I did exactly the same way</DIV>
<DIV>as VTK user guide 4.2,</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>
<P>m_Text = vtkTextMapper::New();</P><FONT size=2>
<P>m_Text-&gt;SetFontSize(14);</P>
<P>m_Text-&gt;SetFontFamilyToArial();</P>
<P>m_Text-&gt;SetVerticalJustificationToBottom();</P>
<P>m_Text-&gt;SetJustificationToLeft();</P>
<P>m_Text-&gt;BoldOn();</P>
<P>m_Text-&gt;ItalicOn();</P>
<P>m_Text-&gt;ShadowOn(); <FONT size=2></P>
<P>m_TextActor = vtkScaledTextActor::New();</FONT><FONT size=2></P>
<P>m_TextActor-&gt;SetMapper(m_Text);</P>
<P>m_TextActor-&gt;SetDisplayPosition(10, 10);</P>
<P>m_TextActor-&gt;GetProperty()-&gt;SetColor(0, 1, 0);</P>
<P>m_renderer-&gt;AddActor2D(m_TextActor);</P>
<P>Thank you!</P>
<P>----</P>
<P>Mathieu</P></FONT></FONT></FONT></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>