Examples that use Pygfx
Introductory Examples
Use gfx.show
Hello World
Render a Triangle
Rendering Points
Boundary Boxes
Lights
Offscreen Rendering
Clipping Planes
Hello text
Orbit Camera
Feature Demos
Show STL File via gfx.show
Möbius strip Geometry
Subdivision
Use gfx.show to show a Scene
Geometry Image
Show Image
Line Drawing Performance
Geometry Cubes
Rotating Polyhedra
Isosurface Volume Rendering
Minip Volume Rendering
Torus knot
Mesh dynamic
Flat Shading
Line Segments
Point Picking
Volume Slice 1
Transform Control without Matrix Updating
Transform Control without Matrix Updating
Gizmo to transform world objects
Gizmo to transform world objects
Simulating grass with point sprites
Simulating grass with point sprites
Geometry Plane
Toon Rendering 1
Text contrast
Bounding Box Coordinates
Wireframe 1
Thick Lines
Klein Bottle Geometry
Volume Slice 2
Stats helper (Manual)
Measure distances in 2D
Wireframe 2
Image with Points Overlaid
Use a Skybox
Volume Rendering 2
Volume Slice 3
Physical Color
Panzoom Camera
Instancing
Fly controller
Synced Video Rendering
Color Picking
Directional Shadow 1
Mesh Slice Material
Colormap Channels
Image with another image overlaid
Image with another image overlaid
Volume Rendering 1
Displaying an image in a scene
Displaying an image in a scene
Paint to a texture
Multiple Fonts
Paint to a texture directly
Scene Overlay
Look At
Text snake
Sphere Geometry
Subplots 1
Use a Skybox
Measure distances in 3D
Nested Scenes
PBR Rendering 1
Camera linking 2
Look At (Instanced Mesh)
Mesh and Volume Slicing 2
Lightmap
Types of Cylinders
Camera linking 1
Volume and Mesh Slicing 1
Transparency 1
Mesh Picking
Detached Bind Mode
Ambient occlusion
Dynamic Environment Map
Morph Targets
Facecap animation with morph targets
Facecap animation with morph targets
Image Click Events
Directional Shadow 2
Subplots 2
Minimal Custom Object
Colormap Image
Transparency 2
Subplots Video
Labelled Image Grid
Line plot
PBR Rendering 2
Text waterfall
Environment Map Effects
Line Drawing
Mesh with quads
Toon Rendering 2
Skinned Mesh
Earth
Map Screen to World
Depth Material
Colormap Mesh
Multi-Object Selection
Skinning Animation
Simple Custom Object
Spotlights
Spotlight Shadow
Text align
Wireframe Material
Point Markers with Multiple Colors
Point Markers with Multiple Colors
Animations with glTF
Custom Object
Remote glTF Viewer
Video YUV
Animation Mixer
Audio Visualizer
Validation Examples
Axes Helper 1
Validate transparency with and without bg
Validate transparency with and without bg
Box Geometry
Axis Helper 2
Text outline always behind text itself
Text outline always behind text itself
Image Material
Additive Blending
Image on Plane Geometry 1
Normals on front and back
Points with different sizes
Simple Colormap
Depth Overlay 2
Lines with different thicknesses
Lines with different thicknesses
Depth Overlay 1
Validate dither
Reference Color
Validate weighted_plus
Text anchor
srgb texture colorspace
Tiny Image Validation
Validate transparency for the ordered2 blend mode
Validate transparency for the ordered2 blend mode
Validate send_data
Dashing
Validate transforms
Light and Shadow
Validate Skybox
Depth Clipping
Validate ruler
Volume and Volume Slice Rendering
Volume and Volume Slice Rendering
Text justification
NDC Coordinates
Text size
Lines in 2D
Validate the grid
Points drawn with different size_space
Points drawn with different size_space
Validate view offset
Lines drawn with different thickness_space
Lines drawn with different thickness_space
Mesh Colormaps
Culling
Points with different markers
Mesh slice
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.
Showing CPU usage in the title bar
Showing CPU usage in the title bar
Simple Cube with WX
Simple Cube with Qt
GPU selection
Integrate Pygfx in Qt
Boundary Boxes
Two Canvases
Performance of drawing many Lines
Performance of drawing many Lines
Fullscreen Postprocessing 2
Load Open3D Mesh
Load Open3D Pointcloud
Sponza Scene
Reactive rendering loop
Full-Screen Post Processing 1
High resolution screenshot
Interactive Segmentation with SAM2
Interactive Segmentation with SAM2
Light Effects
Pytorch Integration