Template:Cubemap player/doc
Template to show a 3D view of a 360 panorama in cubemap format
Usage
{{Cubemap player/doc |faces= |montage= |align= |caption= |panoviewer= |viewbox width= |viewbox height= |pitch= |yaw= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
faces | Prefix of filename. Assume there are files with this prefix with (front).jpg, (back.jpg) etc appended to it. Individual faces can be overriden with face left, etc parameters | empty | optional | |
montageimg | File containing combined cubemap as one file (specify either montage or faces, not both) | empty | optional | |
align | left, right, center or none | right | optional | |
caption | Caption to use for the file | empty | optional | |
panoviewer | Set link to panoviewer toolforge tool (If using faces parameter will be guessed automatically) | empty | optional | |
viewbox width | Width of Output. Note this template does not support adjusting field of view, so increasing this may cause distortions | 300 | optional | |
viewbox height | Height of Outut. Note this template does not support adjusting field of view, so increasing this may cause distortions | 225 | optional | |
pitch | Initial pitch (How up↔down) in degrees. Valid values are -60, -45, -30, -15, 0, 15, 30, 45, 60 | -15 | optional | |
yaw | Initial yaw (How right↔left) in degrees. Valid values are -10, 90, 180 | -10 | optional | |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: no user group specified
Example
{{Cubemap player/doc|montage=Eesti Lennundusmuuseum. Hävitaja F-4C Phantom II kabiin (cubemap).jpg|yaw=90}}
renders as:
See also
- w:Template:Cubemap viewer (More complex version of this template)
- Template:PanoViewer
- Template:Cubemap part
Further information
This template can take either a single file that is a cubemap montage or multiple files to make up the cubemap.
For a single file use the montage parameter. The file must be formatted like File:Skybox example.png. (e.g. File:Eesti Lennundusmuuseum. Hävitaja F-4C Phantom II kabiin (cubemap).jpg)
Alternatively it can take the faces parameter which means that all 6 faces are separate files. For example if you use faces=Franklin Park photosphere, May 2019, then it will use File:Franklin Park photosphere, May 2019 (up).jpg, File:Franklin Park photosphere, May 2019 (back).jpg, File:Franklin Park photosphere, May 2019 (left).jpg, File:Franklin Park photosphere, May 2019 (front).jpg, File:Franklin Park photosphere, May 2019 (right).jpg, File:Franklin Park photosphere, May 2019 (down).jpg for the various views. It also assumes that File:Franklin Park photosphere, May 2019.jpg is a version of the full 360 file in equirectangular format.