Capture the Viewports of 3D Scene and Render to a Texture or Window

Capturing and Rendering the Viewports of 3D Scene

The create_render_texture and create_render_window 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.