Add initial ArKit support

This commit is contained in:
2021-07-07 20:21:22 +02:00
parent 2e7b8d03c9
commit cb3c93c8c8
10 changed files with 624 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ namespace openVulkanoCpp::AR::Playback
ArSessionPlayback::ArSessionPlayback(const std::string& recordingPath, bool autoAdvance)
: ArSession(ArSessionMetadata(recordingPath)), recordingPath(recordingPath), autoAdvance(autoAdvance), playbackReader(recordingPath)
{
capabilities = ArSessionCapabilities(metadata.type, ArSessionType::PLAYBACK, false, metadata.depthFormat != ArDepthFormat::UNAVAILABLE, false);
capabilities = ArSessionCapabilities(metadata.type, ArSessionType::PLAYBACK, false, metadata.depthFormat != ArDepthFormat::UNAVAILABLE);
constants = { Math::Matrix4f(1), metadata.confidenceRange };
}