mapbox / mapbox/mapbox-gl-js

3rd party batch model (b3dm) in Mapbox v3?

Open
#12,861 12 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs :scroll:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hi, is there some information/minimal sample (without compression) of visualizing a b3dm in Mapbox v3?

I'm retrieving the b3dm using:

```
map.addSource('tiles', {
"type": "batched-model",
"maxzoom": 14,
"minzoom": 14,
"tiles": [
"https://myserver/{z}-{x}-{y}.b3dm"
]
}
)});
```

questions:

- What is the axis ordening in the glTF's? (z up? in meters?)

- What x, y coordinates to use in the glTF? epsg:3857? absolute or relative to the tile? Relative to what?

- How does it work when enabling terrain? Are batched models hidden by the terrain (like Cesium setting depthTestAgainstTerrain)?

Any other requirements in the glTF? Draco compression? MAPBOX_mesh_features extension? mapbox:footprint:id/mapbox:coordinate-space/mapbox:footprint-quantized/mapbox:footprint-version/mapbox:tile-version?

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

Start from the reported addSource('tiles', ...) batched-model setup and the listed glTF, terrain, coordinate-system, and extension questions. Check the repository's existing documentation or examples for b3dm support and verify the behavior with the supplied tile URL pattern. Done means documented answers and a minimal uncompressed sample.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, documentation, web-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.