03-22-2013, 03:04 PM
3D Text should not be used very much - each character creates many lines that all need to be updated when camera is changed. This can be very CPU intensive when many characters are shown.
I would recommend you to use Plane3D and render the text there as texture.
If you are using .Net 4 than I would advice you to use VisualBrush that would contain TextBlocks with required text. See internet on how to do that - there are also many performance twicks that can be set on VisualBrush.
On .Net 3.5 SP1 there could be some problems with VisualBrush - http://blogs.msdn.com/wpf3d/archive/2009...lable.aspx
Here you can use RenderTargetBitmap to render the TextBlocks to a bitmap image and use it as texture on Plane3D (use ImageBrush). Here you need to decide how big image you will create - bugger image means slower performance but better quality when the camera is closer to the image.
Similar technique is also used in cannon ball simulation sample that comes with Ab3d.PowerToys - see the SetSafeVisualBrush method.
I would recommend you to use Plane3D and render the text there as texture.
If you are using .Net 4 than I would advice you to use VisualBrush that would contain TextBlocks with required text. See internet on how to do that - there are also many performance twicks that can be set on VisualBrush.
On .Net 3.5 SP1 there could be some problems with VisualBrush - http://blogs.msdn.com/wpf3d/archive/2009...lable.aspx
Here you can use RenderTargetBitmap to render the TextBlocks to a bitmap image and use it as texture on Plane3D (use ImageBrush). Here you need to decide how big image you will create - bugger image means slower performance but better quality when the camera is closer to the image.
Similar technique is also used in cannon ball simulation sample that comes with Ab3d.PowerToys - see the SetSafeVisualBrush method.
Andrej Benedik

