Text in DXScene using WpfModelVisual3DNode and TextVisual3D
#2
When you do not use DXViewportView and use only DXScene, some functionality that is defined by Ab3d.PowerToys library does not work.

By default, 3D lines do not work in this way.

But in the DXEngine v2.3 it is possible to enable rendering 3D lines with a little trick.
You need to create an instance of DXViewportView. This will enable preparing line data for DXEngine in the Ab3d.PowerToys library. You do not need to use the created DXViewportView - just the code in its constructor needs to be executed.

I have improved that and in the next version of Ab3d.PowerToys (v8.2) this will not be needed anymore.


After the DXViewportView constructor is called, you can create 3D lines and also TextVisual3D (uses 3D lines internally) and then you can add it to DXScene with creating WpfModelVisual3DNode (as you do in your scene).

Note that you will not be able to render lines with arrows because arrows are not fully hardware accelerated - their geometry is prepared in code in Ab3d.PowerToys library. But you can use ArrowVisual3D instead.
Andrej Benedik
  


Messages In This Thread
RE: Text in DXScene using WpfModelVisual3DNode and TextVisual3D - by abenedik - 02-26-2018, 12:32 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)