NASA-AMMOS / NASA-AMMOS/3DTilesRendererJS

CSG Tiles Implementation

Open
#1,393 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
2.5k
Forks
416
Avg merge
17h 52m
Merged PRs (30d)
37

Description

Description

as we discussed in #1365
a nice to have for this library, would be to to let users/developers define the possibility of using the boolean operator against the tiles.

in that issue you said that it would be nice a solution using a CSG solution for keeping the terrain while using i.e. a bridge model positioned on the globe.

but I think it would be useful also for tunnels or bigger infrastructures which goes under the terrain.

we could use OBBs of the models, convex decompositions, or eventually even their raw geometry to subtract geometry from the tiles.

you mentioned that you created a CSG library, I still have not tried it yet, but I'd like to try it as soon as I can.

what do you think about this?

Solution

I would create a plugin which with some arguments can do the relative operations.

we could add the CSG library as a dependency, if that something which is suitable for you.
or we can just extrapolate from the CSG library only what we really need for tiles geometry subtraction
(I don't see any other useful operator, but I could be wrong).

Alternatives

I have no alternatives in mind,
maybe the developers could create this feature on their app without modifying the library, using tile events and a custom logic.
but I'd prefer a native modular integration.

Additional context

I think that this feature could unlock a big potential for the library, also for a lot of infrastructures projects.

I am available for implementation, testing and improvements if you think we should add this feature!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing issue #1365, then inspect the tile events and geometry integration points mentioned here alongside the proposed CSG library. The scope is complete when the plugin design, supported boolean operations, geometry representation, dependency choice, and expected behavior for terrain, bridges, or tunnels are agreed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.