diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-10 22:29:06 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-12 03:00:06 +0200 |
commit | 9ec2a09c007685cc78db8ca80778eb8f3930a6ab (patch) | |
tree | adf5780a4c5e69fc834cbed80879233a2cdfb60a | |
parent | 4a833ab441a1bcc972f3c52e75fb5d913260c7bb (diff) |
fix camera position
Change-Id: Ie3acc0a82e86fe7fbc565783ac09c2f9b6721fbf
-rw-r--r-- | chart2/source/view/main/3DChartObjects.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx index 6cad265cdaf4..35d116f0177c 100644 --- a/chart2/source/view/main/3DChartObjects.cxx +++ b/chart2/source/view/main/3DChartObjects.cxx @@ -154,15 +154,15 @@ void Rectangle::setLineColor(const Color& rColor) Camera::Camera(OpenGL3DRenderer* pRenderer): Renderable3DObject(pRenderer, 0), - maPos(10,10,-10), - maUp(0, 1, 0), - maDirection(glm::vec3(0,0,0)-maPos) + maPos(10,-50,10), + maUp(0, 0, 1), + maDirection(glm::vec3(0,1,-0.2)) { } void Camera::render() { - mpRenderer->SetCameraInfo(maPos, maDirection, maUp, true); + mpRenderer->SetCameraInfo(maPos, maDirection, maUp, false); } void Camera::zoom(sal_uInt32 /*nId*/) |