GltfScene_v4 Op

GltfScene

Load GLTF/GLB 3d files


This op currently can only load GLB files, these are binary versions of a GLTF file. A GLTF file can be converted with programs such as Blender. Click the show structure button to see the way the GLB file is constructed with its nodes and materials.

GLTF Feature example patches:

https://cables.gl/patchlist/jvaDnE

converters:


Full Name
  • Ops.Gl.GLTF.GltfScene_v4
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubPatchlistTest Patches


INPUT PORTS


Render (Trigger)
glb File (String)
Draw (Number: boolean)
Camera index (Number: integer)
Animation (String)
Show Structure (Trigger)

Transform

Center index (Number: integer) None  XYZ  XZ 
Rescale (Number: boolean)
Rescale Size (Number)

Timing

Time (Number)
Sync to timeline (Number: boolean)
Loop (Number: boolean)
Normals Format index (Number: integer) XYZ  X-ZY 
Vertices Format index (Number: integer) XYZ  XZ-Y 
Calc Normals index (Number: integer) Auto  Force Smooth  Never 
Materials (Object)
Hide Nodes (Array)

Hide some GLTF nodes by name

Use Material Properties (Number: boolean)
Active (Number: boolean)

OUTPUT PORTS


Render Before (Trigger)
Next (Trigger)
Generator (String)
GLTF Version (Number)
GLTF Extensions Used (Array)
Anim Length (Number)
Anim Time (Number)
Json (Object)

The whole GLTF scene as JSON data

Anims (Array)
BoundingPoints (Array)
Bounds (Object)
Finished (Trigger)
Loading (booleanNumber)

Patches using GltfScene_v4

  • GLTF Examples (16)
  • Public
  • My Patches

Changelog


Ops.User.pandur.GltfScene3 renamed to Ops.Admin.GltfScene2user avatarpandur - 2020-02-06 13:14
cloned op from Ops.Gl.GLTF.GltfScene_v2user avatarpandur - 2021-04-06 13:10
bugfixfix animation not playing when using skinned mesh with assigned material shadersuser avatarpandur - 2022-01-31 09:10
improvementvertex colors: added automatic color conversion linear space user avatarpandur - 2022-01-31 09:11
bugfixfix problems with different animation interpolation settingsuser avatarpandur - 2022-01-31 09:11
improvementwarn user visually when file was not founduser avatarpandur - 2022-01-31 09:11
improvementcompatibility with more glb filesuser avatarpandur - 2022-01-31 09:12
improvementadd support for dataurlsuser avatarstephan - 2022-03-07 18:35
cloned op from Ops.Gl.GLTF.GltfScene_v3user avatarpandur - 2023-07-21 15:08
bugfixFix bug: GLTF meshes were not rendering the first time it was executeduser avatarpandur - 2024-05-23 11:41