[osg-users] What's the difference between put rttcamera under root node and viewer?
Robert Osfield
robert.osfield at gmail.com
Wed Nov 25 00:19:28 PST 2015
Hi John,
Unfortunately I can't help with debugging on this one as the combination of
3rd party libs and your scene graph/application are far to complex to be
able to guess at specific bugs. The best we can do is provide general and
have you iterate through different combinations of to see if you can
isolate the problem.
As I said in my previous post this type of problem often stems from state
not being managed correctly - this could be due to the SpeedTree
integration not being 100% reliable in this respect, or part of the OSG
scene graph not being fully set up - for instance missing normals, text
coordinate or colours assigned to an osg::Geometry so it randomly inherits
from previous OpenGL calls. There is also a possibility of OpenGL
driver/hardware bugs - try different hardware and drivers can normally help
with determining this.
As for the NodeMask's have a look at the osgstereoimage example for how to
set up scene graph NodeMask's and traversal masks.
Robert.
On 25 November 2015 at 03:32, John Green <star-force at qq.com> wrote:
> The terrain stay black even if I remove the speedtree node.So we can
> specify:
> 1.When we use a addslave-type rtt camera,with usemasterdata set
> true,Eveything is OK,BUT the workload is quite heavy.
> 2.When we use a addslave-type rtt camera,with usemasterdata set false,the
> osgearth lost its textures and turn into black,but the speedtree is fine.
> 3.When we use a addchild-type rtt camera,the osgearth can be fine,but the
> speedtree node are totally disapeared.
> BTW,nodemask seem not to work when we use the first and only way.
>
>
>
> robertosfield wrote:
> > Hi John,
> >
> >
> > The inconsistent behaviour suggests that some state set up by SpeedTree
> is affecting the OSG rendering and possibly the other way around too.
> >
> >
> > W.r.t. rendering different parts of the scene in the mirror vs main
> scene, you can use a combination of NodeMask's on the subgraphs you want to
> specialize and CullMask (see in osg::CullSettings that is inherited by
> osg::Camera.)
> >
> >
> > Robert
> >
> >
> >
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=65764#65764
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151125/b74fb862/attachment-0002.htm>
More information about the osg-users
mailing list