nytimes / aframe-loader-3dtiles-component

A-Frame component using 3D-Tiles
Other
189 stars 26 forks source link

subtractive geometry or excluding specific areas from rending 3d tiles #41

Open kfarr opened 6 months ago

kfarr commented 6 months ago

As an A-Frame developer creating a custom application leveraging google maps 3d tiles I may wish to remove geometry from certain areas of a scene in order to place other elements on top to meet my application requirements. For example in this purple area highlighted in the screenshot there are busses and cars visible as mesh with significant height that may occlude dynamic application-specific entities: image

It would be nice to specify an area using another entity, such as a primitive box geometry, that specifies an area of the 3d tiles that will be excluded from rendering similar to the concept of subtractive geometry.

An example of a similar (but inverted) feature can be found with the gaussian splat a-frame component with a "cutout entity" that does the inverse -- the scene will only display what is inside the entity specified with a css selector in the cutoutEntity property https://github.com/3dstreet/aframe-gaussian-splatting/

kfarr commented 6 months ago

https://twitter.com/relnox/status/1768445695948673271