When you have the default model loaded, you can load your models into the scene and you can delete the default cube at any time. You will need to create a new material on each of your objects and assign the correct shader. You can do this by assigning the surface type, as shown below.
1. Once your model is completed, you can export it as a glTF using the method shown in step 2.
2. Open VS Code and install the glTF Tools and STK GMDF Tools extensions. Locate these by simply searching the names in the extensions section as shown below.
3. Load glTF into VS Code by using the load option or dragging and dropping the file into the VS Code main window. If you import a GLB file, you need to create a glTF file by right-clicking the file name tab in VS Code and choosing “glTF: Import from GLB”.
4. To add articulations to your glTF model, you need to create a GMDF file. The documentation for creating these files is here, and you can create them inside VS Code. Some example GMDF files are in the samples folder.
5. Once you have defined all of your articulations, you need to inject the GMDF into glTF. Technically, STK can read a GMDF file for a model without injecting it into the glTF, but AGI recommends it in order to minimize the total number of files. For this to work properly, the GMDF filename must be the same as the glTF file and should be in the same directory. With the glTF file selected in VS Code, press Ctrl+Shift+P to search possible functions. Begin searching “GMDF” and select “Inject GMDF in glTF”. When you select this option, you notice that your GMDF data has been added to your glTF file.
6. Once you have injected the GMDF file, it is ready to be exported as a GLB file. To do this, right-click the filename tab and select Export to GLB. Once you do this, you can easily load the file into STK under the model properties for the object. STK also accepts the glTF format, but AGI recommends exporting it as a GLB.