Back view in Proscene
in
Contributed Library Questions
•
1 year ago
Hi all,
Well I am trying to setup some radio buttons to allow some preset views of my model (e.g. top, right, left, etc.). I have managed to get all the views to work except one, the back/rear view. Here is what I have for the others:
Can someone explain to me how the orientations work?
Regards,
Ali
Well I am trying to setup some radio buttons to allow some preset views of my model (e.g. top, right, left, etc.). I have managed to get all the views to work except one, the back/rear view. Here is what I have for the others:
- // top view
- scene.camera().setOrientation(0,0);
- // front view
- scene.camera().setOrientation(0,HALF_PI);
- // left view
- scene.camera().setOrientation(HALF_PI,-HALF_PI);
- // right view
- scene.camera().setOrientation(-HALF_PI,-HALF_PI);
- // perspective view
- scene.camera().setOrientation(new Quaternion(new PVector(-HALF_PI-QUARTER_PI, QUARTER_PI, -HALF_PI-QUARTER_PI),1));
- scene.camera().setOrientation(0,-HALF_PI);
Can someone explain to me how the orientations work?
Regards,
Ali
1