Skip to main content
Open

Support adding feature attributes to GLTF/GLB files

Related products:Integrations
siennaatsafe
fmelizard
oscard
runneals
bruceharold
+9
  • siennaatsafe
    siennaatsafe
  • fmelizard
    fmelizard
  • oscard
    oscard
  • runneals
    runneals
  • bruceharold
    bruceharold
  • chriswilson
    chriswilson
  • tomtoni109
    tomtoni109
  • angela
  • esietinga
    esietinga
  • shaundadev
  • katrinaopperman
  • akammer
  • jogre
  • woodwa

jsdbroughton
Contributor

The GLTF Writer doesn't support the addition of feature attributes to Nodes/Groups in the written GLTF files.


The GLTF schema allows for both a "name:string" property and an "extras:map/object" property for both Nodes and Meshes. This could be used in combination with the schema definition/user attributes of the writer. Perhaps with options to apply at Node or Mesh??


I currently use a workaround to this with the FeatureWriter using GLTF/json and then on write, read this back in with the JSON Reader file, merge with the original feature dataset using JSON Templating. I then write this to local disk and compile the result as a GLB (with Draco compression) from the command line. (This last step could conceivably be a python script)


It would definitely be beneficial to go straight to the GLB from the original writer.

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings