

Tap on the screen then start rotating your device in the same direction (Left or Right).Īfter taking a minimum of 2 shots, you can tap on the screen or rotate your device to landscape mode to finish. Run the app in portrait mode and you will get the following screen: What you should get by doing these easy steps mentioned above.Viewing your panorama using DerManDar 3D ViewerĬreate another view controller (we'll call it "PLITViewerVC") and define a member variable of type "PanoViewer" - which inherits from "UIView" - and add it as a subview.ĪGestureRecognizer requireGestureRecognizerToFail:_panoViewer.doubleTapGR] "genEquiAt:withHeight:andWidth:andMaxWidth:": saves the panorama to disk with a given height and optionally a specific or maximum width. "finishShooting": the SDK will stop capturing and start stitching the photos. This can be used when the application goes to the background or to navigate to another section of your app.

"stopShooting": Ignores previously captured photos and stops the SDK. This may be used when the user taps on the screen or a "start" button (you have to call "restart" function before calling it). It will ignore previously captured photos and reset the SDK. "restart": to restart the shooting process from the beginning. (void)genEquiAt:(NSString*)fileName withHeight:(NSUInteger)height andWidth:(NSUInteger)width andMaxWidth:(NSUInteger)maxWidth You can use the following methods to interact with the SDK: Set the previously created view controller "PLITShootingVC" as the MonitorDelegate’s delegate which is the DMD Engine.

You can use this method to save the newly created panorama or view it using DMD 3D Viewer. "stitchingCompleted": notifies the delegate when the SDK finishes stitching. It's preferable to display a progress indicator until the SDK finishes processing the photos. "shootingCompleted": notifies the delegate when the SDK finishes taking photos (such as when the user requests to stop capturing or when the maximum number of photos are captured). You can use this method to count the number of photos or to display a message informing the user to continue rotating. "photoTaken": notifies the delegate when the SDK finishes capturing a photo. You can use this method to make an effect before a photo is taken. "takingPhoto": notifies the delegate when the SDK is about to capture a photo. (void)compassEvent:(NSDictionary*)info (void)deviceVerticalit圜hanged:(NSNumber*)isVertical (void)stitchingCompleted:(NSDictionary*)dict In the implementation of the view controller "PLITShootingVC" you have to implement the following list of callbacks: It is available on the following platforms:įollow these easy steps to build your own Panoramic App:Ĭreate a view controller (we'll call it "PLITShootingVC") that implements the "MonitorDelegate" Protocol.ĭeclare that your view controller is conforming to the “MonitorDelegate” protocol as shown PLITShootingVC : UIViewController
#Dmd panorama github free
The free Panorama SDK is an easy to use and robust library that comes with a sample code. You can easily make your own Panoramic App There is a commercial version available against a flat fee or a profit sharing model. This free version has a few limitations such as 180 degrees. We are happy to introduce the free version of our Panorama SDK as showcased in the App "DMD Panorama Lite" available on the App Store and Play Store.
