question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validator - Bounding Volume Spatial Coherence

See original GitHub issue

For CesiumGS/3d-tiles-tools#9 @sumitshyamsukha

Let’s do this one now:

tile.content.boundingVolume, when defined, is completely inside tile.boundingVolume (use Cesium’s functions)

There are three bounding volume types: region, box, and sphere. They are defined here: https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/schema/boundingVolume.schema.json

If a tile has a content bounding volume, check that it is inside it’s bounding volume. To visualize what a bounding volume / content bounding volume looks like, go to the 3D Tiles Sandcastle when running the 3d-tiles branch in Cesium and check out the BV On/Off and Contents BV On/Off buttons.

We’ll need support the following checks:

  • Region inside region
  • Box inside region
  • Sphere inside region
  • Sphere inside sphere
  • Region inside sphere
  • Box inside sphere
  • Box inside box
  • Region inside box
  • Sphere inside box

I’ll update with ideas for solving some of these, but to start region inside region should be pretty straightforward. Just need to check that the west/south/east/north/min/max are within the other’s values.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lilleysecommented, Nov 3, 2016

Yes add it to the existing traversal in validateTileset.

0reactions
lilleysecommented, Jul 27, 2017

@rms13

Let’s tackle the region tests now.

  • Box inside region
  • Sphere inside region
  • Region inside sphere
  • Region inside box

While region is technically a curved surface along the earth, I think we can assume for most cases that it is close enough to a box shape. This will heavily simplify these 4 checks.

To convert a region to a box, check out TileBoundingRegion in Cesium, specifically:

OrientedBoundingBox.fromRectangle(this.rectangle, this.minimumHeight, this.maximumHeight, ellipsoid);

Once converted to a box the previous written comparisons can be used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Dimensionality and Spatial Coherence
A spatial coherence calculation consists of a correlation coefficient calculation between each spectral band and a version of itself offset by one line....
Read more >
Spatial Coherence Comparisons between the Acoustic Field ...
The vertical axes are bounded from 0 to 1 and the horizontal dotted black line indicates the e−1 coherence length threshold. Figure 5b,c ......
Read more >
Spatial coherence and the persistence of high diversity in ...
We base our analysis on metacommunities under high dispersal where species densities become equal across habitats (spatially coherent).
Read more >
Limits of Perceived Audio-Visual Spatial Coherence ... - Frontiers
The boundaries of the fusion of spatially misaligned stimuli are of interest for the design of multimedia products to ensure a perceptually ...
Read more >
Step-by-step guide to reduce spatial coherence of laser light ...
This is achieved by using only one objective to collect the scattered light from the ground glass diffuser. We validate our setup in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found