[osg-users] DoomLike manipulator

Sukender suky0001 at free.fr
Thu Mar 19 13:38:16 PDT 2009


Hi Michael,

Havig both modes sounds a good idea. In that case, "FirstPersonManipulator" seems fine for me. Just be sure to:
- allow the user to set which vector is considered to be "up"
- allow the user to set the minimum angle between "dir" and "up" (or else you got rounding errors that cause ugly artifacts). Based on experiments, I personnaly used 0.008 (radians; as you can see in the source code I told about), but it may depend on how your camera is set.

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/


Le Thu, 19 Mar 2009 21:08:45 +0100, Simon Loic <simon1lolo at gmail.com> a écrit:

> Glad to see that this manipulator generates interest.
> Concerning the name, the manipulator is designed as explained in the header
> :
>
> """
>  The camera control is done via keyboard arrows concerning the position and
> via mouse draging concerning the orientation.
> There are two modes : the horizontal and the free. In the free one the
> translation direction is exactly aligned with the view direction and thus
> can span the whole set of direction. In the other, the moving direction is
> constrained to remain horizontal. Note : horizontal mode is not implemented
> yet!!
> """
> Taking into account what you said, Sukender, we should call it
> FirstPesonManipulator and call the two modes GENERAL and DOOMLIKE.
> What do you think about this?
>
> On Thu, Mar 19, 2009 at 7:12 PM, Michael Platings
> <mplatings at pixelpower.com>wrote:
>
>> AFAIK you play as a human in Descent ;)
>>
>> Essentially it's to give the effect of walking/running, so how about
>> "WalkManipulator"?
>>
>> -----Original Message-----
>> From: osg-users-bounces at lists.openscenegraph.org [mailto:
>> osg-users-bounces at lists.openscenegraph.org] On Behalf Of Sukender
>> Sent: 19 March 2009 17:57
>> To: OpenSceneGraph Users
>> Subject: Re: [osg-users] DoomLike manipulator
>>
>> Hi all,
>>
>> IMHO, "FirstPersonManipulator" should suit any "first person cameras" ; and
>> a "doom-like" one is only a subset of a FPS manipulator. Think about
>> "Descent" game, where you could go in any direction in space (no gravity to
>> say where is the "up" direction). Doom-like has a fixed "up" vector that may
>> not suit any use of a FPS view. I personally chose "Human*" prefix for
>> Doom-like view (Hence "HumanManipulator" or "HumanViewManipulator").
>>
>> Sukender
>> PVLE - Lightweight cross-platform game engine -
>> http://pvle.sourceforge.net/
>>
>>
>> Le Thu, 19 Mar 2009 17:37:25 +0100, Robert Osfield <
>> robert.osfield at gmail.com> a écrit:
>>
>> > HI Loic,
>> >
>> > The manipulator certainly isn't pointless - as the fact that others
>> > have written something similar shows it's a common need, so getting
>> > something like it checked into the core OSG makes sense.  I would
>> > suggest finding a more generic name rather than DoomLikeManipulator.
>> > Perhaps FirstPersonManipulator?  I'm open to suggestions.
>> >
>> > Robert.
>> >
>> > 2009/3/19 Simon Loic <simon1lolo at gmail.com>
>> >
>> >> Thanks guys,
>> >> indeed the wasd manipulator does pretty much the same things as  mine.
>> >> Although I'm not interested in changing my manipulator. I was just
>> >> pointing out that this kind of manipulators are missing in the osg
>> >> core. Basically if the wasd manipulator had been integrated in osgGA,
>> >> I wouldn't have coded an equivalent from scratch.
>> >> So I was expecting some motivated comments on the manipulator I
>> >> propose, before to go through osg-submissions. Anyway if for any
>> >> reason you think that this is pointless, I'll just forget about it.
>> >>
>> >>
>> >>
>> >> 2009/3/19 David Spilling <david.spilling at gmail.com>
>> >>
>> >>> Hi,
>> >>>
>> >>> FYI, there was a posting of a (presumably similar) WASD type
>> >>> manipulater by Viggo Løvli back in August 08 - seach the archives
>> >>> for "How to write a camera manipulator..."
>> >>>
>> >>> David
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> osg-users mailing list
>> >>> osg-users at lists.openscenegraph.org
>> >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegrap
>> >>> h.org
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Loïc Simon
>> >>
>> >> _______________________________________________
>> >> osg-users mailing list
>> >> osg-users at lists.openscenegraph.org
>> >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph
>> >> .org
>> >>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email______________________________________________________________________
>>
>> ______________________________________________________________________
>> This email and any files transmitted with it are confidential and
>> intended solely for the use of the individual or entity to whom they
>> are addressed. If you have received this email in error please notify
>> the system manager.
>>
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>




More information about the osg-users mailing list