Skip to main content

Upgrading

Engine controls, materials, and WebXR imports​

Replace the Engine subpaths /experimental-controls, /experimental-materials, and /experimental-webxr with /controls, /materials, and /webxr, respectively.

Import Material, MaterialFactory, the PBR material factories, and their types from @luma.gl/engine/materials. This replaces their previous imports from the Engine root, @luma.gl/engine/api, @luma.gl/engine/lighting, and @luma.gl/anari.

Import splat training from @luma.gl/engine/splats/training and its COLMAP adapter from @luma.gl/engine/splats/training/colmap. These replace the former /splat-training paths.

Upgrading to v10.0​

Update the luma.gl packages together and regenerate your lockfile. Most v9 applications should start with their imports.

Update package imports​

v9 packagev10 entry point
@luma.gl/core@luma.gl/core/api for portable GPU imports. The package root forwards them and is deprecated.
@luma.gl/engine@luma.gl/engine/api for rendering and animation playback, and @luma.gl/engine/scenegraph for scene nodes and controllers. The deprecated root forwards both.
@luma.gl/webgl, @luma.gl/webgpu@luma.gl/core/webgl, @luma.gl/core/webgpu
@luma.gl/constants@luma.gl/core/webgl-constants
@luma.gl/webgl/debug@luma.gl/core/webgl-debug
@luma.gl/shadertools@luma.gl/shaders
@luma.gl/effects@luma.gl/engine/effects
@luma.gl/gltf@luma.gl/engine/gltf
@luma.gl/splats@luma.gl/engine/splats
@luma.gl/text@luma.gl/engine/text
@luma.gl/arrow@luma.gl/graph/arrow for GPU data and @luma.gl/engine/arrow for rendering adapters
@luma.gl/test-utils@luma.gl/core/test-utils
@luma.gl/gpgpuGraph for GPU operations and Engine for model integration

Use the package index to find APIs formerly imported from @luma.gl/experimental. Scene rendering moved into @luma.gl/anari.

If you used the earlier engine text entry points, change @luma.gl/engine/text-3d to @luma.gl/engine/text/3d, @luma.gl/engine/text-fonts to @luma.gl/engine/text/fonts, and @luma.gl/engine/text-experimental to @luma.gl/engine/text/experimental. Move TextRenderer, GPUTextResources, and their GPU data and prop types from @luma.gl/engine/text to @luma.gl/engine/text/2d. Font preparation and layout stay at @luma.gl/engine/text. The hyphenated fonts path remains available for compatibility with deck.gl.

Migrate fullscreen effects​

Replace ShaderPassRenderer with EffectRenderer from @luma.gl/engine. Pass built-in effects from @luma.gl/engine/effects as {effect, options}. For custom effects, declare intermediate textures in resources and draws in passes. See the effects guide.

Check backend-specific code​

  • WebGL draws. firstIndex is measured in index elements. Divide an old byte offset by the index element size. Use firstVertex for non-indexed draws.
  • WebGPU devices. Request featureLevel: 'core-max' in place of 'max' and update comparisons with device.info.featureLevel.
  • Custom shaders. Pass a GLSLShaderAssembler or WGSLShaderAssembler as shaderAssembler when sharing hooks or modules.
  • Borrowed WebGL contexts. Destroying an owned device requests context loss. Use ownsHandle: false if the context must outlive the device.

Upgrading to v9.4​

Review any custom shader injection hooks and the rendering options documented in the v9.4.2 guide.

Upgrading to v9.3​

Review shader type layout and portability changes in the v9.4.2 guide.

Upgrading to v9.2​

See the v9.4.2 guide for device, resource, and rendering API changes.

Upgrading to v9.1​

See the v9.4.2 guide for resource and canvas defaults.

Upgrading to v9.0​

Follow the archived v9 Porting Guide to move from v8 to the device API.

Upgrading to v8 and earlier releases​

v8.5 · v8.0 · v7.3 · v7.0 · v6.0 · v5.3 · v5.2 · v5.0 · v4.0 · v3.0