Gltf

BIMserver plugin that provides a binary glTf serializer

License

License

GroupId

GroupId

org.opensourcebim
ArtifactId

ArtifactId

gltf
Last Version

Last Version

0.0.59
Release Date

Release Date

Type

Type

jar
Description

Description

Gltf
BIMserver plugin that provides a binary glTf serializer
Project URL

Project URL

https://github.com/opensourceBIM/GltfSerializers
Project Organization

Project Organization

OpenSource BIM
Source Code Management

Source Code Management

https://github.com/opensourceBIM/GltfSerializers.git

Download gltf

How to add to project

<!-- https://jarcasting.com/artifacts/org.opensourcebim/gltf/ -->
<dependency>
    <groupId>org.opensourcebim</groupId>
    <artifactId>gltf</artifactId>
    <version>0.0.59</version>
</dependency>
// https://jarcasting.com/artifacts/org.opensourcebim/gltf/
implementation 'org.opensourcebim:gltf:0.0.59'
// https://jarcasting.com/artifacts/org.opensourcebim/gltf/
implementation ("org.opensourcebim:gltf:0.0.59")
'org.opensourcebim:gltf:jar:0.0.59'
<dependency org="org.opensourcebim" name="gltf" rev="0.0.59">
  <artifact name="gltf" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.opensourcebim', module='gltf', version='0.0.59')
)
libraryDependencies += "org.opensourcebim" % "gltf" % "0.0.59"
[org.opensourcebim/gltf "0.0.59"]

Dependencies

compile (1)

Group / Artifact Type Version
org.opensourcebim : pluginbase jar 1.5.182

Project Modules

There are no modules declared in this project.

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)
org.opensourcebim

The open source BIM collective

Versions

Version
0.0.59
0.0.58
0.0.57
0.0.56
0.0.55
0.0.54
0.0.53
0.0.52
0.0.51
0.0.47
0.0.45
0.0.44
0.0.43
0.0.42
0.0.41
0.0.40
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
gltf-gltf-0.0.46
gltf-0.0.45