Skip to content

How do I add an image to my scene? #247

Answered by jbaicoianu
jbaicoianu asked this question in FAQs
Discussion options

You must be logged in to vote

Images can be added to the scene using the <image> markup tag. This tag takes the usual properties any other type of object takes like pos, rotation, scale, etc. In addition, the <image> tag takes an id parameter, which can refer either to an asset defined in the <assets> section of your page like so:

<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>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jbaicoianu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
None yet
1 participant