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
Point Picking
Fly controller
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
Text contrast
Geometry Plane
Bounding Box Coordinates
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
Paint to a texture
Mesh Slice Material
Colormap Channels
Volume Rendering 1
Image with another image overlaid
Image with another image overlaid
Scene Overlay
Look At
Text snake
Subplots 1
Transparency 1
Use a Skybox
Nested Scenes
Look At (Instanced Mesh)
Mesh and Volume Slicing 2
PBR Rendering 1
Lightmap
Transparency 2
Types of Cylinders
Mesh Picking
Volume and Mesh Slicing 1
Ambient occlusion
Dynamic Environment Map
Image Click Events
Directional Shadow 2
Subplots 2
Minimal Custom Object
Colormap Image
Subplots Video
PBR Rendering 2
Text waterfall
Environment Map Effects
Line Drawing
Mesh with quads
Map Screen to World
Depth Material
Colormap Mesh
Multi-Object Selection
Simple Custom Object
Spotlights
Spotlight Shadow
Text align
Wireframe Material
Custom Object
Validation Examples¶
Axes Helper 1
Validate transparency with and without bg
Validate transparency with and without bg
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
Validate transparency for the ordered2 blend mode
Validate transparency for the ordered2 blend mode
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
Pytorch Integration