Visualizing a glTF file#
In this tutorial, we will show how to display a glTF file in a scene.
Create a scene.
Retrieving the gltf model.
Initialize the glTF object and get actors using actors method. Note: You can always manually create actor from polydata, and apply texture or materials manually afterwards. Experimental: For smooth mesh/actor you can set apply_normals=True.
Add all the actor from list of actors to the scene.
Total running time of the script: ( 0 minutes 0.127 seconds)