How do I add an image to my scene? #247
Answered
by
jbaicoianu
jbaicoianu
asked this question in
FAQs
-
I'd like to add an image to my scene |
Beta Was this translation helpful? Give feedback.
Answered by
jbaicoianu
Apr 28, 2024
Replies: 1 comment
-
Images can be added to the scene using the <Assets>
<AssetImage id="my_image_id" src="https://URL.to/my/image.png" />
</Assets>
<Room>
<Image id="my_image_id" pos="0 2 -5" />
</Room> Or in the simple case, you can refer directly to the image by URL, without having to specify the asset separately: <Room>
<Image id="https://URL.to/my/image.png" pos="0 2 -5" />
</Room> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jbaicoianu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Images can be added to the scene using the
<image>
markup tag. This tag takes the usual properties any other type of object takes likepos
,rotation
,scale
, etc. In addition, the<image>
tag takes anid
parameter, which can refer either to an asset defined in the<assets>
section of your page like so:Or in the simple case, you can refer directly to the image by URL, without having to specify the asset separately: