Hide menu
No Matches
Offscreen Rendering Example

Table of Contents

Demonstrates how to capture images of the model for thumbnail generation and other uses.


Examples of customization that can be applied to generated images. Clockwise from the top left: transparent background and perspective projection, flat colored background and isometric projection, gradient background and top-view isometric projection, shaded view without edges.

Demonstrates the usage of ModelPrs_OffscreenViewPort to take a screenshot of the model and save it to a file on disk. First, a STEP model is imported, then a ModelPrs_Scene instance is created from it. An offscreen viewport is set up and then used to capture the image.


You can try this example with the following model: