-
Quick Tip: Geolocated Lens, Compass Heading, Magnetic North
Hi all, I learned if you wait for the ARSession to be ready you can update its configuration information! This means you can set worldAlignment to .gravityAndHeading so your Lens lines up with true North instead of the arbitrary orientation of your phone which opens up the possibility to do map-based AR applications. I've…
-
CameraKit crashes if on audio call (iOS)
**Tested with Discord and FaceTime - if I have an active call going it messes with the AVCaptureSession/ARKit somehow and causes CameraKit to fail crashing the whole app If I set AVSessionInput.audioEnabled to False it at least doesn't crash anymore: avSession = AVSessionInput(session: self.captureSession)…
-
CPU & Temperature
Hi, When testing my CameraKit app on iPhone the CPU load is 70%+ and the thermal state often hits 'Serious' where the phone is hot to hold. I have other processes running that likely contribute and my Lenses uses a lot of heavy AR features Q: do you have baseline CPU and Temperature metrics for CameraKit (would be helpful…
-
UI Bug? UI adheres to wrong resolution
Not sure if I messed something up along the way but the UI is adjusting to a resolution that appears off screen. Strangely, as soon as it loads the UI appears correct but as the Lens boots on the UI adjusts to a position off screen. I also noticed the camera kit input frame size and screen size are different resolutions,…
-
AVCaptureMultiCamSession Support
Officially going to kick off a thread requesting AVCaptureMultiCamSession support on iOS! This would enable us to access the front and back cameras as the same time leading to interesting new Lens use cases. For example, in my app GG, multicam would enable me to show both the AR gameplay and the player at the same time.…
-
Loading local .lns?
Hi! Is it possible to load an .lns into Camera Kit without Lens Cloud and if so how can it be done? I see there is an lns in the sample project but no references of how it might actually be used. Thanks!
-
Quick Tip: If you are looking for launchParams, look here!
Hi y'all, A big thing I was looking for is launchParams and yes it's supported by CameraKit and yes it's quite easy to implement. If you aren't familiar with launchParams it lets you pass data into your Lens meaning you can change a model's color or do some action depending on the entry point. Read more about it here:…
-
Lens Loading & Performance?
Hi! I notice while a Lens loads the camera hangs for 1-2 seconds which is a less than desirable experience. It's the same in Snapchat though so I'm wondering if we can chart a solution for our CameraKit usecases. Would be great to know what actually causes this hang - ARKit services kicking on? Purely inefficient…
-
Quick tip: Communicate with your remote API!
Camera Kit comes with the ability to communicate with a private hosted API. This is hugely beneficial if you want to access data or files from your own servers. Here's a quick tip on how to get it working! 1) Set up your API by following the tutorial here. Note: you will NOT be able to edit your API after you submit it so…
-
Quick Tip: Controlling the Camera Kit Sample UI
Hi y'all, I ended up spending too long trying to create a custom CameraView from the sample and found a much simpler solution to toggle and control the UI that's already there: extension CameraView { func hideUI() { for view in [ flashControlView, flashControlDismissalHint, toneMapControlView,…
-
Quick Tip: CameraKit Output -> UIImage
Hi y'all, A useful function for CameraKit might be to grab the AR View and convert it into an Image imagining you might want to do something like create an image gallery, generate a GIF, or do an image operation of some kind. Following the same protocol structure as PhotoCapture and Record, here's how to get an Image out…