Skip to reading
3D Models & Video in GUIs

3. Add a GUI 3D Model element

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

1. Create a GUI called 3D Object Viewer with ID model_lab.

2. Add a 3D Model element and give it ID object_viewer.

3. In General, set X 32, Y 96, Width 720 and Height 444 for this example.

4. Open Images. Set Media Asset to your Lantern model asset.

5. Open Type Settings. Leave Starting Camera Distance at 0 for automatic fitting.

Figure 2. Images contains the model’s Media Asset and the separate 2D Background Image.

The model should appear inside the element rectangle. Add a separate Label for instructions and a Button to close the GUI. A model’s asset name is not automatically drawn as a caption inside the viewer.

Choose a model asset, not a character definition ID or the ID of a room object. The viewer needs a loadable model resource.

Page 6 of 45Permalink
Go to page