mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
ios: fixed background camera not shown in landscape mode (iPhone)
This commit is contained in:
@@ -428,7 +428,7 @@ int Scene::Render(const float * uvsTransformed, glm::mat4 arViewMatrix, glm::mat
|
|||||||
|
|
||||||
if(renderBackgroundCamera)
|
if(renderBackgroundCamera)
|
||||||
{
|
{
|
||||||
if(projectionMatrix[0][0] > arProjectionMatrix[0][0]-0.2)
|
if(projectionMatrix[0][0] > arProjectionMatrix[0][0]-0.3)
|
||||||
{
|
{
|
||||||
projectionMatrix = arProjectionMatrix;
|
projectionMatrix = arProjectionMatrix;
|
||||||
viewMatrix = arViewMatrix;
|
viewMatrix = arViewMatrix;
|
||||||
|
|||||||
@@ -1424,7 +1424,7 @@ class ViewController: GLKViewController, ARSessionDelegate, RTABMapObserver, UIP
|
|||||||
func newScan()
|
func newScan()
|
||||||
{
|
{
|
||||||
print("databases.size() = \(databases.size())")
|
print("databases.size() = \(databases.size())")
|
||||||
if(databases.count >= 10 && !mReviewRequested)
|
if(databases.count >= 5 && !mReviewRequested && self.depthSupported)
|
||||||
{
|
{
|
||||||
SKStoreReviewController.requestReviewInCurrentScene()
|
SKStoreReviewController.requestReviewInCurrentScene()
|
||||||
mReviewRequested = true
|
mReviewRequested = true
|
||||||
|
|||||||
Reference in New Issue
Block a user