Examples that use pygfx

Introductory Examples

Use gfx.show

Use gfx.show

Hello World

Hello World

Render a Triangle

Render a Triangle

Rendering Points

Rendering Points

Boundary Boxes

Boundary Boxes

Lights

Lights

Hello text

Hello text

Offscreen Rendering

Offscreen Rendering

Clipping Planes

Clipping Planes

Orbit Camera

Orbit Camera

Feature Demos

Subdivision

Subdivision

Use gfx.show to show a Scene

Use gfx.show to show a Scene

Geometry Image

Geometry Image

Show STL File via gfx.show

Show STL File via gfx.show

Show Image

Show Image

Line Drawing Performance

Line Drawing Performance

Line Segments

Line Segments

Rotating Polyhedra

Rotating Polyhedra

Flat Shading

Flat Shading

Geometry Cubes

Geometry Cubes

Image with Points Overlaid

Image with Points Overlaid

Torus knot

Torus knot

Wireframe 1

Wireframe 1

Klein Bottle Geometry

Klein Bottle Geometry

Volume Slice 1

Volume Slice 1

Thick Lines

Thick Lines

Geometry Plane

Geometry Plane

Point Picking

Point Picking

Text contrast

Text contrast

Wireframe 2

Wireframe 2

Gizmo to transform world objects

Gizmo to transform world objects

Bounding Box Coordinates

Bounding Box Coordinates

Volume Slice 2

Volume Slice 2

Volume Slice 4

Volume Slice 4

Volume Slice 3

Volume Slice 3

Physical Color

Physical Color

Transform Control without Matrix Updating

Transform Control without Matrix Updating

Synced Video Rendering

Synced Video Rendering

Line Drawing

Line Drawing

Instancing

Instancing

Color Picking

Color Picking

Volume Rendering 2

Volume Rendering 2

Transparency 1

Transparency 1

Scene Overlay

Scene Overlay

Mesh Slice Material

Mesh Slice Material

Directional Shadow 1

Directional Shadow 1

Sphere Geometry

Sphere Geometry

Panzoom Camera

Panzoom Camera

Volume Rendering 1

Volume Rendering 1

Colormap Channels

Colormap Channels

Subplots 1

Subplots 1

Use a Skybox

Use a Skybox

Text snake

Text snake

Nested Scenes

Nested Scenes

Transparency 2

Transparency 2

PBR Rendering 1

PBR Rendering 1

Types of Cylinders

Types of Cylinders

Mesh Picking

Mesh Picking

Mesh and Volume Slicing 2

Mesh and Volume Slicing 2

Directional Shadow 2

Directional Shadow 2

Volume and Mesh Slicing 1

Volume and Mesh Slicing 1

Image Click Events

Image Click Events

Dynamic Environment Map

Dynamic Environment Map

Colormap Image

Colormap Image

Minimal Custom Object

Minimal Custom Object

Text waterfall

Text waterfall

Subplots Video

Subplots Video

Subplots 2

Subplots 2

PBR Rendering 2

PBR Rendering 2

Colormap Mesh

Colormap Mesh

Multi-Object Selection

Multi-Object Selection

Depth Material

Depth Material

Simple Custom Object

Simple Custom Object

Spotlights

Spotlights

Spotlight Shadow

Spotlight Shadow

Wireframe Material

Wireframe Material

Custom Object

Custom Object

Validation Examples

Axes Helper 1

Axes Helper 1

Box Geometry

Box Geometry

Simple Colormap

Simple Colormap

Image Material

Image Material

Axis Helper 2

Axis Helper 2

Normals on front and back

Normals on front and back

Image on Plane Geometry 1

Image on Plane Geometry 1

Transparency

Transparency

Reference Color

Reference Color

Text anchor

Text anchor

Depth Clipping

Depth Clipping

Light and Shadow

Light and Shadow

Volume and Volume Slice Rendering

Volume and Volume Slice Rendering

NDC Coordinates

NDC Coordinates

Text size

Text size

Mesh Colormaps

Mesh Colormaps

Culling

Culling

Other Examples

Note

The examples in this section are not rendered. Typically because they use a backend that is not available on the CI runner.

Simple Cube with WX

Simple Cube with WX

Simple Cube with Qt

Simple Cube with Qt

Integrate pygfx in Qt

Integrate pygfx in Qt

Two Canvases

Two Canvases

Fullscreen Postprocessing 2

Fullscreen Postprocessing 2

Peformance of drawing many Lines

Peformance of drawing many Lines

Sponza Scene

Sponza Scene

Full-Screen Post Processing 1

Full-Screen Post Processing 1

Render Text with Qt

Render Text with Qt

Light Effects

Light Effects

Gallery generated by Sphinx-Gallery