diff options
author | weigao <weigao@multicorewareinc.com> | 2014-05-24 11:45:02 +0800 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-24 10:48:44 +0200 |
commit | fed8631d31c4598466ef0d09f509bfabd5ce9dd7 (patch) | |
tree | eb769fa611a3c36dab6c37ce5b5f9b18fe3b2744 | |
parent | 08c1c406055f689ef70725a13770037d7d420d5b (diff) |
modify the camera position to show the whole scene
Change-Id: I0d197295046a478d59f4260f2931fbaec9a17a33
-rw-r--r-- | chart2/source/view/main/GL3DRenderer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx index f7af953294af..ffd89ad0d542 100644 --- a/chart2/source/view/main/GL3DRenderer.cxx +++ b/chart2/source/view/main/GL3DRenderer.cxx @@ -1547,7 +1547,7 @@ void OpenGL3DRenderer::CreateSceneBoxView() m_SenceBox.maxZCoord *= m_fHeightWeight; m_SenceBox.minZCoord *= m_fHeightWeight; m_CameraInfo.cameraOrg = glm::vec3(m_SenceBox.minXCoord + senceBoxWidth / 2, - m_SenceBox.minYCoord + senceBoxDepth * 2, + m_SenceBox.minYCoord + senceBoxDepth / 2, m_SenceBox.minZCoord + senceBoxHeight * m_fHeightWeight/ 2); //update the camera position and org m_CameraInfo.cameraPos.x = m_CameraInfo.cameraOrg.x + distance * cos(veriticalAngle) * sin(horizontalAngle); m_CameraInfo.cameraPos.y = m_CameraInfo.cameraOrg.y + distance * cos(veriticalAngle) * cos(horizontalAngle); |