-
Notifications
You must be signed in to change notification settings - Fork 56
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
GLTF and WGS84 or ECEF #16
Comments
In digging deeper into the spec, I've discovered I was mistaken and that units in meters are required by spec. I assume the requirement is that the X,Y,Z coords are relative to ground, so not ECEF. https://github.com/KhronosGroup/glTF/blob/master/specification/README.md I'm wondering if there's an easy way around this, my probably naive thinking is as follows:
Edit: Naive thinking was wrong |
Actually, can't populate a column as the RTC would be different depending on tile size and is the center of multiple objects. So modified:
|
I've asked on https://groups.google.com/forum/#!topic/cesium-dev/t6VgLN5wtVI and was told GLTF supports ECEF coordinates, which would probably satisfy the need of low distortion for placing GLTF models. I did an import with ECEF coordinates instead of EPSG:4326, it didn't help and the tile was still missing (but the extent was calculated correctly) Is there something missing/or an assumption in the 3dwebmap client that prevents the use of ECEF coordinates? Sorry for all the questions, this is unfortunately a major roadblock issue for me |
Hi, the KML/COLLADA/glTF-Exporter has been implemented based on the assumption that the imported CityGML datasets shall use a projected or a 3D compound spatial reference system, because according to the best of our knowledge, none of the existing official CityGML data employed by the cities or mapping agencies worldwide are using the geographic coordinate reference system (e.g., EPSG: 4326). Thus, if you import a CityGML dataset with EPSG:4326 into the 3DCityDB. the KML/COLLADA/glTF-Exporter may sometimes produce unexpected results when exporting KML/COLLADA/glTF models. Besides, according to the glTF spec, the exported glTF model vertices are defined in a local space which is a 3D cartesian coordinate system. Here, we simply use the KML So, the only solution that i can see is to use a coordinate transformation tool like FME to convert your CityGML data onto another proper projected SRS (e.g. Gauss–Krüger System), and perform the workflow (3DCityDB-setup ->CityGML-import -> glTF-export ->visualization again. |
As of today, a new release of the Importer/Exporter is available. The glTF export has been updated as well, so maybe results are looking better now. |
Closing this issue now. Feel free to reopen if you got any news related to WGS84 and glTF. |
Quick question, I have 3DCityDB exports working nicely now, and I've tested imports in EPSG:3857 and EPSG:4326. I'm doing large scale imports from OSM (eg, state-wide and larger) so I'm looking to use EPSG:4326 for accuracy. EPSG:3857 works for KML+GLTF exports but of course is distorted in Cesium.
I've done KML extracts in EPSG:4326 which look okay, but are very slow to render in-browser. Unfortunately exports in the GLTF format don't show up. Is there a fundamental reason why GLTF doesn't show up? I realize it may have to do with showing the vertices in degrees, but I didn't think this was a limitation of GLTF.
The text was updated successfully, but these errors were encountered: