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
How to add objects #19
Comments
I want add some objects such as buttons or view. |
got a solution- |
my hierarchy looks like this: add all your elements as subviews to PanoramaView and it should work fine here's my ViewController.m code: @implementation ViewController
-(void) buttonAction{ -(void) glkView:(GLKView *)view drawInRect:(CGRect)rect{ |
Thank you for your answer。But I want to let button follow panoramaView rotation movement. |
oh, i would build an object in openGL, putting it where this comment is: if you just want a UIKit object tracking a point (it wouldn't rotate for example), then you want to convert a unit vector to a screen point. i have a function |
Hi, |
Here is some code that returns the location on screen from a 3D point:
This method returns wether the point is before or behind the screen. |
it actually works fine with orientations, it alerted me to another issue- orientation handling is being over-complicated, fixing it now. |
No description provided.
The text was updated successfully, but these errors were encountered: