This repository has been archived by the owner on Jul 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
XKT Format V7 #7
Labels
enhancement
New feature or request
Comments
xeolabs
added a commit
that referenced
this issue
Mar 4, 2021
xeolabs
added a commit
that referenced
this issue
Mar 5, 2021
xeolabs
added a commit
that referenced
this issue
Mar 9, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The next version of the
XKT
file format.Improved Geometry Reuse
XKT V7
reuses geometry data in a more flexible and granular way, resulting in smaller file sizes.In
XKT V6
, the file structure is as shown below:An
XKTPrimitive
is a triangle mesh, that has a color and an opacity.XKTPrimitives
are used byXKTEntities
, which each have a transform matrix.XKTTile
s spatially groupXKTEntity
s.This is wasteful, because in practice we often have multiple differently-colored
XKTPrimitives
that have the same shape, eg. a box. In that case, it means we would need to redundantly repeat that box-shaped geometry data, in order to have an object composed of differently-colored boxes.This also means that, since an
XKTEntity
transforms all itsXKTMeshes
using the same matrix, the Local-space positions of thoseXKTMeshes
must be nicely positioned relative to each other, ready to transform as a unit, via that matrix, into World-space.In
XKT V7
, we fix this wastage like so:XKTPrimitive
withXKTGeometry
, which just holds geometry arrays (and a new primitive type property) ,XKTMesh
, which represents an instance of anXKTGeometry
, with its own transform matrix, color and opacityXKTEntity
(since eachXKTMesh
has its own matrix)New Geometry Types
Support three geometry types: "triangles", "lines" and "points"
TODO: describe
Auto-flagging watertight geometries
TODO: describe
The text was updated successfully, but these errors were encountered: