2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/internal/event/actors/camera-actor-impl.h>
23 #include <cstring> // for strcmp
26 #include <dali/public-api/common/stage.h>
27 #include <dali/public-api/object/type-registry.h>
28 #include <dali/devel-api/actors/camera-actor-devel.h>
29 #include <dali/integration-api/debug.h>
30 #include <dali/internal/event/common/property-helper.h>
31 #include <dali/internal/event/common/stage-impl.h>
32 #include <dali/internal/event/common/scene-impl.h>
33 #include <dali/internal/event/render-tasks/render-task-impl.h>
34 #include <dali/internal/event/render-tasks/render-task-list-impl.h>
35 #include <dali/internal/event/common/projection.h>
36 #include <dali/internal/event/common/thread-local-storage.h>
37 #include <dali/internal/update/render-tasks/scene-graph-camera.h>
51 * We want to discourage the use of property strings (minimize string comparisons),
52 * particularly for the default properties.
53 * Name Type writable animatable constraint-input enum for index-checking
55 DALI_PROPERTY_TABLE_BEGIN
56 DALI_PROPERTY( "type", STRING, true, false, true, Dali::CameraActor::Property::TYPE )
57 DALI_PROPERTY( "projectionMode", STRING, true, false, true, Dali::CameraActor::Property::PROJECTION_MODE )
58 DALI_PROPERTY( "fieldOfView", FLOAT, true, false, true, Dali::CameraActor::Property::FIELD_OF_VIEW )
59 DALI_PROPERTY( "aspectRatio", FLOAT, true, false, true, Dali::CameraActor::Property::ASPECT_RATIO )
60 DALI_PROPERTY( "nearPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::NEAR_PLANE_DISTANCE )
61 DALI_PROPERTY( "farPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::FAR_PLANE_DISTANCE )
62 DALI_PROPERTY( "leftPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::LEFT_PLANE_DISTANCE )
63 DALI_PROPERTY( "rightPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::RIGHT_PLANE_DISTANCE )
64 DALI_PROPERTY( "topPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::TOP_PLANE_DISTANCE )
65 DALI_PROPERTY( "bottomPlaneDistance", FLOAT, true, false, true, Dali::CameraActor::Property::BOTTOM_PLANE_DISTANCE )
66 DALI_PROPERTY( "targetPosition", VECTOR3, true, false, true, Dali::CameraActor::Property::TARGET_POSITION )
67 DALI_PROPERTY( "projectionMatrix", MATRIX, false, false, true, Dali::CameraActor::Property::PROJECTION_MATRIX )
68 DALI_PROPERTY( "viewMatrix", MATRIX, false, false, true, Dali::CameraActor::Property::VIEW_MATRIX )
69 DALI_PROPERTY( "invertYAxis", BOOLEAN, true, false, true, Dali::CameraActor::Property::INVERT_Y_AXIS )
70 DALI_PROPERTY_TABLE_END( DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, CameraDefaultProperties )
72 // calculate the far plane distance for a 16bit depth buffer with 4 bits per unit precision
73 void CalculateClippingAndZ( float width, float height, float& nearClippingPlane, float& farClippingPlane, float& cameraZ )
75 nearClippingPlane = std::max( width, height );
76 farClippingPlane = nearClippingPlane + static_cast<float>( 0xFFFF >> 4 );
77 cameraZ = 2.0f * nearClippingPlane;
82 return Dali::CameraActor::New();
85 TypeRegistration mType( typeid( Dali::CameraActor ), typeid( Dali::Actor ), Create, CameraDefaultProperties );
88 * Builds the picking ray in the world reference system from an orthographic camera
89 * The ray origin is the screen coordinate in the near plane translated to a parallel
90 * plane at the camera origin. The ray direction is the direction the camera is facing
91 * (i.e. Z=-1 in view space).
93 void BuildOrthoPickingRay( const Matrix& viewMatrix,
94 const Matrix& projectionMatrix,
95 const Viewport& viewport,
100 float nearPlaneDistance )
102 // inv( modelMatrix ) inv( viewMatrix ) inv( projectionMatrix ) normalize
103 // <----------------- <----------------- <-------------- <-------------
104 // Local World Camera Normalized Screen
105 // reference reference reference clip coordinates
106 // system system system coordinates
107 // -----------------> -----------------> --------------> ------------->
108 // modelMatrix viewMatrix projectionMatrix viewport
110 // Transforms the touch point from the screen reference system to the world reference system.
111 Matrix invViewProjection( false ); // Don't initialize.
112 Matrix::Multiply( invViewProjection, viewMatrix, projectionMatrix );
113 if( !invViewProjection.Invert() )
115 DALI_ASSERT_DEBUG( false );
118 Vector4 near( screenX - static_cast<float>( viewport.x ),
119 static_cast<float>( viewport.height ) - (screenY - static_cast<float>( viewport.y ) ),
121 if( !Unproject( near, invViewProjection, static_cast<float>( viewport.width ), static_cast<float>( viewport.height ), rayOrigin ) )
123 DALI_ASSERT_DEBUG( false );
126 Matrix invView = viewMatrix;
127 if( !invView.Invert() )
129 DALI_ASSERT_DEBUG( false );
132 Vector4 cameraOrigin = invView * Vector4( 0.f, 0.f, 0.f, 1.f );
133 Vector4 nearPlaneOrigin = invView * Vector4( 0.0f, 0.0f, -nearPlaneDistance, 1.0f);
135 // Vector pointing from the camera to the near plane
136 rayDir = cameraOrigin - nearPlaneOrigin;
144 CameraActorPtr CameraActor::New( const Size& size )
146 CameraActorPtr actor( new CameraActor( *CreateNode() ) );
148 // Second-phase construction
151 actor->SetName( "DefaultCamera" );
152 actor->SetPerspectiveProjection( size );
154 // By default Actors face in the positive Z direction in world space
155 // CameraActors should face in the negative Z direction, towards the other actors
156 actor->SetOrientation( Quaternion( Dali::ANGLE_180, Vector3::YAXIS ) );
161 CameraActor::CameraActor( const SceneGraph::Node& node )
162 : Actor( Actor::BASIC, node ),
163 mSceneObject( NULL ),
164 mTarget( SceneGraph::Camera::DEFAULT_TARGET_POSITION ),
165 mType( SceneGraph::Camera::DEFAULT_TYPE ),
166 mProjectionMode( SceneGraph::Camera::DEFAULT_MODE ),
167 mFieldOfView( SceneGraph::Camera::DEFAULT_FIELD_OF_VIEW ),
168 mAspectRatio( SceneGraph::Camera::DEFAULT_ASPECT_RATIO ),
169 mNearClippingPlane( SceneGraph::Camera::DEFAULT_NEAR_CLIPPING_PLANE ),
170 mFarClippingPlane( SceneGraph::Camera::DEFAULT_FAR_CLIPPING_PLANE ),
171 mLeftClippingPlane( SceneGraph::Camera::DEFAULT_LEFT_CLIPPING_PLANE ),
172 mRightClippingPlane( SceneGraph::Camera::DEFAULT_RIGHT_CLIPPING_PLANE ),
173 mTopClippingPlane( SceneGraph::Camera::DEFAULT_TOP_CLIPPING_PLANE ),
174 mBottomClippingPlane( SceneGraph::Camera::DEFAULT_BOTTOM_CLIPPING_PLANE ),
175 mInvertYAxis( SceneGraph::Camera::DEFAULT_INVERT_Y_AXIS )
179 CameraActor::~CameraActor()
181 if( EventThreadServices::IsCoreRunning() )
183 // Create scene-object and transfer ownership through message
184 RemoveCameraMessage( GetEventThreadServices().GetUpdateManager(), mSceneObject );
188 void CameraActor::OnInitialize()
190 // Create scene-object and keep raw pointer for message passing.
191 SceneGraph::Camera* sceneGraphCamera = SceneGraph::Camera::New();
193 // Store a pointer to this camera node inside the scene-graph camera.
194 sceneGraphCamera->SetNode( &GetNode() );
196 mSceneObject = sceneGraphCamera;
197 OwnerPointer< SceneGraph::Camera > sceneGraphCameraOwner( sceneGraphCamera );
199 // Send message to inform update of this camera (and move ownership).
200 AddCameraMessage( GetEventThreadServices().GetUpdateManager(), sceneGraphCameraOwner );
203 void CameraActor::OnStageConnectionInternal()
205 // If the canvas size has not been set, then use the size of the scene we've been added to to set up the perspective projection
206 if( ( mCanvasSize.width < Math::MACHINE_EPSILON_1000 ) || ( mCanvasSize.height < Math::MACHINE_EPSILON_1000 ) )
208 SetPerspectiveProjection( GetScene().GetSize() );
212 void CameraActor::SetReflectByPlane(const Vector4& plane) {
213 SceneGraph::Camera* cam = const_cast<SceneGraph::Camera*>(GetCamera());
216 cam->SetReflectByPlane(plane);
220 void CameraActor::SetTarget( const Vector3& target )
222 if( target != mTarget ) // using range epsilon
226 SetTargetPositionMessage( GetEventThreadServices(), *mSceneObject, mTarget );
230 Vector3 CameraActor::GetTarget() const
235 void CameraActor::SetType( Dali::Camera::Type type )
241 // sceneObject is being used in a separate thread; queue a message to set
242 SetTypeMessage( GetEventThreadServices(), *mSceneObject, mType );
246 Dali::Camera::Type CameraActor::GetType() const
251 void CameraActor::SetProjectionMode( Dali::Camera::ProjectionMode mode )
253 if( mode != mProjectionMode )
255 mProjectionMode = mode;
257 // sceneObject is being used in a separate thread; queue a message to set
258 SetProjectionModeMessage( GetEventThreadServices(), *mSceneObject, mProjectionMode );
262 Dali::Camera::ProjectionMode CameraActor::GetProjectionMode() const
264 return mProjectionMode;
267 void CameraActor::SetFieldOfView( float fieldOfView )
269 if( ! Equals( fieldOfView, mFieldOfView ) )
271 mFieldOfView = fieldOfView;
273 // sceneObject is being used in a separate thread; queue a message to set
274 SetFieldOfViewMessage( GetEventThreadServices(), *mSceneObject, mFieldOfView );
278 float CameraActor::GetFieldOfView() const
283 void CameraActor::SetAspectRatio( float aspectRatio )
285 if( ! Equals( aspectRatio, mAspectRatio ) )
287 mAspectRatio = aspectRatio;
289 // sceneObject is being used in a separate thread; queue a message to set
290 SetAspectRatioMessage( GetEventThreadServices(), *mSceneObject, mAspectRatio );
294 float CameraActor::GetAspectRatio() const
299 void CameraActor::SetNearClippingPlane( float nearClippingPlane )
301 if( ! Equals( nearClippingPlane, mNearClippingPlane ) )
303 mNearClippingPlane = nearClippingPlane;
305 // sceneObject is being used in a separate thread; queue a message to set
306 SetNearClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mNearClippingPlane );
310 float CameraActor::GetNearClippingPlane() const
312 return mNearClippingPlane;
315 void CameraActor::SetFarClippingPlane( float farClippingPlane )
317 if( ! Equals( farClippingPlane, mFarClippingPlane ) )
319 mFarClippingPlane = farClippingPlane;
321 // sceneObject is being used in a separate thread; queue a message to set
322 SetFarClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mFarClippingPlane );
326 float CameraActor::GetFarClippingPlane() const
328 return mFarClippingPlane;
331 void CameraActor::SetLeftClippingPlane( float leftClippingPlane )
333 if( ! Equals( leftClippingPlane, mLeftClippingPlane ) )
335 mLeftClippingPlane = leftClippingPlane;
337 // sceneObject is being used in a separate thread; queue a message to set
338 SetLeftClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mLeftClippingPlane );
342 void CameraActor::SetRightClippingPlane( float rightClippingPlane )
344 if( ! Equals( rightClippingPlane, mRightClippingPlane ) )
346 mRightClippingPlane = rightClippingPlane;
348 // sceneObject is being used in a separate thread; queue a message to set
349 SetRightClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mRightClippingPlane );
353 void CameraActor::SetTopClippingPlane( float topClippingPlane )
355 if( ! Equals( topClippingPlane, mTopClippingPlane ) )
357 mTopClippingPlane = topClippingPlane;
359 // sceneObject is being used in a separate thread; queue a message to set
360 SetTopClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mTopClippingPlane );
364 void CameraActor::SetBottomClippingPlane( float bottomClippingPlane )
366 if( ! Equals( bottomClippingPlane, mBottomClippingPlane ) )
368 mBottomClippingPlane = bottomClippingPlane;
370 // sceneObject is being used in a separate thread; queue a message to set
371 SetBottomClippingPlaneMessage( GetEventThreadServices(), *mSceneObject, mBottomClippingPlane );
375 void CameraActor::SetInvertYAxis(bool invertYAxis)
377 if( invertYAxis != mInvertYAxis )
379 mInvertYAxis = invertYAxis;
381 // sceneObject is being used in a separate thread; queue a message to set
382 SetInvertYAxisMessage( GetEventThreadServices(), *mSceneObject, mInvertYAxis );
386 bool CameraActor::GetInvertYAxis() const
391 void CameraActor::SetPerspectiveProjection( const Size& size )
395 if( ( size.width < Math::MACHINE_EPSILON_1000 ) || ( size.height < Math::MACHINE_EPSILON_1000 ) )
397 // If the size given is invalid, i.e. ZERO, then check if we've been added to a scene
400 // We've been added to a scene already, set the canvas size to the scene's size
401 mCanvasSize = GetScene().GetSize();
405 // We've not been added to a scene yet, so just return.
406 // We'll set the canvas size when we get added to a scene later
411 float width = mCanvasSize.width;
412 float height = mCanvasSize.height;
414 float nearClippingPlane;
415 float farClippingPlane;
417 CalculateClippingAndZ( width, height, nearClippingPlane, farClippingPlane, cameraZ );
419 // calculate the position of the camera to have the desired aspect ratio
420 const float fieldOfView = 2.0f * std::atan( height * 0.5f / cameraZ );
422 // unless it is too small, we want at least as much space to the back as we have torwards the front
423 const float minClippingFarPlane = 2.f * nearClippingPlane;
424 if ( farClippingPlane < minClippingFarPlane )
426 farClippingPlane = minClippingFarPlane;
429 const float aspectRatio = width / height;
431 // sceneObject is being used in a separate thread; queue a message to set
432 SetProjectionMode(Dali::Camera::PERSPECTIVE_PROJECTION);
433 SetFieldOfView( fieldOfView );
434 SetNearClippingPlane( nearClippingPlane );
435 SetFarClippingPlane( farClippingPlane );
436 SetAspectRatio( aspectRatio );
441 void CameraActor::SetOrthographicProjection( const Vector2& size )
443 // Choose near, far and Z parameters to match the SetPerspectiveProjection above.
444 float nearClippingPlane;
445 float farClippingPlane;
447 CalculateClippingAndZ( size.width, size.height, nearClippingPlane, farClippingPlane, cameraZ );
448 SetOrthographicProjection( -size.x*0.5f, size.x*0.5f, size.y*0.5f, -size.y*0.5f,
449 nearClippingPlane, farClippingPlane );
453 void CameraActor::SetOrthographicProjection( float left, float right, float top, float bottom, float near, float far )
455 SetLeftClippingPlane( left );
456 SetRightClippingPlane( right );
457 SetTopClippingPlane( top );
458 SetBottomClippingPlane( bottom );
459 SetNearClippingPlane( near );
460 SetFarClippingPlane( far );
461 SetProjectionMode( Dali::Camera::ORTHOGRAPHIC_PROJECTION );
464 bool CameraActor::BuildPickingRay( const Vector2& screenCoordinates,
465 const Viewport& viewport,
467 Vector4& rayDirection )
470 if( mProjectionMode == Dali::Camera::PERSPECTIVE_PROJECTION )
472 // Build a picking ray in the world reference system.
473 // ray starts from the camera world position
474 rayOrigin = GetNode().GetWorldMatrix(0).GetTranslation();
477 // Transform the touch point from the screen coordinate system to the world coordinates system.
478 Vector4 near( screenCoordinates.x - static_cast<float>(viewport.x),
479 static_cast<float>( viewport.height ) - (screenCoordinates.y - static_cast<float>( viewport.y ) ),
481 const Matrix& inverseViewProjection = mSceneObject->GetInverseViewProjectionMatrix( GetEventThreadServices().GetEventBufferIndex() );
482 success = Unproject( near, inverseViewProjection, static_cast<float>( viewport.width ), static_cast<float>( viewport.height ), near );
484 // Compute the ray's director vector.
485 rayDirection.x = near.x - rayOrigin.x;
486 rayDirection.y = near.y - rayOrigin.y;
487 rayDirection.z = near.z - rayOrigin.z;
488 rayDirection.Normalize();
489 rayDirection.w = 1.f;
493 float nearPlaneDistance = GetNearClippingPlane();
494 BuildOrthoPickingRay( GetViewMatrix(),
495 GetProjectionMatrix(),
496 viewport, screenCoordinates.x,
506 const Matrix& CameraActor::GetViewMatrix() const
510 return mSceneObject->GetViewMatrix( GetEventThreadServices().GetEventBufferIndex() );
514 return Matrix::IDENTITY;
518 const Matrix& CameraActor::GetProjectionMatrix() const
522 return mSceneObject->GetProjectionMatrix( GetEventThreadServices().GetEventBufferIndex() );
526 return Matrix::IDENTITY;
529 const SceneGraph::Camera* CameraActor::GetCamera() const
534 void CameraActor::SetDefaultProperty( Property::Index index, const Property::Value& propertyValue )
536 if(index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT)
538 Actor::SetDefaultProperty(index, propertyValue);
544 case Dali::CameraActor::Property::TYPE:
546 std::string s( propertyValue.Get<std::string>() );
547 if(s == "LOOK_AT_TARGET")
549 SetType( Dali::Camera::LOOK_AT_TARGET );
551 else if(s == "FREE_LOOK")
553 SetType( Dali::Camera::FREE_LOOK );
557 case Dali::CameraActor::Property::PROJECTION_MODE:
559 std::string s( propertyValue.Get<std::string>() );
560 if( s == "PERSPECTIVE_PROJECTION" )
562 SetProjectionMode( Dali::Camera::PERSPECTIVE_PROJECTION );
564 else if( s == "ORTHOGRAPHIC_PROJECTION" )
566 SetProjectionMode( Dali::Camera::ORTHOGRAPHIC_PROJECTION );
570 case Dali::CameraActor::Property::FIELD_OF_VIEW:
572 SetFieldOfView( propertyValue.Get<float>() ); // set to 0 in case property is not float
575 case Dali::CameraActor::Property::ASPECT_RATIO:
577 SetAspectRatio( propertyValue.Get<float>() ); // set to 0 in case property is not float
580 case Dali::CameraActor::Property::NEAR_PLANE_DISTANCE:
582 SetNearClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
585 case Dali::CameraActor::Property::FAR_PLANE_DISTANCE:
587 SetFarClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
590 case Dali::CameraActor::Property::LEFT_PLANE_DISTANCE:
592 SetLeftClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
595 case Dali::CameraActor::Property::RIGHT_PLANE_DISTANCE:
597 SetRightClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
600 case Dali::CameraActor::Property::TOP_PLANE_DISTANCE:
602 SetTopClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
605 case Dali::CameraActor::Property::BOTTOM_PLANE_DISTANCE:
607 SetBottomClippingPlane( propertyValue.Get<float>() ); // set to 0 in case property is not float
610 case Dali::CameraActor::Property::TARGET_POSITION:
612 SetTarget( propertyValue.Get<Vector3>() ); // set to 0 in case property is not Vector3
615 case Dali::CameraActor::Property::PROJECTION_MATRIX:
617 DALI_LOG_WARNING( "projection-matrix is read-only\n" );
620 case Dali::CameraActor::Property::VIEW_MATRIX:
622 DALI_LOG_WARNING( "view-matrix is read-only\n" );
625 case Dali::CameraActor::Property::INVERT_Y_AXIS:
627 SetInvertYAxis( propertyValue.Get<bool>() ); // set to false in case property is not bool
630 case Dali::DevelCameraActor::Property::REFLECTION_PLANE:
632 SetReflectByPlane( propertyValue.Get<Vector4>() );
638 DALI_LOG_WARNING( "Unknown property (%d)\n", index );
646 Property::Value CameraActor::GetDefaultProperty( Property::Index index ) const
649 if( index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT )
651 ret = Actor::GetDefaultProperty(index);
657 case Dali::CameraActor::Property::TYPE:
659 if( Dali::Camera::LOOK_AT_TARGET == mType )
661 ret = "LOOK_AT_TARGET";
663 else if( Dali::Camera::FREE_LOOK == mType )
669 case Dali::CameraActor::Property::PROJECTION_MODE:
671 if( Dali::Camera::PERSPECTIVE_PROJECTION == mProjectionMode )
673 ret = "PERSPECTIVE_PROJECTION";
675 else if( Dali::Camera::ORTHOGRAPHIC_PROJECTION == mProjectionMode )
677 ret = "ORTHOGRAPHIC_PROJECTION";
681 case Dali::CameraActor::Property::FIELD_OF_VIEW:
686 case Dali::CameraActor::Property::ASPECT_RATIO:
691 case Dali::CameraActor::Property::NEAR_PLANE_DISTANCE:
693 ret = mNearClippingPlane;
696 case Dali::CameraActor::Property::FAR_PLANE_DISTANCE:
698 ret = mFarClippingPlane;
701 case Dali::CameraActor::Property::LEFT_PLANE_DISTANCE:
703 ret = mLeftClippingPlane;
706 case Dali::CameraActor::Property::RIGHT_PLANE_DISTANCE:
708 ret = mRightClippingPlane;
711 case Dali::CameraActor::Property::TOP_PLANE_DISTANCE:
713 ret = mTopClippingPlane;
716 case Dali::CameraActor::Property::BOTTOM_PLANE_DISTANCE:
718 ret = mBottomClippingPlane;
721 case Dali::CameraActor::Property::TARGET_POSITION:
726 case Dali::CameraActor::Property::PROJECTION_MATRIX:
728 ret = GetProjectionMatrix(); // Only on scene-graph
731 case Dali::CameraActor::Property::VIEW_MATRIX:
733 ret = GetViewMatrix(); // Only on scene-graph
736 case Dali::CameraActor::Property::INVERT_Y_AXIS:
747 Property::Value CameraActor::GetDefaultPropertyCurrentValue( Property::Index index ) const
750 if( index < DEFAULT_ACTOR_PROPERTY_MAX_COUNT )
752 ret = Actor::GetDefaultPropertyCurrentValue(index);
756 ret = GetDefaultProperty( index ); // Most are event-side properties, the scene-graph properties are only on the scene-graph
762 const PropertyInputImpl* CameraActor::GetSceneObjectInputProperty( Property::Index index ) const
764 const PropertyInputImpl* property( NULL );
768 case Dali::CameraActor::Property::PROJECTION_MATRIX:
770 property = mSceneObject->GetProjectionMatrix();
773 case Dali::CameraActor::Property::VIEW_MATRIX:
775 property = mSceneObject->GetViewMatrix();
778 // no default on purpose as we chain method up to actor
782 property = Actor::GetSceneObjectInputProperty( index );
788 } // namespace Internal