Hi,
You shouldn't have to copy the includes over to your folder.
I am guessing your are using visual studio under Windows, you will need to
add the include and library paths for OSG and setup the environment
variables
http://www.openscenegraph.org/projects/osg/wiki/Support/GettingStarted
http://www.openscenegraph.org/projects/osg/wiki/Support/PlatformSpecifics/Vi
sualStudio

I would start by setting your environment up properly, have a look at Paul
Martz's free book http://stores.lulu.com/pmartz or you can order a hardcopy,
or Wang Ru's new OSG book is more up to date and in align with OSG3.0
release(when version 3.0 is released).

Get all the examples working as these will be the source of how it all
works.
Its a steep learning curve at first, in fact I am sure you will always be
learning :)

The error message is telling you it cannot convert the parameter 1(?) I am
taking a stab in the dark that you are not including an include somewhere or
the environment is not setup correctly/an old version of OSG?

Also some info probably is required: Platform, compiler, version of
OSG...guess its the SVN?

Do a checkout of the examples if you have not already and compile them all.

Hope it helps, once you get it all setup properly it should be a lot
happier.

Regards

Martin.









-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nan WANG
Sent: 08 February 2011 11:38
To: [email protected]
Subject: Re: [osg-users] Keyboard move camera position

hello
As i am newbie in OSG. ...could you tell me how to use
FirstPersonManipulator in my scene?

I copied 'FirstPersonManipulator' from %SVN%\include\osgGA to my project
folder, then add it in my project. then add '#include
<osgGA/FirstPersonManipulator>' above main() function....then
viewer.setCameraManipulator(new osgGA::FirstPersonManipulator());


then error like: 
error C2664: 'osgViewer::View::setCameraManipulator' : cannot convert
parameter 1 from 'osgGA::FirstPersonManipulator *' to
'osgGA::MatrixManipulator *'

do you know why?

Thank you!

Cheers,
Nan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36453#36453





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to