[osg-submissions] camera views

Domenico Mangieri domenico at wivere.com
Thu Jun 5 13:00:04 PDT 2008


Hi Robert,
it's so hard to find appropriate names.

Following your suggetion we could do something like :

XZ_FRONT,
YZ_FRONT,
ZY_FRONT,
XZ_BACK,
YZ_BACK,
ZY_BACK,

The first letter is the "look at" vector, the second is "up" vector
FRONT/BACK indicates the sign of "look at" vector

What do you think ?

Domenico

----- Original Message ----- 
From: "Robert Osfield" <robert.osfield at gmail.com>
To: "OpenSceneGraph Submissions" <osg-submissions at lists.openscenegraph.org>
Sent: Wednesday, May 28, 2008 1:39 PM
Subject: Re: [osg-submissions] camera views


> Hi Domenico,
>
> I've started reviewing your changes, and in principal I'm happy to
> some type of convenience functionality for set the home position.
> However, the HomePositionType enum and its values is a bit open ended.
> What does FRONT, BACK, LEFT etc. mean.   Before I merge this work
> we'll need to settle upon a naming convention for the different
> positions to is more explicit, most likely based on the X,Y,Z axis,
> such as the look vector + up vector.
>
> I'm also feel that setting the home position is something that the
> viewer should do when setting up windows, rather than leaving it as
> something the user can adjust by pressing function keys.
>
> Robert.
>
> On Wed, May 28, 2008 at 2:03 AM, Domenico Mangieri <domenico at wivere.com>
> wrote:
>> Hi Robert,
>>
>> I added to the MatrixManipulator the option to set home position respect
>> to
>> the principal views of a model
>> FRONT, BACK, LEFT, RIGHT, BOTTOM, TOP, ISOMETRIC
>>
>> These are quite common camera positions for cad like applications.
>>
>> Here is the list of files changed :
>>
>> MatrixManipulator   :         defines the HomePositionType enum
>> MatrixManipulator.cpp  :    Implements
>> computeHomePosition(HomePositionType
>> vtype) and computeHomePosition(HomePositionType vtype, const
>> osg::BoundingSphere&)
>>                                         computeHomePosition() is now the
>> FRONT view
>>                                         handle( .. ) uses keys F1..F6
>> and
>> Space bar to switch between views  (arbitrary keys, feel free to change
>> them
>> if you like )
>>
>> DriveManipulator.cpp
>> FlightManipulator.cpp
>> TerrainManipulator.cpp
>> TrackballManipulator.cpp  : handleing of  KEYDOWN is forward to parent (
>> MatrixManipulator::handle  )
>>
>>
>> Regards
>>
>> Domenico.
>>
>> _______________________________________________
>> osg-submissions mailing list
>> osg-submissions at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>>
>>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org



More information about the osg-submissions mailing list