[OpenWalnut-Dev] Question about camera's initial position and orientation
Sebastian Eichelbaum
eichelbaum at informatik.uni-leipzig.de
Mon Mar 11 11:24:29 CET 2013
Hi
The position of the camera is defined by the OSG manipulator, which has been attached to a view. Usually, this manipulator sets the camera position in a way that the whole scene (defined by its bounding box) is visible. So we do not set camera position explicitly. What we do is setting the camera rotation, as in setPresetViewSuperior.
Summary:
* OSG sets the camera position using the BoundingBox of the scene
* We set the rotation of the camera
Does this answer your question?
Best wishes,
Sebastian
On Sat, 09 Mar 2013, yeming wrote:
> Hi, guys!
> I have a question that has perplexed me for a week. Osg takes [eye(0, -1, 0), center(0,0,0), up(0,0,1)] as its camera's initial position and orientation. In OW, from WMNavigationSlices's Navigation View Setup section and WQtGLWidget::setPresetViewSuperior() implementation, camera's initial position seems to be at (0,0,1) facing -z. Am I missing a specified transfrom during the procedure from geometrical model to screen display? Thanks for your time.
> Best regards,
> Yeming.
>
>
>
>
>
> _______________________________________________
> OpenWalnut-Dev mailing list
> OpenWalnut-Dev at lists.informatik.uni-leipzig.de
> http://lists.informatik.uni-leipzig.de/mailman/listinfo/openwalnut-dev
>
> Archive: http://lists.informatik.uni-leipzig.de/pipermail/openwalnut-dev/
--
Dipl.-Inf. Sebastian Eichelbaum
Universität Leipzig
Institut für Informatik
Abteilung Bild- und Signalverarbeitung
PF 100920
D-04009 Leipzig
More information about the OpenWalnut-Dev
mailing list