本文整理汇总了C#中Camera.SetPosition方法的典型用法代码示例。如果您正苦于以下问题:C# Camera.SetPosition方法的具体用法?C# Camera.SetPosition怎么用?C# Camera.SetPosition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Camera
的用法示例。
在下文中一共展示了Camera.SetPosition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateCamera
private void CreateCamera() {
this.mCam = this.mSceneMgr.CreateCamera("MainCamera");
this.mCam.NearClipDistance = 0.1f;
this.mCam.FarClipDistance = 1000f;
//
// Position it at 500 in Z direction
mCam.SetPosition(0, 0, 80);
// Look back along -Z
mCam.LookAt(new Vector3(0f, 0f, -300f));
mCam.NearClipDistance = (0.5f);
mSceneMgr.ShadowFarDistance = (100.0f);
//#if OGRE_VERSION < ((2 << 16) | (0 << 8) | 0)
mSceneMgr.ShadowTechnique = (ShadowTechnique.SHADOWTYPE_TEXTURE_MODULATIVE);
mSceneMgr.SetShadowTextureSize(1024);
//#endif
mSceneMgr.AmbientLight = new ColourValue(0.1f, 0.1f, 0.1f); //(ColourValue.Black);
// Setup camera and light
setCameraPosDefault();
}
示例2: CreateCamera
private void CreateCamera()
{
m_Camera = m_SceneManager.CreateCamera("myCamera1");
m_Camera.ProjectionType = ProjectionType.PT_ORTHOGRAPHIC;
m_Camera.SetPosition(-1, 2000, 0);
m_Camera.NearClipDistance = 5;
m_Camera.FarClipDistance = 2501;
m_Camera.LookAt(Vector3.ZERO);
m_Camera.AutoAspectRatio = true;
}