Re: [osg-users] What's the difference between put rttcamera under root node and viewer?

2015-11-30 Thread Daniel Schmid
Hi silver In our project we have a driving simulator using rear view mirrors. And we had the same issues about what should be seen in the mirror and what in the main view. First we had no shadows and light effects in the mirrors, but after some time, we figured that light effects are essential

Re: [osg-users] What's the difference between put rttcamera under root node and viewer?

2015-11-25 Thread Robert Osfield
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

Re: [osg-users] What's the difference between put rttcamera under root node and viewer?

2015-11-24 Thread John Green
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

Re: [osg-users] What's the difference between put rttcamera under root node and viewer?

2015-11-23 Thread Robert Osfield
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 sp

[osg-users] What's the difference between put rttcamera under root node and viewer?

2015-11-21 Thread John Green
Hi, I'm trying to implement a rearview mirror in my car simulation project.So I need a rtt camera.And my scene consists of the osgearth node,some building models nodes,and a speed tree node. I find two way to build a rtt camera,one is add it to a scene node,using addchild method;the other is add