Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNOWN ISSUE: Terrain layer calculates wrongly the object height #241

Closed
jscastro76 opened this issue May 1, 2021 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@jscastro76
Copy link
Owner

jscastro76 commented May 1, 2021

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Add a 3D model
  2. Add a terrain layer
map.addSource('mapbox-dem', {
	'type': 'raster-dem',
	'url': 'mapbox://mapbox.mapbox-terrain-dem-v1',
	'tileSize': 512,
	'maxzoom': 14
});
			map.setTerrain({ 'source': 'mapbox-dem', 'exaggeration': 1.0 });
  1. Zoom and pitch

Screenshots
image

  • [Version 2.2.2]
@jscastro76 jscastro76 added the 🪲 bug Something isn't working label May 1, 2021
@jscastro76 jscastro76 self-assigned this May 1, 2021
@jscastro76
Copy link
Owner Author

Origina calculation before terrain here:
Transform no terrain
Changes on terrain calculations here:
Transform with terrain

@jscastro76 jscastro76 added this to the v2.2.3. milestone May 6, 2021
jscastro76 added a commit that referenced this issue May 8, 2021
Minor version by [@jscastro76](https://github.com/jscastro76), some enhancements and bugs.

#### ✨ Enhancements
- #243 Create a new example on terrain layer
  - New example on terrain layer with a 3D model aligned vertically [21-terrain.html](https://github.com/jscastro76/threebox/blob/master/examples/21-terrain.html)
- #244 Darken the raster layer with realSunlight

#### 🪲 Bug fixes
- #233 map.setLight is not updated when tb.setStyle until the map moves
- #237 `ObjectMouseOver` doesn't work after triggering `SelectedChange`
- #241 KNOWN ISSUE: Terrain layer calculates wrongly the object height
- #242 KNOWN ISSUE: Create a warning for sky layers when used with Mapbox < 2.0

#### 📝 Documentation
- Updated [documentation](/examples/readme.md)
- Updated [Threebox documentation](/docs/Threebox.md) (`terrain` attribute and property, `tb.createTerrainLayer`, `tb.updateSunGround`)
- Updated [Examples](/examples) documentation (new terrain layer in 21).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant