Available adapters
Equirectangular
The default adapter. Loads standard equirectangular JPEGs, including cropped or partial panoramas with XMP metadata support.
Equirectangular tiles
Reduces initial load time by slicing large equirectangular panoramas into smaller tiles loaded on demand.
Equirectangular video
Displays equirectangular video panoramas. Requires the VideoPlugin.
Cubemap
Loads cube mapping projections from six face images, a horizontal stripe, or a polyhedron net layout.
Cubemap tiles
Reduces initial load time by slicing large cubemap faces into tiles loaded on demand.
Cubemap video
Displays cubemap video panoramas in the format used by YouTube. Requires the VideoPlugin.
Dual fisheye
Displays raw dual-fisheye files produced by 360° cameras such as the Ricoh Theta Z1.
Choosing an adapter
| Use case | Adapter |
|---|---|
| Standard 360° photo (JPEG, PNG) | Equirectangular (default) |
| Very large equirectangular image | Equirectangular tiles |
| 360° video in equirectangular format | Equirectangular video |
| Six-face cubemap images | Cubemap |
| Very large cubemap faces | Cubemap tiles |
| Cubemap video (YouTube-style) | Cubemap video |
| Raw file from Ricoh Theta Z1 | Dual fisheye |
How to use an adapter
Pass the adapter class to theadapter option when creating the Viewer. Some adapters also accept a configuration object, which you provide using the static withConfig method.
The equirectangular adapter is built into
@photo-sphere-viewer/core and is the default. You only need to declare it explicitly if you want to pass configuration options.