[Ves] Initial rendering size of KiwiViewer

Xiaopeng Yang yxp233 at postech.ac.kr
Wed Nov 26 16:52:39 EST 2014


Hi David,

 

I modified the values from 1 to 0.75 in the resetView setting and it worked. Thank you very much for your help.

self->mKiwiApp->resetView(vesVector3f(0.0, 0.0, -0.75), vesVector3f(0.0, 0.75, 0.0), false);

 

Best regards,

Xiaopeng

 

From: Ves [mailto:ves-bounces at public.kitware.com] On Behalf Of Busch, David E
Sent: Wednesday, November 26, 2014 11:30 PM
To: ves at public.kitware.com
Subject: Re: [Ves] Initial rendering size of KiwiViewer

 

Xiaopeng,

 

If you are only doing something simple on the initial startup of the KiwiViewer, before performing any panning, transformations, etc... you might be able to get away with something like:

setCameraPosition(cameraPosition() * 0.75);  // (in vesKiwiBaseApp) for instance

 

If you are trying to perform a zoom after panning/etc... then you will need to take the 3d transformation into account.  Simply moving the camera wont work as your viewing angles will change, likely requiring you to properly translate and rotate the camera. 

 

Take a look at:

vesKiwiBaseApp::setCameraPosition  & vesKiwiBaseApp::cameraPosition​

vesKiwiBaseApp::setCameraFocalPoint & vesKiwiBaseApp::cameraFocalPoint

vesKiwiBaseApp::setCameraViewUp & vesKiwiBaseApp::cameraViewUp

...as well as the dolly, roll, pan and rotate functions of vesKiwiCameraInteractor

​

Also look at vesRenderer::resetCamera().  There is some math that may be useful to you here, as well as some references to other classes and functions that may also be of use too.


​David Busch

Mobile App Developer

University of Pittsburgh

 

  _____  

From: Ves <ves-bounces at public.kitware.com> on behalf of Xiaopeng Yang <yxp233 at postech.ac.kr>
Sent: Wednesday, November 26, 2014 4:30 AM
To: ves at public.kitware.com
Subject: [Ves] Initial rendering size of KiwiViewer 

 

Dear VES users,

 

Is there any zoom function for the camera so that I can show a larger initial rendering other than default size? I know in VTK, there is a zoom function for the camera, but not sure whether VES has that function or not.

 

Thanks,

Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20141127/6877ca36/attachment.html>


More information about the Ves mailing list