iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.1k stars 298 forks source link

[BUG - GlobeView] Mismatch between 3D georeferenced object and GlobeView #2238

Closed ketourneau closed 10 months ago

ketourneau commented 10 months ago

We modify misc_collada sample to place 3D georeferenced object with GlobeView and we see a mismatch with ortho (it's working with PlanarView).

Your Environment

Context

globeView

Steps to Reproduce (for bugs)

GlobeView live example

  1. Replace example/misc_collada.html

Expected Behavior

Object 3D match ortho. Like with a PlanarView :

planarView

Actual Behavior

Object 3D doesn't match ortho.

Possible Cause/Fix/Solution

We're not sure if it's a bug. Our 3D georeferenced object was build in cartesian system (CC47) and we suppose GlobeView is in ellipsoidal system. So maybe mismatch is normal and we need to use only PlanarView with this object ?

mgermerie commented 10 months ago

Hi !

If your data is in a cartesian system, it will indeed appear displaced when viewed in an ellipsoidal system.

As I discussed this subject recently, I'm thinking this must be mainly linked to the meridian convergence of the cartesian projection. There are other effects which induce a displacement of a projected model viewed in an ellipsoidal system, such as the linear alteration of the projection. However, this should not be noticeable on a relatively small model such as the one in your example.

Therefore, I think you need to unproject your model for it to be well placed on a GlobeView.

ketourneau commented 10 months ago

Hi, Thank for the answer ! This confirm our hypothesis, so we'll use PlanarView in our case.