Jump to content

Template:Cubemap player/doc

From Wikimedia Commons, the free media repository

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

ParameterDescriptionDefaultStatus
facesPrefix 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 parametersemptyoptional
montage
img
File containing combined cubemap as one file (specify either montage or faces, not both)emptyoptional
alignleft, right, center or nonerightoptional
captionCaption to use for the fileemptyoptional
panoviewerSet link to panoviewer toolforge tool (If using faces parameter will be guessed automatically)emptyoptional
viewbox widthWidth of Output. Note this template does not support adjusting field of view, so increasing this may cause distortions300optional
viewbox heightHeight of Outut. Note this template does not support adjusting field of view, so increasing this may cause distortions225optional
pitchInitial pitch (How up↔down) in degrees. Valid values are -60, -45, -30, -15, 0, 15, 30, 45, 60-15optional
yawInitial yaw (How right↔left) in degrees. Valid values are -10, 90, 180-10optional

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

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)

Using faces=Franklin Park photosphere, May 2019

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.