Issue
Im building a tile engine which wraps a SphereGeometry and im struggling with getting the 2D plane of the geometry.
I need that because further im looking to get the visible area only in order to increase network efficiency.
Any ideea is welcomed.
Thank you!
Solution
Your question needs more details to fully understand what you’re trying to achieve.
- Maybe you could look at the sphere’s UVs. They’re always mapped in 2D space in the
[0, 1]
range. - Or you could use the
Spherical
class, which could take anx, y, z
value, and it’ll returnphi, theta, radius
values. You could use thephi, theta
as latitude & longitude. See here for documentation
Answered By – Marquizzo
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0