pygfx.objects.Background

class pygfx.objects.Background(geometry=None, material=None, **kwargs)

Bases: WorldObject

The scene’s background.

Can be e.g. a gradient, a static image or a skybox.

Parameters:
  • geometry (Geometry) – Must be None. Exists for compliance with the generic WorldObject API.

  • material (Material) – The material to use when rendering the background.

  • kwargs (Any) – Additional kwargs are forwarded to the object’s base class.

Examples

Rendering Points

Rendering Points

Orbit Camera

Orbit Camera

Text contrast

Text contrast

Use a Skybox

Use a Skybox

Panzoom Camera

Panzoom Camera

Color Picking

Color Picking

Paint to a texture

Paint to a texture

Use a Skybox

Use a Skybox

Nested Scenes

Nested Scenes

PBR Rendering 1

PBR Rendering 1

Mesh and Volume Slicing 2

Mesh and Volume Slicing 2

Mesh Picking

Mesh Picking

Volume and Mesh Slicing 1

Volume and Mesh Slicing 1

Dynamic Environment Map

Dynamic Environment Map

Subplots 2

Subplots 2

Environment Map Effects

Environment Map Effects

Text waterfall

Text waterfall

Mesh with quads

Mesh with quads

PBR Rendering 2

PBR Rendering 2

Map Screen to World

Map Screen to World

Validate Skybox

Validate Skybox

Render Text with Qt

Render Text with Qt