Web
Load and show your Ready Player Me avatars on the web.
In the Quickstart you learned how to open the Avatar Creator in an iframe and get a valid Avatar URL.
In this guide, you will learn how to display the avatar in your website or app. Loading and displaying the avatars in your web app or page requires a webGL-based rendering tool and the Canvas.
There are many different open source options.
We recommend
model-viewer
, as it is straightforwad to get started.If you need more customization options, use
Visage
, Ready Player Me's own 3D avatar rendering package for the web.
Model Viewer
The easiest way to load and display avatars on a web-page is to use the open-source package model-viewer
(https://modelviewer.dev/). The following example shows how to import and use the model-viewer for loading a Ready Player Me avatar.
-> Read the full Model Viewer Documentation (third-party)
Copy the code below into a file and open it in your browser.
Change the avatar URL to display a different avatar.
Visage
Visage is an open-source library for showcasing Ready Player Me avatars and 3D models on the web. You can find it in this GitHub Repository.
You need npm
, which is part of Node.js, which needs to be installed in order to download the package.
See the instructions for installing Node.js.
You can find code examples of the components and their documentation on this GitHub page.
Below is the first example to get you started.
Last updated