Re: [osg-users] OSGViewer camera position and external data

2009-08-28 Thread Robert Osfield
Hi Alex, On Fri, Aug 28, 2009 at 1:26 AM, Alex Malhaofranciskovi...@gmail.com wrote: I've compiled the openscenegraph source files (I already tried the new camera position, and it's working well). But, there is one thing that i don't know how to solve. When I try to load a osg map the

Re: [osg-users] OSGViewer camera position and external data

2009-08-28 Thread Trajce Nikolov
the png plugin is based on 3rd party libs. If you have used CMAKE make sure the path for the 3rd party libs is correct. To me it looks like the png plugin has not being compiled Nick http://www.linkedin.com/in/tnikolov On Fri, Aug 28, 2009 at 2:26 AM, Alex Malhao franciskovi...@gmail.comwrote:

Re: [osg-users] OSGViewer camera position and external data

2009-08-27 Thread Alex Malhao
Which values should go inside brackets of setHomePosition(...) ? Any example? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16803#16803 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] OSGViewer camera position and external data

2009-08-27 Thread Robert Osfield
On Thu, Aug 27, 2009 at 5:22 PM, Alex Malhaofranciskovi...@gmail.com wrote: Which values should go inside brackets of setHomePosition(...) ? Any example? I won't answer as it's clearly time you learned how to read the headers... as it's pretty clear what the values should be from the naming the

Re: [osg-users] OSGViewer camera position and external data

2009-08-27 Thread Alex Malhao
I suppose that: Code: osg::Vec3 LookFrom, LookAt, Up; LookFrom = osg::Vec3(10,0,1); LookAt = osg::Vec3(10,0,1); Up = osg::Vec3(0,0,1); viewer.setHomePosition( LookFrom, LookAt, Up ); viewer.home(); will do the job. No? -- Read this topic online here:

Re: [osg-users] OSGViewer camera position and external data

2009-08-27 Thread Robert Osfield
Hi Alex, On Thu, Aug 27, 2009 at 5:46 PM, Alex Malhaofranciskovi...@gmail.com wrote: I suppose that: Code: osg::Vec3 LookFrom, LookAt, Up; LookFrom = osg::Vec3(10,0,1); LookAt = osg::Vec3(10,0,1); Up = osg::Vec3(0,0,1); viewer.setHomePosition( LookFrom, LookAt, Up ); viewer.home();

Re: [osg-users] OSGViewer camera position and external data

2009-08-27 Thread Alex Malhao
Yes, you were right, there was a part missing, my mistake. There is one other thing bothering me, I think you might help: I've compiled the openscenegraph source files (I already tried the new camera position, and it's working well). But, there is one thing that i don't know how to solve. When

[osg-users] OSGViewer camera position and external data

2009-08-25 Thread Alex Malhao
Hi, When I load a map with OSGViewer the camera is positioned very far from the map. How can I change the initial position of the camera? There is one other question, how can I use external data (gamepad, wiimote, etc..) to make movements inside my osgViewer? Thank you! Cheers, Alex

Re: [osg-users] OSGViewer camera position and external data

2009-08-25 Thread Robert Osfield
Hi Alex, On Tue, Aug 25, 2009 at 11:43 AM, Alex Malhaofranciskovi...@gmail.com wrote: When I load a map with OSGViewer the camera is positioned very far from the map. How can I change the initial position of the camera? use the camera manipulator setHomePosition i.e.