Embedding the viewport

Hi
I manage to show the IApplication.ActiveWindow in a separate Window, but i’m not satisfied with the solution, because it’s not the viewport itself. To those who like to review the code… be warned… started .net 5 days ago. If you come up with a better solution… please share.
Problems:

  1. Framerate: IApplication.SurfaceToBuffer() (1Hz) vs. IApplication.SurfaceToContineousBuffer() (30Hz)
  2. IApplication.SurfaceToContineousBuffer() needs IApplication.SetRecordingMode(true)
    -> Rendering in VC-window paused
  • you can still drop layouts in VC-windows and play simulation
  • also pan/zoom in VC-windows effects just the 2nd window, not the VC-window itself
  1. It seems that there are some async rendering functions with an explicity interface for a seperate 3DWindow:
    SurfacePrepareRender(3DWindow);
    SurfaceStartRender(3DWindow);
    SurfaceWaitRender(3DWindow);
    but i couldn’t find a way to use the SurfaceToBuffer() or SurfaceToImage() function independently from IApplication.ActiveWindow
    -> so if i like an “image” i have to make the 3dwindow active??

I didn’t tried to get a better performance:
-Direct3D UI stuff like SharpDX etc. for visualisation

WpfApplicationShowRenderImage.zip (57.4 KB)

1 Like