07-29-2020, 01:10 PM
The code that gets the size already reads the ActualWidth and ActualHeight. If they are not defined then Width and Height are read.
DXSceneInitialized event is called from DXViewportView - in case WPF 3D rendering is used, then the DXScene is not be initialized. You can check that with DXViewportView.UsedGraphicsProfile. WPF 3D can be used as a fallback if there was an error during initialization.
Is it possible that you create a simple project and send it to my email so that I can reproduce your issues and can check that in more details. It is quiet hard to guess what could be the cause if I do not have enough information.
An event that is triggered before Update is DXViewportView.SceneUpdating.
If you want to get more details on how DXEngine works, you can read the "Deep dive article" here: https://www.ab4d.com/DirectX/3D/DXEngineDeepDive.aspx
DXSceneInitialized event is called from DXViewportView - in case WPF 3D rendering is used, then the DXScene is not be initialized. You can check that with DXViewportView.UsedGraphicsProfile. WPF 3D can be used as a fallback if there was an error during initialization.
Is it possible that you create a simple project and send it to my email so that I can reproduce your issues and can check that in more details. It is quiet hard to guess what could be the cause if I do not have enough information.
An event that is triggered before Update is DXViewportView.SceneUpdating.
If you want to get more details on how DXEngine works, you can read the "Deep dive article" here: https://www.ab4d.com/DirectX/3D/DXEngineDeepDive.aspx
Andrej Benedik

