Comments (2)
Hi Eytan,
The loader was initially designed to be independent of geo coordinates so unfortunately there isn't currently an intuitive way to do this. It is, however, in the Roadmap and would appreciate a PR on the matter. Since the backend is loaders.gl, everything should be supported. For example adding a resetGeoTransformation: true/false
option would be great. In the mean time, you could try this workaround which seems to work for me with Cesium tilesets:
// The loaders.gl matrix type
import { Matrix4 as MathGLMatrix4 } from '@math.gl/core';
// The result from await Loader3DTiles.load()
const {model, runtime} = result;
// Get a reference to the loaders.gl tileset
const tileset = runtime.getTileset();
// Set the model and camera position to the cartesian center
model.position.set(...tileset.cartesianCenter);
camera.position.set(...tileset.cartesianCenter);
camera.translateY(1000);
// If using orbit controls
controls.target.set(...tileset.cartesianCenter);
controls.update();
// Reset the loaders.gl model matrix, otherwise it is set by the loader to inverse the geo-transformation.
tileset.modelMatrix = new MathGLMatrix4();
Let me know if that worked for you!
/Avner
from three-loader-3dtiles.
Closing due to inactivity.
from three-loader-3dtiles.
Related Issues (20)
- LOADERS_GL_SRC=/Users/yuyanglei/Downloads/loaders.gl-master npm run dev HOT 3
- 3d model not rotating properly HOT 4
- multiple tileSet.json HOT 4
- Race condition for model orientaiton in the first LOD layer HOT 1
- combining 3d tiles and 3d modeling HOT 4
- hosting tilesets not through cesium HOT 2
- Why is it like this after loaded HOT 3
- The problem of plug-in loading on mapbox HOT 4
- Missplacement of 3d tiles on map HOT 1
- THREE.GLTFLoader is not defined. DRACOLoader instance is not provided
- Preload tiles
- Next.js Production Build - Error loading 3d tiles! Error: 3DTileLoader: unknown type
- your cesium example is down...
- is there a "+Y" Up parameter
- Resulting 3D Object doesn't react to lighting HOT 2
- Update peer dependency of three HOT 1
- TILE SELECTED BUT NOT LOADED!! HOT 1
- browser crash
- the trouble of raycaster HOT 2
- We tried generated 1.1 version tiles data in this viewer. but not able to load tiles data.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three-loader-3dtiles.