Skip to content

opensourceBIM/GltfSerializers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

GltfSerializers

This is mainly just a demo, but it might evolve into a useful glTF serializer with a bit more effort.

Note: This plugin only works with the (yet unreleased) version 1.5 of BIMserver

Implemented:

Update glTF 2.0 does not use an extension anymore but natively supports embedding all data in one binary file. This is now also implementen as the glTF 2.0 serializer in this plugin.

Usage

  • Install this plugin
  • Download .glb files of your models with the "Binary glTF Serializer"

Using with CesiumJS

TODO

  • Convert to meters (the default length unit in glTF and Cesium) server-side
  • Transparency does not seem to work (for window for example)
  • Better default colors for objects with no vertex-colors
  • Implement non-binary version as well
  • Use object instancing
  • Actually reuse vertices (requires a BIMserver change as well, vertices are now stored on a per-object basis). At the moment all object's vertices array are just concatenated into one big buffer (with separate views for each object).
  • Do something with the normals in the shaders (maybe add some lights to the scene as well, not sure how that works in Cesium)

About

BIMserver that converts a model to binary glTF

Resources

Stars

Watchers

Forks

Packages

No packages published