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
Torus knot
Mesh dynamic
Flat Shading
Line Segments
Fly controller
Point Picking
Transform Control without Matrix Updating
Transform Control without Matrix Updating
Gizmo to transform world objects
Gizmo to transform world objects
Volume Slice 1
Simulating grass with point sprites
Simulating grass with point sprites
Geometry Plane
Bounding Box Coordinates
Text contrast
Wireframe 1
Thick Lines
Klein Bottle Geometry
Stats helper (Manual)
Wireframe 2
Volume Slice 2
Volume Slice 3
Image with Points Overlaid
Use a Skybox
Volume Rendering 2
Physical Color
Panzoom Camera
Instancing
Synced Video Rendering
Color Picking
Sphere Geometry
Directional Shadow 1
Mesh Slice Material
Paint to a texture
Colormap Channels
Volume Rendering 1
Image with another image overlaid
Image with another image overlaid
Scene Overlay
Look At
Text snake
Subplots 1
Use a Skybox
Transparency 1
Nested Scenes
PBR Rendering 1
Look At (Instanced Mesh)
Mesh and Volume Slicing 2
Transparency 2
Types of Cylinders
Mesh Picking
Volume and Mesh Slicing 1
Lightmap
Dynamic Environment Map
Ambient occlusion
Image Click Events
Directional Shadow 2
Subplots 2
Colormap Image
Subplots Video
Minimal Custom Object
PBR Rendering 2
Environment Map Effects
Text waterfall
Line Drawing
Mesh with quads
Map Screen to World
Colormap Mesh
Multi-Object Selection
Depth Material
Simple Custom Object
Spotlights
Spotlight Shadow
Text align
Wireframe Material
Custom Object
Validation Examples¶
Axes Helper 1
Box Geometry
Axis Helper 2
Image Material
Simple Colormap
Image on Plane Geometry 1
Normals on front and back
Lines with different thicknesses
Lines with different thicknesses
Points with different sizes
Depth Overlay 2
Depth Overlay 1
Reference Color
Transparency
Text anchor
Points with different markers
Dashing
Light and Shadow
Validate Skybox
Depth Clipping
Volume and Volume Slice Rendering
Volume and Volume Slice Rendering
Text justification
NDC Coordinates
Text size
Lines in 2D
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
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.
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
Sponza Scene
Reactive rendering loop
Light Effects