Skip to reading
The Asset Importer

5. Importing a 3D model

Edition 0.86.3.4

Import and check models, images, animation, audio, fonts, video and shaders, with hands-on practice files.

Download PDFView PDF page

5. Importing a 3D model

Choose distinct source filenames. Ordinary imports can use a destination based on the source basename, so two unrelated files both called background.png can collide. Names such as

Code example
workshop_background.png and harbour_background.png are safer.

Check your work. The image should still be listed after you select another asset and return. Then try selecting it in an Image field in the GUI Designer.

For a first model import, use the supplied Guide_Crate.glb. It has a simple material and a short animation, making both easy to inspect.

1. Add an asset with ID guide_crate and Name Guide Crate.

2. Choose Kind model.

3. Browse for Guide_Crate.glb.

4. Wait for the import and preview to finish. Avoid starting another import while the current one is still busy.

5. Click Frame Model if the object is not comfortably in view.

6. Inspect the crate and its animation as described in Chapter 6.

7. Apply Asset Changes and Save Project.

Page 14 of 86Permalink
Go to page