Re: [osg-users] Depth test and RenderBin details

2012-06-11 Thread Bob Slobodan
Hi guys,
First of all, thank you for the answers. Unfortunately, I couldn't solve my 
problem. I already tried the first solution that consisted in giving different 
render bin to the axis and the sphere, but then I either have the sphere always 
on top of the axis, or the axis always on top of the sphere.

This image illustrates my problem :

[Image: http://img15.hostingpics.net/pics/490598Sanstitre4.png ] 
(http://www.hostingpics.net/viewer.php?id=490598Sanstitre4.png)

The image 1 illustrates what i have  when the sphere has a lower render bin 
than the axis. The images 2 and 3 illustrates the opposite.
The image 4 illustrates a shading problem that I have in both situation.

So what I want is a mix between the image 2 and 5. This is basically what I 
have when I don't deactivate the depth test and don't use render bin details. 
But then, if I have anything (like a plane for example) between my dragger and 
the camera, I won't see it anymore.

Thank you so much for helping me.

Cheers,
Bob

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





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


Re: [osg-users] Depth test and RenderBin details

2012-06-10 Thread Riccardo Corsi
Hi,

you can also use the TraversalOrderBin which renders children node in the
order they are visited,
and place in the correct order the different dragger primitives in your
subgraph.
Ricky

On Sat, Jun 9, 2012 at 12:00 PM, Sergey Polischuk pol...@yandex.ru wrote:

 Hi

 You may set different render bins to sphere and axis

 Cheers

 08.06.2012, 16:49, Bob Slobodan qgalv...@msn.com:
  Hi guys,
 
  I've been implementing my own dragger (from scratch, I didn't use the
 osg draggers for specific reasons) and I have some problem with the render
 order. Basically my dragger is composed of four sub-draggers :
  - 3 axis dragger (each one composed of a line and a cone)
  - 1 sphere dragger
  The 3 axis dragger and the sphere have the same origin.
 
  The thing is that I want my whole dragger (the 3 axis and the sphere) to
 always be rendered on top of the rest of the scene.
 
  But when I deactivate the depth test and set the RenderBinDetails on my
 main dragger (node that contains the four sub-draggers), the sphere (which
 is the last node to be added to my main dragger) always appears on top of
 the axis.
 
  Is there a way to render my dragger with the depth test between the axis
 and the sphere, and then to display the whole dragger on top of the rest of
 the scene ?
 
  Thank you!
 
  Cheers,
  Bob
 
  --
  Read this topic online here:
  http://forum.openscenegraph.org/viewtopic.php?p=48138#48138
 
  ___
  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

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


Re: [osg-users] Depth test and RenderBin details

2012-06-09 Thread Sergey Polischuk
Hi

You may set different render bins to sphere and axis

Cheers

08.06.2012, 16:49, Bob Slobodan qgalv...@msn.com:
 Hi guys,

 I've been implementing my own dragger (from scratch, I didn't use the osg 
 draggers for specific reasons) and I have some problem with the render order. 
 Basically my dragger is composed of four sub-draggers :
 - 3 axis dragger (each one composed of a line and a cone)
 - 1 sphere dragger
 The 3 axis dragger and the sphere have the same origin.

 The thing is that I want my whole dragger (the 3 axis and the sphere) to 
 always be rendered on top of the rest of the scene.

 But when I deactivate the depth test and set the RenderBinDetails on my main 
 dragger (node that contains the four sub-draggers), the sphere (which is the 
 last node to be added to my main dragger) always appears on top of the axis.

 Is there a way to render my dragger with the depth test between the axis and 
 the sphere, and then to display the whole dragger on top of the rest of the 
 scene ?

 Thank you!

 Cheers,
 Bob

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

 ___
 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


[osg-users] Depth test and RenderBin details

2012-06-08 Thread Bob Slobodan
Hi guys,

I've been implementing my own dragger (from scratch, I didn't use the osg 
draggers for specific reasons) and I have some problem with the render order. 
Basically my dragger is composed of four sub-draggers :
- 3 axis dragger (each one composed of a line and a cone)
- 1 sphere dragger
The 3 axis dragger and the sphere have the same origin.

The thing is that I want my whole dragger (the 3 axis and the sphere) to always 
be rendered on top of the rest of the scene.

But when I deactivate the depth test and set the RenderBinDetails on my main 
dragger (node that contains the four sub-draggers), the sphere (which is the 
last node to be added to my main dragger) always appears on top of the axis.

Is there a way to render my dragger with the depth test between the axis and 
the sphere, and then to display the whole dragger on top of the rest of the 
scene ?

Thank you!

Cheers,
Bob

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





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