WPF - Render text in Viewport3D

Posted by eWolf on Stack Overflow See other posts from Stack Overflow or by eWolf
Published on 2010-05-31T20:08:43Z Indexed on 2010/05/31 20:13 UTC
Read the original article Hit count: 672

Filed under:
|
|
|
|

I want to present up to 300 strings (just a few words) in a Viewport3D - fast! I want to render them on different Z positions and zoom in and out fluently.

The ways I have found so far to render text in a Viewport3D:

  • Put a TextBlock in a Viewport2DVisual3D.
  • This guy's PlanarText class.
  • The same guy's SolidText class.
  • Create my own 2D panel and align TextBlocks on it. Call InvalidateArrange() every time I update the camera position.

All of these are extremely slow and far apart from zooming fluently even with 10 strings only. Does anyone have a solution for this handy? It's got to be possible to render some text in a Viewport3D without waiting seconds!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET