📐Transforming Content
Learn how to move, scale, rotate, and add text to 3D content in React Native
Last updated
Was this helpful?
Learn how to move, scale, rotate, and add text to 3D content in React Native
Last updated
Was this helpful?
You can go back to the console to add more 3D models, delete 3D models, add metadata, or change existing metadata associated with your entry and instantly see the changes in React Native.
For example, let's with the key direction
and the value right
.
This will make the 3D model rotate to the right.
The following keys are words the system uses as pre-defined metadata keys to control transformations:
Keyword
Type
Options
Effect
x
float
Any positive or negative number.
Default value is 0.
Moves the hologram on the x-axis
y
float
Any positive or negative number.
Default value is 0.
Moves the hologram on the y-axis
z
float
Any positive or negative number.
Default value is 0.
Moves the hologram on the z-axis
scale
float
Any positive number.
Default value is 1.
Grows or shrinks the hologram uniformly
xAngle
float
Any positive or negative number.
Default value is 0.
Rotates the model on the x-axis
yAngle
float
Any positive or negative number.
Default value is 0.
Rotates the model on the y-axis
zAngle
float
Any positive or negative number.
Default value is 0.
Rotates the model on the z-axis
The following keys are words the system uses as pre-defined metadata keys to add and design text:
Keyword
Type
Options
Description
text
string
Any string. The character ';' represents a line break.
Text to appear with the 3D content
textColor
string
Any color.
Default value is "white".
Color of the text
xTextPosition
float
Any positive or negative number. Default value is "0"
Position of the text in the x-axis relative to the 3D content
yTextPosition
float
Any positive or negative number. Default value is "0"
Position of the text in the y-axis relative to the 3D content
zTextPosition
float
Any positive or negative number. Default value is "0"
Position of the text in the z-axis relative to the 3D content
textScale
float
Any positive number.
Default value is "2".
Scale of the text
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 to affect its transformation. After adding metadata, restart the app.
If you'd like to annotate the content, go back to the console and to add text. After adding metadata, refresh the browser.