PDA

View Full Version : Recenter Orthographic Camera (Open Inventor)



artmansoft
04-11-2010, 12:53 AM
Hi,

Is there any way to change the center of rotation of an orthographic camera to a given point without affecting the overall effect of the transformation and viewing? I.e. the center of rotation changes, but the object does not move.

Modification of the focalDistance and using the SoCamera::pointAt function changes the center of rotation well, but also moves or reorients the object in the sight of the viewer which is not desired.

In fact, I need an effect similar to the SoTransform::recenter function. The Paraview software does the same in its "Enter Center" function.

Thanks,
artmansoft

mikeheck
04-13-2010, 09:50 AM
See response in Open Inventor Forum: http://www.mc3dviz.com/openinventor-forum/showthread.php?p=586#poststop