unconed / MathBox.js

MathBox is a (work in progress) library for making presentation-quality math diagrams in WebGL.
MIT License
1.94k stars 127 forks source link

Spherical viewport issue #35

Closed glepretre closed 1 year ago

glepretre commented 10 years ago

Hello,

Maybe I have missed something, but I am not able to reach all positions I would like to using the spherical viewport :

mathbox-spherical-issue

The bottom point of the red curve is defined as follows:

longitude: π/18,
latitude: 0,
radius: 10

And I expected it to be collinear with the axis, since the latitude is zero.

NB: The yellow one has longitude and latitude coordinates reversed relative to the red. Surimposed vectors were here to check if the issue was related to the viewport or the curve primitive.

I am able to reproduce using the same viewport range as used in SphereTest.

I also tried to change the curves domain, without success.