Ok, I've found the error by myself.
The problem was I created the complete transformation-matrix on every render-process. With this the rotation changed also if I only changed the pan of the arcball...
Type: Posts; User: admirandis
Ok, I've found the error by myself.
The problem was I created the complete transformation-matrix on every render-process. With this the rotation changed also if I only changed the pan of the arcball...
Ok, let's think in eyepoint and origin.
1. At the beginning (i.e. no arcball modifications) I want the origin to be located in: viewportwidth/2, viewportheight/2, 0. Eyepoint is origin but z-value >...
I think I don't have a modeling-transform at the moment. I just wan't transform the hole scene with my code.
In steps:
1. I want to translate the scene to a) the middle of the viewport and b)...
Hi guys,
I'm trying to write an arcball which rotates around the window center (z=0). Unfortunatly I also want to be able to move my objects with this arcball; i.e. rotate, translate scale.
My...
Hi guys,
I'm trying to write an arcball which rotates around the window center (z=0). Unfortunatly I also want to be able to move my objects with this arcball; i.e. rotate, translate scale.
My...