-
Notifications
You must be signed in to change notification settings - Fork 197
Accurate near distance for spherical projection. #2245
Conversation
4405328
to
468619d
Compare
d1c4127
to
ef367ba
Compare
f9bae6b
to
1cd6e56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review comments from first commit
): number | undefined { | ||
const fwdDir = camera.getWorldDirection(tmpVectors[0]); | ||
const nearPlaneTanPoint = tmpVectors[1].copy(fwdDir).multiplyScalar(-R); | ||
const camToTan = nearPlaneTanPoint.sub(camera.position); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename camToTan
to be at least camToTanPoint
to make it a bit clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camToTanVec
isn't quite accurate, because a vector is a relative displacement whereas a point is a fixed location. But I won't block this if you want to keep it.
1cd6e56
to
b3adf99
Compare
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
minGeometryHeight and maxGeometryHeight were undefined for fake elevation DataSource. Because of this, calculation of min/max geometry height at MapView.updateCameras() was returning NaN. Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
b3adf99
to
98d5448
Compare
Codecov Report
@@ Coverage Diff @@
## master #2245 +/- ##
==========================================
+ Coverage 67.70% 67.82% +0.12%
==========================================
Files 312 313 +1
Lines 27660 27690 +30
Branches 6188 6198 +10
==========================================
+ Hits 18726 18780 +54
+ Misses 8934 8910 -24
Continue to review full report at Codecov.
|
117daf9
to
5d10d76
Compare
@harpgl-bot retest this please |
Signed-off-by: Andres Mandado <andres.mandado-almajano@here.com>
5d10d76
to
4d84b6c
Compare
No description provided.