Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.45 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.45 KB

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)