3D Viewer
After adding the script tag to your website, the methods for creating the 3D Viewer will be available through the global R2U
object.
#
R2U.viewer.createmobile
desktop
Creates a 3D viewer on the website in the position of the indicated HTML element.
parameter | description | default |
---|---|---|
element | HTML element that will receive the 3D viewer | '' |
sku | product SKU | '' |
name | product name | product name on R2U platform |
popup | allows the 3D viewer to be expandable through a popup button | true |
progressBarPosition | defines the progress bar position ('top' , 'middle' or 'bottom' ) | 'top' |
progressBarColor | progress bar color ('gray' , 'rgba(89, 84, 84, 0.6)' , '#c5c5c5' ) | null |
poster | allows an image to be exhibited while the 3D model is loading | null |
#
popupEnables and disables the button to open the expandable 3D viewer with the model.
Popup example:
#
progressBarPositionDefines the position in which the progress bar will be inserted.
#
Change R2U.viewer's skuThe setSku
method updates the product SKU.
setSku example:
#
R2U.qrCode.createCreates a QR Code that, when scanned, redirects the user to the model in AR.