From d5d1af379a293a67113c5d4963f7779495110387 Mon Sep 17 00:00:00 2001 From: seungho Date: Wed, 14 Sep 2022 11:02:46 +0900 Subject: [PATCH] [Tizen] SceneView cullmode false + Orthographic size Change-Id: I9ce30cbe1fe0a7a1d747313d606a6b306df63995 Signed-off-by: seungho --- dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp b/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp index ce4ae17..8a4ffca 100644 --- a/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp +++ b/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp @@ -268,6 +268,7 @@ void SceneView::OnInitialize() mRenderTask.SetSourceActor(mRootLayer); mRenderTask.SetExclusive(true); mRenderTask.SetInputEnabled(true); + mRenderTask.SetCullMode(false); mRenderTask.SetScreenToFrameBufferMappingActor(Self()); mDefaultCamera = Dali::CameraActor::New(); @@ -351,9 +352,7 @@ void SceneView::UpdateRenderTask() Vector3 size = Self().GetProperty(Dali::Actor::Property::SIZE); const float aspectRatio = size.width / size.height; mSelectedCamera.SetAspectRatio(aspectRatio); - const float fov = mSelectedCamera[Dali::CameraActor::Property::FIELD_OF_VIEW]; - const float near = mSelectedCamera[Dali::CameraActor::Property::NEAR_PLANE_DISTANCE]; - const float halfHeight = tanf(fov/2) * near; + const float halfHeight = mSelectedCamera[Dali::CameraActor::Property::TOP_PLANE_DISTANCE]; const float halfWidth = aspectRatio * halfHeight; mSelectedCamera[Dali::CameraActor::Property::LEFT_PLANE_DISTANCE] = -halfWidth; mSelectedCamera[Dali::CameraActor::Property::RIGHT_PLANE_DISTANCE] = halfWidth; -- 2.7.4