join us on Discord for support, updates, and all things Snap AR! See you there!
Is there any reason why CamKit Cutout would work on some instances and not others?
Works fine when tested here https://camera-kit.snapchat.com/websdk/sample/test-your-lenses
Does not work when testing on my local machine. No project modifications, same device and all other test lenses working perfectly!
Answers
-
@janine , can you share the logs you are getting when running it on your local machine or describe how it's not working (no tracking, no visuals)?
Since Cutout is a surface tracking lens, I wonder if you are not missing device orientation permissions on iOS (I think this is the right link https://developer.mozilla.org/en-US/docs/Web/API/Device_orientation_events/Detecting_device_orientation).
Please also make sure you are setting "back" camera for that lens.
0 -
Hi! The device doesn't appear to be the issue; it works fine here on this Test Your Lenses page even with the FaceTimeHD camera:
https://www.dropbox.com/scl/fi/kakzufyfmhfoxs04kbti9/Screen-Shot-2023-08-29-at-9.52.38-AM.png?rlkey=tkox29drhizvc76uvjkfk20tl&dl=0But on localhost with the same lens on the same machine the 2D cutouts don't render (i.e. the camera stream is running but there is no AR content). I did not touch the lens project, just loaded up the demo lenses in the most basic html canvas. All other lenses work as expected except this one.
Set Cookie issue?
1