Re: [osg-users] Simple demo freezes on touchpad disable/enable (bug?)

2014-01-13 Thread Ivan Nikolaev
Well, just following OpenSceneGraph 3.0 Beginners Guide book, and 
since it's a Viewer instance, everything should work out of the box, at 
least on my Ubuntu 12.04 machine with Unity shell it *seems* that it 
never manifested similiar problems.

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


Re: [osg-users] Simple demo freezes on touchpad disable/enable (bug?)

2014-01-13 Thread Trajce Nikolov NICK
Hmm  I don't think by default the osgViewer::Viewer class provides
CameraManipulator. Just give it a try. something like
viewer.setCameraManipulator( new TrackballManipulator ). Also, the app
should exit when you press ESC.

Nick


On Mon, Jan 13, 2014 at 1:09 PM, Ivan Nikolaev void...@develer.com wrote:

 Well, just following OpenSceneGraph 3.0 Beginners Guide book, and since
 it's a Viewer instance, everything should work out of the box, at least on
 my Ubuntu 12.04 machine with Unity shell it *seems* that it never
 manifested similiar problems.

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




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


Re: [osg-users] Simple demo freezes on touchpad disable/enable (bug?)

2014-01-13 Thread Robert Osfield
Hi Ivan,

You example is fine, the viewer will automatically attach a
TrackballManipulator when you call Viewer::run() as a fallback.  In
principle it's better to explicitly add the camera manipulator you want as
it's clearer what is being set up.

As for the demo freezing, I don't know why this might be happening, I
haven't heard others having an issue.  I would strongly suspect an issue
with the window manager as the OSG has nothing to do with the touchpad
itself.

One experiment you could do is attach the StatsHandler and then bring up on
screen stats to see if the viewer is still running then do the touchpad
re-enable.  Another would be to look at different window managers.

Robert.



On 13 January 2014 10:09, Ivan Nikolaev void...@develer.com wrote:

 Well, just following OpenSceneGraph 3.0 Beginners Guide book, and since
 it's a Viewer instance, everything should work out of the box, at least on
 my Ubuntu 12.04 machine with Unity shell it *seems* that it never
 manifested similiar problems.

 ___
 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] Simple demo freezes on touchpad disable/enable (bug?)

2014-01-13 Thread Trajce Nikolov NICK
  the viewer will automatically attach a TrackballManipulator when you
call Viewer::run() as a fallback

Sorry :-), Didn't knew that

Nick


On Mon, Jan 13, 2014 at 1:22 PM, Robert Osfield robert.osfi...@gmail.comwrote:

 Hi Ivan,

 You example is fine, the viewer will automatically attach a
 TrackballManipulator when you call Viewer::run() as a fallback.  In
 principle it's better to explicitly add the camera manipulator you want as
 it's clearer what is being set up.

 As for the demo freezing, I don't know why this might be happening, I
 haven't heard others having an issue.  I would strongly suspect an issue
 with the window manager as the OSG has nothing to do with the touchpad
 itself.

 One experiment you could do is attach the StatsHandler and then bring up
 on screen stats to see if the viewer is still running then do the touchpad
 re-enable.  Another would be to look at different window managers.

 Robert.



 On 13 January 2014 10:09, Ivan Nikolaev void...@develer.com wrote:

 Well, just following OpenSceneGraph 3.0 Beginners Guide book, and since
 it's a Viewer instance, everything should work out of the box, at least on
 my Ubuntu 12.04 machine with Unity shell it *seems* that it never
 manifested similiar problems.

 ___
 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




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


Re: [osg-users] Simple demo freezes on touchpad disable/enable (bug?)

2014-01-11 Thread Trajce Nikolov NICK
Is this your whole code? I would add CameraMainpulator , like
TrackballManipulator. That is what I am seeing missing

Nick


On Sat, Jan 11, 2014 at 2:20 PM, Ivan Nikolaev void...@develer.com wrote:

  Hi,

 I've just started programming 3D stuff with OpenSceneGraph, and noticed
 that if during a full-screen rendering I try to disable and then re-enable
 my laptop's touchpad (with a Fn+F9 combination, in my case), everything
 freezes and the viewer doesn't react to any input, both from keyboard or
 mouse/touchpad, so the only way to close it is by killing it.

 Using Fedora 20 with Gnome 3 on ASUS Zenbook with integrated Intel GPU,
 the dedicated nVidia is disabled.
 OpenSceneGraph v 3.2.0

 Here's the code of my simple demo application:

 ---
 #include osgViewer/Viewer
 #include osg/Geode
 #include osg/ShapeDrawable

 int main(int argc, char** argv)
 {
 osg::ref_ptrosg::ShapeDrawable box = new osg::ShapeDrawable;
 box-setShape(new osg::Box(osg::Vec3(3.0f, 0.0f, 0.0f), 2.0f, 2.0f,
1.0f));

 osg::ref_ptrosg::Geode root = new osg::Geode;
 root-addDrawable(box.get());

 osgViewer::Viewer viewer;
 viewer.setSceneData(root.get());

 return viewer.run();
 }
 ---

 Is this a bug?

 Thank you!

 Cheers,
 Ivan

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




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