MPEG_viewport_recommended

Contributors

Status

Draft

Dependencies

Written against the glTF 2.0 spec.

Overview

MPEG_viewport_recommended provides the link from a camera object defined in glTF 2.0 to recommended viewport information by referencing to the MPEG accessor timed, where the sample of recommended viewport information will be made available.

The recommended viewport information provides dynamically changing information which includes translation and rotation of the node which includes the camera object, as well as the intrinsic camera parameter of the camera object. The client renders viewport according to the dynamically changed information.

NOTE: Another approach to achieve recommended viewport is to define an animation for a node with attached camera. The approach, however, does not support dynamically changing intrinsic camera and must be defined during the creation of glTF object.

Type Description Required
name string Name of the item No
translation integer The index of the accessor. No
rotation integer The index of the accessor. No
type string Specifies camera type No
parameters integer The index of the accessor. No
MPEG_viewport_recommended.name

The user-defined name of this recommended viewport.

MPEG_viewport_recommended.translation

The index of the accessor. Provides a reference to the accessor, by specifying the glTF 2.0 accessor’s index in accessors array, that describes the buffer where the data will be made available.

The data will contain translation information of camera object. The
componentType of the referenced accessor is FLOAT, and the type is VEC3, (x, y, z).

The glTF 2.0 accessor indicated by the field shall contain MPEG_accessor_timed extension and point to a a glTF 2.0 buffer that contain MPEG_buffer_circular.

MPEG_viewport_recommended.rotation

The index of the accessor. Provides a reference to the accessor, by specifying the glTF 2.0 accessor’s index in accessors array, that describes the buffer where the data will be made available.

The data will contain translation information of camera object. The componentType of the referenced accessor is FLOAT and the type is VEC4, as a unit quaternion, (x, y, z, w).

The glTF 2.0 accessor indicated by the field shall contain MPEG_accessor_timed extension and point to a a glTF 2.0 buffer that contain MPEG_buffer_circular.

MPEG_viewport_recommended.type

Specifies the type of camera, and the interpretation of the data provided through buffer indicated by parameters

MPEG_viewport_recommended.parameters

The index of the accessor. Provides a reference to the accessor, by specifying the glTF 2.0 accessor’s index in accessors array, that describes the buffer where the data will be made available.

The data will contain camera parameters information of camera object. The componentType of the referenced accessor is FLOAT and the type is VEC4.

The glTF 2.0 accessor indicated by the field shall contain MPEG_accessor_timed extension and point to a a glTF 2.0 buffer that contain MPEG_buffer_circular.

glTF Schema Updates

TODO

JSON Schema

MPEG_viewport_recommended.schema.json

Known Implementations

Resources