GithubHelp home page GithubHelp logo

3D-Tiles 1.1 voxel about 3d-tiles HOT 3 OPEN

cjhdsg avatar cjhdsg commented on July 23, 2024
3D-Tiles 1.1 voxel

from 3d-tiles.

Comments (3)

j9liu avatar j9liu commented on July 23, 2024

Hey @cjhdsg,

If you pair the voxel data with a tileset metadata schema, you can specify a noData value to compare the empty voxels to. This example is taken from the extension README.

"schema": {
  "classes": {
    "voxel": {
      "properties": {
        "temperature": {
          "type": "SCALAR",
          "componentType": "FLOAT32",
          "noData": 999.9
        },
        "salinity": {
          "type": "SCALAR",
          "componentType": "UINT8",
          "normalized": true,
          "noData": 255
        }
      }
    }
  }
}

Then it would be a matter of comparing the values to this noData value. Hope this helps!

from 3d-tiles.

cjhdsg avatar cjhdsg commented on July 23, 2024

Yes, I've added "noData" field, and wrote corresponding value in binary chunk. But it seemed not working. Here is my test dataset.

test-dataset.zip

from 3d-tiles.

javagl avatar javagl commented on July 23, 2024

Some aspects of that test data set are nor entirely clear, and I'd have to look at some aspects of the voxel extension specification and other test data here.

But the given tileset contains

    "implicitTiling" : {
      "subdivisionScheme" : "OCTREE",
      "subtreeLevels" : 1,
      "availableLevels" : 1,
      "subtrees" : {
        "uri" : "subtrees/{level}.{x}.{y}.{z}.subtree"
      }
    }

Defining availableLevels: 1 does not seem to make sense for the given data set. Can you provide an example data that works and is valid, and that shows the problem that you are encountering? (Once we have this data, we can have a closer look at how to sensibly hide/omit certain cells - but we should start with a data set that works...)

(We will then still have to carefully check whether any unexpected behavior that you are observing is related to CesiumGS/cesium#12001 , which you brought up in https://community.cesium.com/t/3d-tiles-1-1-voxel/32239 ...)

from 3d-tiles.

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.