Comments (2)
Looks like its common to export metadata in the gltf 'extras' field.
So you could try something like (havent tried this but you get the idea):
let gltf;
const loader = new THREE.GLTFLoader();
loader.load('model.gltf', function (loadedGltf) {
gltf = loadedGltf;
// Check if extras field exists, if not, initialize it
if (!gltf.scene.userData.extras) {
gltf.scene.userData.extras = {};
}
// Add latitude and longitude to the extras field
gltf.scene.userData.extras.latitude = 37.0902;
gltf.scene.userData.extras.longitude = -95.7129;
//still need to save/export the gltf now again
});
Curious to hear if this will work :D
See also:
- https://forum.babylonjs.com/t/how-to-access-extras-property-of-loaded-gltf/22139/5
- https://forum.playcanvas.com/t/extras-field-from-gltf-imports-possible/29572
- https://stackoverflow.com/questions/71280384/can-3d-model-saved-in-gltf-2-0-format-support-arbitrary-user-data
from 3dstreet.
Question about geo referenced splats from Reddit https://www.reddit.com/r/GaussianSplatting/comments/1acdhn2/georeferenced_splats/
from 3dstreet.
Related Issues (20)
- feature request: street art, chalk drawings
- feature request: bike friendly speed humps for residential streets
- [epic] critical creator usability - v2
- show text notifications in VR with notify component if in immersive mode
- Improve scene performance HOT 2
- regression: center shared turn lane, inconsistent scaling of dashed lines
- global animation toggle (support animation) HOT 2
- discussion ticket - hatching texture regression HOT 4
- add animated characters, remove static characters HOT 1
- can't change the parameters of the street component for a scene loaded from JSON HOT 2
- starter doc for integration with other systems HOT 1
- user modified materials are not saved HOT 3
- Add new segment type "drainage-channel"
- don't load unsupported segment type HOT 1
- specify a URL to load scene from json file (v1) HOT 1
- research ticket - convert street segment to custom UVs for gltf export HOT 2
- saving a scene with ocean results in error when re-opening HOT 2
- do a versioned release of 3dstreet core to be 0.4.6 HOT 1
- tram and bus stop are too large HOT 5
- research ticket: display google maps 3d tiles in 3DStreet HOT 5
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 3dstreet.