Skip to content

Commit

Permalink
Merge pull request #104 from AnalyticalGraphicsInc/pnts
Browse files Browse the repository at this point in the history
Update pnts tile format spec to include batch table
  • Loading branch information
lilleyse authored Jul 14, 2016
2 parents 3c70a9c + d28f887 commit 36a9916
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions TileFormats/Points/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Tom Fili, [@CesiumFili](https://twitter.com/CesiumFili)
* Patrick Cozzi, [@pjcozzi](https://twitter.com/pjcozzi)
* Dan Bagnell, [@bagnell](https://github.com/bagnell)
* Sean Lilley, [@lilleyse](https://github.com/lilleyse)

## Overview

Expand All @@ -18,6 +19,18 @@ _TODO, [#22](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/22)_

Positions are defined for high-precision rendering with [RTC](http://blogs.agi.com/insight3d/index.php/2008/09/03/precisions-precisions/). [#10](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/10)

## Batch Table Semantics

* `TILES3D_RGBA` - per-point colors, tightly packed interleaved RGBA `uint8` (32-bits per point). Byte length: `header.pointsLength * 4`
* `TILES3D_RGB` - per-point colors, tightly packed interleaved RGB `uint8` (24-bits per point). Byte length: `header.pointsLength * 3`
* `TILES3D_COLOR` - constant color for all points. RGBA `uint8`. Byte length: `4`

If more than one color semantic is defined, the precedence order is `TILES3D_RGBA`, `TILES3D_RGB`, then `TILES3D_COLOR`. For example, if a tile's batch table contains both `TILES3D_RGBA` and `TILES3D_COLOR` properties, the runtime would render with per-point colors using `TILES3D_RGBA`.

If no color semantics are defined, the runtime is free to color points using an application-specific default color.

In any case, [3D Tiles Styling](../../Styling/README.md) may be used to change the final rendered color and other visual properties at runtime.

## File Extension

`.pnts`
Expand Down
Binary file modified TileFormats/Points/figures/Figures.pptx
Binary file not shown.
Binary file modified TileFormats/Points/figures/layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 36a9916

Please sign in to comment.