Capture the Viewports of 3D Scene and Render to a Texture or Window
Contents
[
Hide
]
Each 3D scene can comprise of any number of viewports. Using Aspose.3D for .NET API, developers can capture one or more viewports in a single screenshot. They may render it in the GUI based .NET application or an image.
Capturing and Rendering the Viewports of 3D Scene
The CreateRenderTexture
and CreateRenderWindow
methods exposed by the RenderFactory
class can be used to create a new render target that renders the scene to a texture or Window.
Programming Sample
This code example captures a viewport of 3D Scene and renders it in two different ways.