Skip to content
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

Requirements for Tyler on the sphere #92

Open
asinghvi17 opened this issue Jul 13, 2024 · 1 comment
Open

Requirements for Tyler on the sphere #92

asinghvi17 opened this issue Jul 13, 2024 · 1 comment

Comments

@asinghvi17
Copy link
Member

  • Intersect the viewing frustum with the sphere and retrieve the area of interest
  • potentially center the camera in Google Earth style rotation so that you cant translate, then just use FOV and view_direction to compute the bbox from the spherical cap
@asinghvi17
Copy link
Member Author

The second point is done in my GlobeAxis PR to GeoMakie. The first remains to be solved. One interesting resource might be https://stackoverflow.com/questions/13541526/hierarchical-frustum-culling-of-sphere-tiles.

Maybe some plane-sphere intersections can help with this? But we would need to know how dense to make each area of the globe. It's tricky for sure.

A good enough compromise for now is simply getting the viewed lat/long back, and using the "radius" from (0,0,0) to determine how much detail we need. That would work under the assumptions that:
a. The camera always points towards (0, 0, 0)
b. The FOV is circular, i.e., a cone that forms a spherical cap when it intersects with the globe (it's not, but that's an OK approximation - not too wasteful for now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant