[osg-users] CompositeViewer and osgViewer::ScreenCaptureHandler

2016-07-11 Thread ted morris
I have 4 osgViewer::View's I want to grab and save an image from each.
I tried to use osgViewer::ScreenCaptureHandler as part of the composite
view but only one view is captured. Then I tried to addEventHandler() to
each individual view
to test capturing one at a time but it only captured one camera/window with
the same view even if the mouse focus is switched from one view to another.
In the latter case, I even tried creating
4 separate ScreenCaptureHandler's to addEventHandler() to each
osgViewer::View.

Can someone suggest how and if osgViewer::ScreenCaptureHandler can be used
in this way?

thanks very much!


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


Re: [osg-users] Inherithance from osg::referenced

2016-07-11 Thread Philippe Renon
I never had to create a class that inherits from osg::Referenced but what i 
gather is that it puts a contract on your class (copy semantics, etc...).

It should be pretty much the same for any osg::Referenced derived class except 
in some exotic cases. So any osg::Referenced class should provide the needed 
code.

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





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


Re: [osg-users] Inherithance from osg::referenced

2016-07-11 Thread Philippe Renon
The next best thing to doc is code. If you can't find documentation then you 
can try to find code that does what you want as examples.

In your case it is easy as *a lot* of osg classes inherit from osg::Referenced.

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





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


[osg-users] Inherithance from osg::referenced

2016-07-11 Thread Bruno Oliveira
Hello,

I am creating a class that should inherit from osg::Referenced.
Is there any guideline document available?
I searched for a while and couldn’t find any.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Infinite loop loading OBJ with a new osgDB::Options

2016-07-11 Thread Julien Valentin
Thanks Alberto!
I hadn't think about it
Good catch


Alberto Luaces wrote:
> "Julien Valentin" writes:
> 
> 
> > Hi,
> > I don't understand:
> > when i open wavefront obj with osgviewer all is right but in my application 
> > i get stuck in an infinite loop.
> > I set a new osgDB::Options to readrefnodefile, could it come from that?
> > Here's the stacktrace when i break the inf loop.
> > Any help is welcome
> > 
> 
> Hi Julien,
> 
> that sometimes happens if your locale does not interpret dots as the
> decimal separator.  Therefore, all the vertices are read as integers
> having almost the same value, so the tri-stripper creates a lot of
> common edges.
> 
> Try setting LANG=C as a environment variable, or just before reading the
> file: I have issues because Qt was changing the locale for me.
> 
> -- 
> Alberto
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


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





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


Re: [osg-users] [osgPlugins] Infinite loop loading OBJ with a new osgDB::Options

2016-07-11 Thread Alberto Luaces
"Julien Valentin" writes:

> Hi,
> I don't understand:
> when i open wavefront obj with osgviewer all is right but in my application i 
> get stuck in an infinite loop.
> I set a new osgDB::Options to readrefnodefile, could it come from that?
> Here's the stacktrace when i break the inf loop.
> Any help is welcome

Hi Julien,

that sometimes happens if your locale does not interpret dots as the
decimal separator.  Therefore, all the vertices are read as integers
having almost the same value, so the tri-stripper creates a lot of
common edges.

Try setting LANG=C as a environment variable, or just before reading the
file: I have issues because Qt was changing the locale for me.

-- 
Alberto

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