Giter VIP home page Giter VIP logo

Comments (2)

ErixenCruz avatar ErixenCruz commented on May 31, 2024

The plan is to first create an implicit tileset writer that parses the CDB directory structure to get the contents and metadata template URIs needed to write the root tileset JSON. which looks something like this:

---
"root": {
    "refine": "ADD",
    "geometricError": 16384.0,
    "boundingVolume": {
      "region": [-1.707, 0.543, -1.706, 0.544, 203.895, 253.113]
    },
    "extensions": {
      "3DTILES_implicit_tiling": {
        "extensions": {
          "3DTILES_tile_contents": {
            "content": [
              {
                "uri": "buildings/{level}/{x}/{y}.b3dm",
                "extensions": {
                  "3DTILES_metadata": {
                    "layer": "buildings"
                  }
                }
              },
              {
                "uri": "trees/{level}/{x}/{y}.i3dm",
                "extensions": {
                  "3DTILES_metadata": {
                    "layer": "trees"
                  }
                }
              }
            ]    
          }
        },
        "maximumLevel": 16,
        "subdivisionScheme": "QUADTREE",
        "subtreeLevels": 10,
        "subtrees": {
          "uri": "subtrees/{level}/{x}/{y}.subtree"
        }
      }
    }
  }

This new tileset writer will likely be in TileFormatIO.cpp, since that is where the explicit writer is.

Then, we can start creating the availability buffers for the subtrees. This has already been done in the UTIC terrain tiler here. I'm not sure how much of that applies to use with CDB, but it is a starting point. I will read it more thoroughly when it comes time to implement availability. We will follow the combined subtree JSON and availability buffers binary file described here.

from cdb-to-3dtiles.

lilleyse avatar lilleyse commented on May 31, 2024

One thing to be careful about for implicit tiling is the CDB tiling scheme. The world is split into GeoCells, and within each GeoCell levels [-10, -1] add progressively more detail but only levels [0, N] subdivide as a quadtree. Therefore level 0 CDB tiles would have the implicit extension on them but everything else before that would be part of the explicit tileset.

from cdb-to-3dtiles.

Related Issues (20)

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.