Skip to content

Commit

Permalink
Merge pull request #3833 from AnalyticalGraphicsInc/3d-tiles-cleaning
Browse files Browse the repository at this point in the history
Minor 3D Tiles cleanup
  • Loading branch information
lilleyse committed Apr 12, 2016
2 parents ec9a7e5 + ba01474 commit 66f271b
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ Change Log
* `Cesium3DTileContent`
* `Cesium3DTileFeature`

TODO: these are still private:
* Added `vertexShaderLoaded`, `fragmentShaderLoaded`, `uniformMapLoaded`, `pickVertexShaderLoaded`, `pickFragmentShaderLoaded`, and `pickUniformMapLoaded` callbacks to the `Model` constructor and `Model.fromGltf`.

TODO: this is not finished yet:
* Added support for glTF compression using the `mesh_compression_open3dgc` glTF extension.

Expand Down
2 changes: 1 addition & 1 deletion Source/Scene/Batched3DModel3DTileContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ define([
var gltfView = new Uint8Array(arrayBuffer, byteOffset, gltfByteLength);

// PERFORMANCE_IDEA: patch the shader on demand, e.g., the first time show/color changes.
// The pitch shader still needs to be patched.
// The pick shader still needs to be patched.
var model = new Model({
gltf : gltfView,
cull : false, // The model is already culled by the 3D tiles
Expand Down
3 changes: 0 additions & 3 deletions Source/Scene/Cesium3DTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ define([

this._boundingVolume = createBoundingVolume(header.boundingVolume);

// TODO: if the content type has pixel size, like points or billboards, the bounding volume needs
// to dynamic size bigger like BillboardCollection and PointCollection

var contentBoundingVolume;

if (defined(contentHeader) && defined(contentHeader.boundingVolume)) {
Expand Down
2 changes: 0 additions & 2 deletions Source/Scene/Cesium3DTileStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ define([
var DEFAULT_JSON_BOOLEAN_EXPRESSION = true;

/**
* <p>
* Evaluates an expression defined using the
* {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/Styling|3D Tiles Styling language}.
* </p>
*
* @alias Cesium3DTileStyle
* @constructor
Expand Down
5 changes: 1 addition & 4 deletions Source/Scene/Cesium3DTileset.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ define([

// Tile is inside/intersects the view frustum. How many pixels is its geometric error?
var sse = getScreenSpaceError(t.geometricError, t, frameState);
// TODO: refine also based on (1) occlusion/VMSSE and/or (2) center of viewport
// PERFORMANCE_IDEA: refine also based on (1) occlusion/VMSSE and/or (2) center of viewport

var children = t.children;
var childrenLength = children.length;
Expand Down Expand Up @@ -864,7 +864,6 @@ define([
// regardless of if its SSE is sufficient.
selectTile(tileset, t, fullyVisible, frameState);

// TODO: experiment with prefetching children
if (sse > maximumScreenSpaceError) {
// Tile does not meet SSE. Refine them in front-to-back order.

Expand All @@ -877,8 +876,6 @@ define([

// Sort children by distance for (1) request ordering, and (2) early-z
children.sort(sortChildrenByDistanceToCamera);
// TODO: is pixel size better?
// TODO: consider priority queue instead of explicit sort, which would no longer be DFS.

// With additive refinement, we only request children that are visible, compared
// to replacement refinement where we need all children.
Expand Down
2 changes: 0 additions & 2 deletions Source/Scene/ConditionsExpression.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ define([
var expressionPlaceholder = /\$\{expression}/g;

/**
* <p>
* Evaluates a conditions expression defined using the
* {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/Styling|3D Tiles Styling language}.
* </p>
* <p>
* Implements the {@link StyleExpression} interface.
* </p>
Expand Down
2 changes: 0 additions & 2 deletions Source/Scene/Expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ define([
var scratchColor = new Color();

/**
* <p>
* Evaluates an expression defined using the
* {@link https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/Styling|3D Tiles Styling language}.
* </p>
* <p>
* Implements the {@link StyleExpression} interface.
* </p>
Expand Down

0 comments on commit 66f271b

Please sign in to comment.