πŸ“Transforming Content

Learn how to move, scale, rotate, and add text to 3D content in AR.js.

Moving, Scaling, and Rotating 3D Content

Using Touch Screen Gestures

You can use touch screen gestures to temporarily transform 3D content.

Rotate content by taping the screen with one finger and moving the finger around the screen.

Scale content by pinching the screen with two fingers.

Using Metadata

You can use metadata to persistently transform 3D content.

If the content is too big or too small or if you'd like to move or rotate it, go back to the console and add metadata to affect its transformation. After adding or changing metadata you can instantly see the changes in the browser even while the experience is running.

The following keys are words the system uses as pre-defined metadata keys to control transformations:

Adding Text to 3D Content

If you'd like to annotate the content, go back to the console and add metadata to add text. After adding or changing metadata you can instantly see the changes in the browser even while the experience is running.

The following keys are words the system uses as pre-defined metadata keys to add and design text:

If changes are not instantly visible try refreshing the browser after adding metadata for the changes to take effect.

Muting 3D Content

Muting is only supported for 3D videos.

If you'd like to stop a video asset from playing sound as it is playing, go back to the console and add metadata to mute it. After adding metadata, refresh the browser.

The following key is a word the system uses as a pre-defined metadata key to mute a video:

Remember to refresh the browser after adding metadata with AR.js experiences for the changes to take effect.

Last updated