03-03-2025, 11:06 AM
I am sorry that the new version does not work anymore with your code.
I have fixed that so this will work again in the next version.
Unitil then, please reorder the code so that the size of the DXViewportView is set before calling the InitializeScene:
After that the directxViewPort.RenderToBitmap will produce the bitmap with rendered 3D objects.
I have fixed that so this will work again in the next version.
Unitil then, please reorder the code so that the size of the DXViewportView is set before calling the InitializeScene:
Code:
var viewport3D = new Viewport3D();
var directxViewPort = new DXViewportView();
directxViewPort.Viewport3D = viewport3D;
directxViewPort.Height = 2048;
directxViewPort.Width = 2048;
viewport3D.Width = 2048;
viewport3D.Height = 2048;
directxViewPort.InitializeScene();After that the directxViewPort.RenderToBitmap will produce the bitmap with rendered 3D objects.
Andrej Benedik

