Git Product home page Git Product logo

panorama's People

Contributors

cleexiang avatar fboulegue avatar marcelosalloum avatar mayakraft avatar mrchristopher124 avatar nickplee avatar zhigang1992 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

panorama's Issues

True North Reference

Hi Robby,

Do you have any idea on how the panorama can be truly referenced to the north ?

I've tried with [motionManager startDeviceMotionUpdatesUsingReferenceFrame:CMAttitudeReferenceFrameXTrueNorthZVertical] as well as CLLocationManager authorization and update. But each time the app is launch, and if you change the device azimuth, the panorama seem to have a different orientation.

In other words, let's say the sun in the image is exactly located on the east (meaning the sun is at the center of the screen when you look east with the device). Depending on how the device is oriented when the app is launched, the sun won't appear exactly at east. I thought CMDeviceMotion would take care of everything but I suspect an additional correction must be taken care of.

Unity port :-)

Did you plan to port this (wonderful) project to Unity? (on the asset store for example)

Thx.

Pan and device orientation, not right when device turn 90º

Hi there,
inside the method panHandler: there are two times when you use your method vectorFromScreenLocation:inAttitude: and you use the _offsetMatrix as the attitude parameter. This causes that when the device is turned 90º (like change from landscape to portrait or vice-versa) the pan gesture is inverted from vertical and horizontal motion (i.e. move the finger to the right and the image moves up). I was wondering if there's a reason why you use this matrix instead of the _attitudeMatrix as the attitude parameter. I have made this change and works fine but wanted to ask if there's a reason for that so my change could have some side effects.
PS Thank you very much for your work, this have saved me a lot of work
PPS I have solved the head tilt on my fork, still a little buggy on nadir and zenith but no tilted horizon. Will make pull request when I can stabilise nadir and zenith.

Panorama 2d

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

Swift integration problem

screen shot 2016-08-19 at 1 16 43 pm

Your library looks good.

But when I try to integrate it into my project, it fails that it requires me to import GLKit.

After I add it manually into the library, it works

Is there any way to solve it becoz whenever I update cocoapods, i have to edit this part.

Thank you so much!!~

hotspot feature

Thanks for your great code. It would be great if it has hotspot feature 👍

Swift Version

Hi Robby,

Thanks for this great resource!!
Do you think to develop a Swift 2+ version?

I don't understand the documentation about How can make for a viewable and tappable area. Can you explain it ?

Help to wrap in a Ti module

Hey, I need your help! 😞

I'm trying to wrap this module in a Titanium module: https://github.com/caffeinalab/ti.panorama
The problem is that the app.. simply crash without reason.

Can you check it if all behaviours (delegates, contexts, etc...) are correct?

I'm just adding a subview (PanoramaView) in a View, implementing the delegate methods to draw.
But when I call [pv draw] it crashes.

How to run it?

I download this project and build success but nothing display on the screen.What's the problem?Please help me.

PanGesture only change azimuth without change Y motion

Hi Robby,

First of all, thanks for great source.

I use both of setOrientToDevice and setTouchToPan with 3D panorama image.
setOrientToDevice work great, change azimuth and Y motion.
However, about TouchPanGesture, i want to change only azimuth without change Y motion.

Can you help me how to get that?

Thanks

How to free memory

Hi! @robbykraft
Thanks for the great source.
But how to free memory?I use arc.

Unable to read position values

Hello! Thank you for the wonderful work that you've done here.

For some reason, I'm unable to read any of the position values in your demo. For example, Azimuth and Altitude are always showing me 0, as are all the other vector and matrix values in there.

I assume I am doing something wrong. I have not actually modified the demo - I have only attempted to read the values.

Can you please elaborate for a moment on the proper method of doing this? Thank you.

Limiters for the Y coordinate

Hi Robby,

Thanks for this great resource, is making my life easier :)
I have one question:how to make limiters for coordinate Y, so I could not look above or below a certain azimuth?

Thanks,
Grigory

image browsing

Thanks for this great code
Please provide feature to browse images using touch like sphere and bubbli

Can't run Panorama for these images

Hi,

I'm trying to integrate the component with these images but nothing appears

Please, can you tell me if these images
aletsch
nissan_gtr
pano_1_xmpa
pano_20150919_134742

are not supported?

Spherical panorama corrugated

i have try many libs for panorama,inluded yours Spherical panorama wiil let image appear corrugated 。
Spherical picture

The effect picture
Uploading A5E5A313-D054-4DDD-96B4-DE7FD380CA8D.png…

but Others'cubic (six cube Map)panorama will not have this situation。the six cube Map From the Spherical picture transform

Uploading C5E1B028-2461-46C0-A75A-4F7EF36703A6.png…

VR mode on iphone7+

I integrated the viewer to my app using a GLKViewcontroller. While I switch to VR mode in iphone7+, two eyes is not in the same size? Is the any code I need to adjust?

