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
Fly controller
Instancing
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
Scene Overlay
Look At
Text snake
Sphere Geometry
Subplots 1
Use a Skybox
Measure distances in 3D
Nested Scenes
Camera linking 2
Look At (Instanced Mesh)
Mesh and Volume Slicing 2
PBR Rendering 1
Lightmap
Types of Cylinders
Transparency 1
Camera linking 1
Volume and Mesh Slicing 1
Mesh Picking
Ambient occlusion
Dynamic Environment Map
Image Click Events
Directional Shadow 2
Subplots 2
Minimal Custom Object
Transparency 2
Colormap Image
Subplots Video
Line plot
PBR Rendering 2
Text waterfall
Environment Map Effects
Line Drawing
Mesh with quads
Toon Rendering 2
Skinned Mesh
Map Screen to World
Earth
Depth Material
Colormap Mesh
Skinning Animation
Multi-Object Selection
Simple Custom Object
Detached Bind Mode
Spotlights
Spotlight Shadow
Text align
Wireframe Material
Point Markers with Multiple Colors
Point Markers with Multiple Colors
Custom Object
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
Simple Colormap
Image on Plane Geometry 1
Normals on front and back
Points with different sizes
Depth Overlay 2
Lines with different thicknesses
Lines with different thicknesses
Depth Overlay 1
Reference Color
Transparency
Text anchor
Validate transparency for the ordered2 blend mode
Validate transparency for the ordered2 blend mode
Dashing
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
Mesh Colormaps
Lines drawn with different thickness_space
Lines drawn with different thickness_space
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
Two Canvases
Performance of drawing many Lines
Performance of drawing many Lines
Fullscreen Postprocessing 2
Sponza Scene
Reactive rendering loop
Full-Screen Post Processing 1
Light Effects
Pytorch Integration