Giter VIP home page Giter VIP logo

3d-tiles-samples's Introduction

Samples

Sample tilesets for learning how to use 3D Tiles.

See INSTRUCTIONS.md for details of how to host these examples with a local sever.

3D Tiles 1.1

Tileset Screenshot
MetadataGranularities
SparseImplicitQuadtree
SparseImplicitOctree
MultipleContents
BoundingBoxTests
TilesetWithFullMetadata

3D Tiles 1.0

Tileset Screenshot
TilesetWithDiscreteLOD
TilesetWithRequestVolume
TilesetWithTreeBillboards

Samples demonstrating the use of the EXT_mesh_features and EXT_structural_metadata glTF extensions.

Contributions

Pull requests are appreciated! Please use the same Contributor License Agreement (CLA) and Coding Guide used for CesiumJS.

3d-tiles-samples's People

Contributors

analyticalgraphics avatar bertt avatar javagl avatar lilleyse avatar mramato avatar pjcozzi avatar ptrgags avatar samulus avatar sanjeetsuhag avatar shehzan10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

3d-tiles-samples's Issues

Creating tileset.json

Is it possible to create a tileset.json for almost any file of 3D format? If yes, then please guide me.
I have tried using the Cesium ion API through which CityGML can be uploaded to Assets and can be visualized easily.

Question: Where to store `subtreeLevels` for tile that is a Child subtree?

For example, if Tile level3-5-0 also has child subtree like level0-0-0 does, then can we also call level3-5-0 an implicit root tile?
If so, then where(which url?) to store implicitTiling object for tile/subtree-node level3-5-0?

https://github.com/CesiumGS/3d-tiles-samples/tree/main/1.1/SparseImplicitQuadtree#structure
https://github.com/CesiumGS/3d-tiles-samples/blob/main/1.1/SparseImplicitQuadtree/screenshot/subtreeInfo.md#coordinates-level3-5-0

Load a .3dtiles database file locally

@rahwang

Since there are now many .3dtiles files flying around, it would be super helpful to view these in Cesium locally. To start we can add support for that here in 3d-tiles-samples in server.js and possibly move the code over to Cesium.

Check out the tools https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/tools/lib/tilesetToDatabase.js and https://github.com/AnalyticalGraphicsInc/3d-tiles-tools/blob/master/tools/lib/databaseToTileset.js for seeing how the database file is organized.

Error on home page

I cloned the repo , ran npm install and start . the home page is showing error
"Cannot GET /tilesets/"

MetadataGranularities validation failure

MetadataGranularities is failing validation: Tileset must define refine property in root tile.

I think it would make sense for the root tile to be "ADD" and the children tiles to be not specify the refinement (and thus inherit "ADD" from their parent)

Requests for additional 3D Tiles samples

This issue is intended for collecting high-level ideas about 3D Tiles samples that may be added here. Details about specific examples can be discussed in dedicated issues or the corresponding PRs.

(This issue is a replacement of CesiumGS/3d-tiles#562 , and the following list is based on this issue)

  • Simple "unit test" models for the major new features
  • Simple "unit test" models for the major types of models, e.g., photogrammetry, CAD, point clouds
  • "Integration test" models that combine prominent use cases such as per-texel metadata in photogrammetry, and MESHOPT-compressed point clouds
  • "Scalability test" model so developers can test their out of core algorithms
  • A double-headed quadtree (see CesiumGS/3d-tiles#512 (comment) )
  • Further examples of implicit tiling, maybe pointing out different combinations of available levels and subtree levels...?
  • A small sample with 3DTILES_bounding_volume_S2
  • Samples for the 'semantics' of metadata
  • More examples for the glTF Metadata extensions. For example, there could be an EXT_structural_metadata version of the current TilesetWithFullMetadata

How can show my tile hierarchically?

Hi,
I created tileset acording to google gridtile,and I want to show my b3dm files over the json files because of my tile creation scenario. I created tilejson with 15 level of grid and set b3dm file then I added another girt tile json files as childs of b3dm in children property. But when I showing them on cessium only 15 level I saw . I dont know where is my pfault. Can any one help me?
Here is my tile set
15.zip
16.zip
17.zip
18.zip
in my scenario 15 level must link 16 and then other evel must show another. I had to upload one by one due to upload limit

And also this is result I saw
image
thanks in advance

Update README

@OmarShehata can you edit the README so that the code sample takes the full .json path of the tileset? Related to CesiumGS/cesium#6678

We can also simplify the zooming code now. Change:

tileset.readyPromise.then(function(tileset) {
    viewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -0.5, 0));
    viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});

to

viewer.zoomTo(tileset);

After making these changes just confirm that everything still works properly. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.