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

Converting Phi, Theta to X,Y #52

Open
markoakden opened this issue Jul 16, 2021 · 0 comments
Open

Converting Phi, Theta to X,Y #52

markoakden opened this issue Jul 16, 2021 · 0 comments

Comments

@markoakden
Copy link

More of a question than an issue. Does anyone know of way to convert the two angles phi & theta to x,y coordinates on the current screen? I am overlaying icons on top of the 360 pano and when the user moves the pano, I need to move the icons (clipping them to the view). I have this working well, but have had to estimate the x,y, position, based on approximation. My maths is not good enough to project the inside of a sphere onto a flat surface! I need a routine something like: pt2xy (p,t), where the routine projects the current p,t and returns x,y. There must be a routine like this buried in Kaleidoscope somewhere?

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