GLKTextureLoader: EXC_BAD_ACCESS

Hello @robbykraft Thank you for this great project!
I have builded application for swift and all works well. App works when I load image from project:

panoramaView.setImageWithName("2048.jpg")

But, when I try to show image from photo library, I got error EXC_BAD_ACCESS. Error happens in method:

-(GLKTextureInfo *) loadTextureFromImage:(UIImage *) image

Line:

info = [GLKTextureLoader textureWithCGImage:image.CGImage options:options error:&error];

I'm picking image from photo library with UIImagePickerController. Image loads and shows fine.
Will be glad for any help!

get pixel coordinates

double check that pixel coordinates are reporting properly, it might not have been adjusted after the sphere texture got flipped

How to add an object in the scenario

Hi,
I saw at issue 19, a way of add a button in the screen, outside the VR scenario.

But, Its possible to add an object at a relative position inside the VR image?
Set an image to represent an Object at a relative position (altitude and azimute) , to be render with the background image?

Screen goes blank when I set view to panoramaView

Hey ya'll!

I'm trying to use this library for a feature of an app I'm currently working on - but I'm running into an issue. Whenever I actually load up Panorama and set it to my viewController's view, the screen goes completely blank (white).

I am calling this setup method in viewDidLoad:

  • (void)setup {
    self.panoramaView = [[PanoramaView alloc] init];

    [self.panoramaView setImage:@"360_background.png"];
    [self.panoramaView setOrientToDevice:YES];
    [self.panoramaView setTouchToPan:NO];
    [self.panoramaView setPinchToZoom:YES];
    [self.panoramaView setShowTouches:NO];

    [self setView:self.panoramaView];
    }

I have the image in my images.xcassets folder in xcode, and the name matches. (not getting 'missing image' nslog thrown). The image size is 4096 x 2048.

I also have this method in my implementation:

  • (void)glkView:(GLKView *)view drawInRect:(CGRect)rect {
    [self.panoramaView draw];
    }

And I am indeed subclassing GLKViewController. Anyone run into similar issues? I'm using cocoapods, but I doubt that is an issue.

gimbal lock on manual pan

manual panning encounters gimbal lock when looking directly up or down due to using GLKit's gl look at

Possible port from image to video?

Hey there,

I'm not an expert in that kind of stuff, but I wonder if it is possible to port this shiny tool to support video input instead of images?!

I couldn't find any open-source iOS Framework which supports viewing equirectangular videos.

document

I do not understand your code, Can you provide some documentation to help me understand? Thank you

image flip

texture mapping flips the image horizontally

Unrecognised selector - line 90

Line 90 crashes; responder does respond to setPreferredFramesPerSecond, but the method is being called on self.window.rootViewController, which may not be the responder:

if([responder respondsToSelector:@selector(setPreferredFramesPerSecond:)])
[(GLKViewController*)[self.window rootViewController] setPreferredFramesPerSecond:FPS];

Tilting Sphere and Changing Spin Axis

Is it possible to change the spin axis of the sphere and tilt the sphere to that spin axis? Example would be tilting north and south pole 5 deg forward and then spinning on the new north and south pole.

Any plan to support video

This is a great product. Do you have any plan to extend it to support video, such as integrating with VLC IOS version?

Prevent head tilt and scene jitter

Hello,
thanks for your great codes.

I uncomment the following codes to prevent head tilt:
GLKQuaternion q = GLKQuaternionFromTwoVectors(touchVector, nowVector);
//_offsetMatrix = GLKMatrix4Multiply(_offsetMatrix, GLKMatrix4MakeWithQuaternion(q));
// in progress for preventHeadTilt
GLKMatrix4 mat = GLKMatrix4Multiply(_offsetMatrix, GLKMatrix4MakeWithQuaternion(q));
_offsetMatrix = GLKMatrix4MakeLookAt(0, 0, 0, -mat.m02, -mat.m12, -mat.m22, 0, 1, 0);

when I pan around the scene directly up or down(i.e. abs(mat.m02) is close to 1), the scene will shake. I try to solve this problem by changing the codes as following:
if (fabs(mat.m02) < 0.8) {
_offsetMatrix = GLKMatrix4MakeLookAt(0, 0, 0, -mat.m02, -mat.m12, -mat.m22, 0, 1, 0);
}

but I think this solution is ugly, and I want to know how to avoid scene jitter more effectively?

Thanks a lot

Transparency in Panorama Texture

Any ideas on how to make the texture render 0.5 alpha opaque.

Trying
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);

with no luck.

Device Orientation

when lock to landscape orientation, for motion (gyro) enable, the panorama image will not show correct orientation with the device, but for touch input it is fine.

touch pan orientation

if deviceOrient is disabled, user should be able to pan around the scene with touches

Available image size is only 2048x1024?

It does not work when I use my panorama image which is width=3584 and heigh=1792. It worked after changing size of the image to 2048x1024. Are there any limitations of size of image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.