Hide menu
Loading...
Searching...
No Matches
Offscreen Rendering Example

Table of Contents

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

Description

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.

Usage

You can try this example with the following model:

./examples/models/omni_wheel.stp

Files