I am actually experiencing somewhat the same thing you are experiencing.

All of our text is rendered on a different layer, which is usually the highest 
render bin, so it can be viewed above all other shapes.  Each layer first 
clears the depth buffer before each shape for that layer is rendered.  The 
layer here consists of a render bin that all the shapes are dumped to.  What I 
am seeing is the text starts rendering above all others, but then, after 
several render passes, the text start rendering as if depth testing is turned 
on.  Shapes from lower layers seem to occlude the text shape.  This is strange 
behavior.  I would expect one or the other.

I have not looked into the code quite yet, since I wanted to see if anyone else 
has experience the same problem.  I will post my findings later.

Ryan Kawicki
Software Engineer
The Boeing Company
Training Systems and Services

-----Original Message-----
From: Andreas Ekstrand [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 3:43 PM
To: osg users
Subject: Re: [osg-users] Drawing text over geometry

Hi Robert,

I do see the difference when commenting out the depth test setting in your 
example, the surface directly beneath the text partly occludes it with depth 
test turned on, so it does work to some extent. But when viewing your text on 
the earth surface "edge-on", I can observe that the earth is occluding your 
text. Is there some sort of culling going on? 
Can you see the text behind the horizon? I guess you should be able to do that 
if depth test is switched off. Or perhaps there's some obvious reason I can't 
see right now, due to lack of sleep or something...

/Andreas

Robert Osfield wrote:

> HI Andreas,
>
> In the new osgfadetext example I switch off the depth test and it 
> works fine for me.  Could you try out this new example in CVS?
>
> Robert.
>
> On 10/3/06, * Andreas Ekstrand* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi,
>
>     I'm trying to let my osgText::Text always lie on top of other
>     geometry.
>     I have a state set applied directly to my osgText::Text for which
>     I have
>     turned off GL_DEPTH_TEST, created an osg::Depth with a (0,0) range
>     and
>     dropped it into a render bin higher than everything else. Still, it
>     doesn't work. Since the problem with protecting state modes and
>     attributes for osgText::Text has now been fixed, I'm a bit surprised
>     seeing this behavior. Any idea what's going on?
>
>     /Andreas
>
>     --
>     ________________________________________________________________________
>     Andreas Ekstrand
>     Remograph
>     Rekrytgatan 10
>     SE-582 14 Linköping
>     SWEDEN
>     Website: http://www.remograph.com
>     E-mail: [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>
>     _______________________________________________
>     osg-users mailing list
>     [email protected] <mailto:[email protected]>
>     http://openscenegraph.net/mailman/listinfo/osg-users
>     http://www.openscenegraph.org/ <http://www.openscenegraph.org/>
>
>
>-----------------------------------------------------------------------
>-
>
>_______________________________________________
>osg-users mailing list
>[email protected]
>http://openscenegraph.net/mailman/listinfo/osg-users
>http://www.openscenegraph.org/
>


--
________________________________________________________________________
Andreas Ekstrand
Remograph
Rekrytgatan 10
SE-582 14 Linköping
SWEDEN
Website: http://www.remograph.com
E-mail: [EMAIL PROTECTED]

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to