Is gltf supported?

Hello everyone,

While working with 3D models in CGI Studio, I wanted to understand how to import GLTF files statically into a solution.

I would like to know the correct way to do this.

  • Is it possible to import “.gltf” files directly into CGI Studio?
  • If yes, what are the steps to import them statically?
  • Do I need to convert the GLTF file to another format before importing it?
  • Is there any additional setup required to use the imported 3D model in a scene?

If anyone has worked with static GLTF imports in CGI Studio, could you please share the steps or a simple example?

Thank you for your help!

Hi!

Yes, CGI Studio allows you to import “.gltf” files directly into your solution. There is no need to convert the files to another format for static import.

Follow these steps to import a GLTF file statically:

  1. Open your solution in CGI Studio.
  2. Go to Import in the menu bar and select Resources.
  3. Browse and select the required “.gltf” file.
  4. In the Import GLTF window, disable the Import Dynamic Appearance option to perform a static import.
  5. Click OK to continue.
  6. Another Import GLTF window will open. Click OK again to complete the import process.

After completing these steps, the GLTF resources will be imported successfully into your solution.

You can then use the imported 3D model resources in your scene as required. No additional format conversion is needed for this import process. You could even import animations along with it.

For more info please also refer to our online documentation here.

Thx - that worked!

One other thing worth checking with glTF imports is how external resources are handled.

A .gltf file can reference textures and binary buffers stored in separate files, unlike a self-contained .glb. So a model might import correctly on the original machine but run into missing resources when the project is moved or packaged for another target.

Does CGI Studio copy those dependencies into the solution during import, or does it retain references to the original paths?

That would be useful to clarify, especially for embedded HMI projects where all assets need to be included in the final build.

Hi and welcome to our forum :waving_hand:

To answer your question: Yes, when importing a glTF file, Scene Composer creates items based on the referenced resources.

Once the import is complete, the solution should continue to work as expected, even if it is copied to a different location, as the created items in Scene Composer handle the resource references.

I hope this clarifies things!