Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pnts tile format spec to include batch table #104

Merged
merged 6 commits into from
Jul 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.