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 following message appears:

 Warning: Could not find plugin to read objects from file ..\pics\temp.png.

 How can I solve this issue?

Well just do a search through the archives and you find your
solution... it's another invaluable skill.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:

 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 I try to load a osg map the following message
 appears:

 Warning: Could not find plugin to read objects from file
 ..\pics\temp.png.

 How can I solve this issue?

 Thank you!

 Regards.

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





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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 parameters.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:
http://forum.openscenegraph.org/viewtopic.php?p=16806#16806





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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();



 will do the job. No?

Almost... have a re-read of my first reply for the tiny change
required to the setHomePosition line.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 I try to load a osg map the following message appears:

Warning: Could not find plugin to read objects from file ..\pics\temp.png.

How can I solve this issue?

Thank you!

Regards.

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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.

 viewer.getCameraManipulator()-setHomePosition(...);
 viewer.home();


 There is one other question, how can I use external data (gamepad, wiimote, 
 etc..) to make movements inside my osgViewer?

Either write your own CameraManipulator an attach that to the viewer,
or dispense with a CameraManipulator and set the viewer Camera's view
matrix manually on each new frame.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org