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


[osg-users] Display the multi lingual text

2012-06-10 Thread shekhar vishwa
Hi

I want to display the multi lingual text. I have implemented following code.

osg::ref_ptrosgText::Text text = new osgText::Text;
osgText::String* string = new osgText::String(గౌతమి,
osgText::String::ENCODING_UTF8);
std::string test = string-createUTF8EncodedString();
text-setFont(fonts/gautami.ttf);
text-setCharacterSize(20);
text-setPosition(pos);
text-setAxisAlignment(osgText::Text::XY_PLANE);
text-setText(test);

But text is displays as ??? in osg view.

Please help me to display the multi lingual font text.

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


Re: [osg-users] Set Viewport background color as transparent

2012-06-10 Thread shekhar vishwa
Hi,

I have implemented above code  but it does not make the viewport background
transparent. I want to see the underlying views being the viewport.

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