Converting WGS84 to UTM
Hi Githubbers! This repo looks quite amazing. Hats off to @gkjohnson for such an amazing piece of work!
I have a "simple" question - we're currently looking to be working with UTM instead of WGS84.
I work with metashape and, usually, convert a model to UTM before exporting out our .glb
Now I see that a tiled model can only be exported in WGS84 so I need to convert it, somehow.
I've been informed already that we can embed UTM into our metadata so maybe an actual conversion isn't required....
Is there anybody who can provide any insight / support or share some ideas of what we can consider?
Many thanks, in advance, for any help you can give.
Now I see that a tiled model can only be exported in WGS84 so I need to convert it, somehow.
3D Tiles operations in XYZ cartesian coordinates which many coordinate conventions, including WGS84, map to. If there are export restrictions then this would be a limitation of the tool you're using but it would be helpful if you provide more specific details about what process you're using.
convert a model to UTM before exporting out our .glb
Can you please explain your mental model here and what specifically you're trying to achieve including screenshots and/or data? (which is what the question issue template requests) Converting a glb to UTM does not make sense to me. Do you mean you're shifting the location of the origin of the GLB such that it aligns with the UTM convention coordinates on a plane?
Thanks for the input Garett.
We've been creating georeferenced GLBs for a couple of years. I'm not free to be able to take that statement any further (NDAs etc)
The glbs don't fit our requirements any more and I need a solution that delivers a higher quality texture. Your repo looks perfect.
I now need to explore our options with using a progressive loader but we need to keep the same UTM-based coordinate system that we've used til now.
It's still not clear how UTM is playing into this. If you tile a GLB, for example, the coordinate frame will not change - unless your export system is adding extra implicit transforms. The origin will be in the same location so you can adjust the origin of the tiles renderer group the same was as any other object or glb in three.js.
Our coordinate system uses UTM, as it's cartesian-based, so it works nicely in our 3D environment.
Metashape has been happily converting our models into UTM and exporting them as such. Tiling the model, in Metashape, locks the coordinate system to WGS84. I'm just trying to establish if there's anything that can be done to keep UTM or convert to UTM after export.
Without more detail or an example I'm going to have to assume that "converting a model to UTM" just means shifting the models origin to align on some plane rather than distorting other model vertices so they align with the projection distortion. I can just say that there's no reason the same transformations couldn't be applied to a tile set in either case.
I also still don't know what exporting / locking to WGS84 means. I don't use Metashape and this is why I need detailed description of the process, the results (data & example), and how this is actually impacting your work or use of the library in practice. I'm happy to help and provide guidance but please appreciate that I know absolutely nothing about your work and the gaps in your descriptions are leading me to take time to guess at everything. I just ask that you make an effort to make it as easy as possible for me to understand what's going on to help me help you.
Regardless this sounds much more like a data export issue so I recommend asking Metashape about their export process and supporting the type of data export you need.
Closing until there's a bit more information. You can upload a tile set zip by dragging and dropping into a Github comment, uploading to a repo, or adding into something like a Google Drive folder to share.