Import/export functions

Read and write glTF and glb files

readGLB()

Read a GLB file.

writeglTF() writeGLB()

Write a glTF or GLB file.

readglTF()

Read a glTF file

Conversion functions

Convert to and from glTF format within R

as.gltf()

Produce glTF objects

as.rglscene(<gltf>) as.mesh3d(<gltf>)

Convert a glTF object to an rglscene or mesh3d object.

Display functions

Display glTF objects in rgl or WebGL

plot3d() as.rglscene() as.mesh3d()

Imports from rgl

playgltf() showNodes()

Play an animated glTF object.

gltfWidget()

Create a widget for a glTF display.

Miscellaneous utility functions

Various functions used for display, debugging and internal use

extractTexture()

Extract a texture file from a glTF object

findEntry() namePattern() hasClass()

Find a component of a recursive object

getTangents()

Use the MikkTSpace code to generate tangent vectors.

matrixSequence() print(<matrixSequence>)

Print the sequence of matrices affecting an object.

modifyShaders()

Edit shader code

setPBRshaders()

Set shaders for physically based rendering.

showtree()

Show the tree structure of nodes in a glTF object or rglscene object.

showTags()

Debugging tool: show tags for objects in rgl scene

R6 classes used for internal storage

Gltf

R6 Class for glTF file objects