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

Panorama 2d #22

Closed
rzehan opened this issue Feb 19, 2015 · 2 comments · Fixed by #60
Closed

Panorama 2d #22

rzehan opened this issue Feb 19, 2015 · 2 comments · Fixed by #60

Comments

@rzehan
Copy link

rzehan commented Feb 19, 2015

Hi Robby,

First of all thanks for this great resource, is making my life easier :)
One question I have: how can I adapt the view to show panoramic images only on 2 axes (e.g. without Y motion) ?

Thanks,
Rares

@mayakraft
Copy link
Owner

Good suggestion, Rares!
I can imagine something like:
[panoramaView setYMotionEnabled:NO];

for the moment, going inside the -(void)draw function in PanoramaView.m, line 166 for me, I was able to do this by inserting a call to orientToAzimuth: Altitude:

_attitudeMatrix = GLKMatrix4Multiply([self getDeviceOrientationMatrix], _offsetMatrix);
[self updateLook];

[self orientToAzimuth:-_lookAzimuth Altitude:0];
glMultMatrixf(_attitudeMatrix.m); 

@rzehan
Copy link
Author

rzehan commented Feb 19, 2015

Awesome! It worked like you said.

Thanks

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

Successfully merging a pull request may close this issue.

2 participants