Re: [osg-users] osgText issue

2010-06-04 Thread Robert Osfield
Hi Brad,

I don't have time right now to dive into this topic, but my guess is
that the default bounding box for the text is small enough for small
feature culling to cull it's parent so that the text itself never gets
traversed.   Perhaps making the bounding volume invalid until it's
been traversed would be one thing to do, so for the first frame it's
not culled.  You'd only want to do this in the case of screen scaled
text.

Robert.

On Fri, Jun 4, 2010 at 12:06 AM, Brad Huber br...@procerusuav.com wrote:
 It looks like for some reason my screen aligned, screen sized text is
 getting small feature culled under certain circumstances.  My small feature
 cull is set to the default (2 pixels) and my text is definitely larger than
 2 pixels (when it does show).  When I disable small feature culling the text
 always shows correctly.



 I’m still not sure why this is happening but is it possible that it is using
 the world size of my drawables for culling rather than the actual screen
 size?  Also, I’m not sure why this is an intermittent problem.  (ie text
 doesn’t show then I zoom in and it shows, then zoom back out and it still
 shows).



 Thoughts?



 Thanks

 -Brad



 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad Huber
 Sent: Thursday, June 03, 2010 10:02 AM
 To: 'OpenSceneGraph Users'
 Subject: [osg-users] osgText issue



 Cedric (or anyone else),



 I’m running in to a similar issue to what is described here:
 http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15610.html
 a long time ago by Cedric Pinson.



 I searched around in the forum archives and didn’t see any resolution to
 this issue nor did I find anything else similar.  Did you ever find a
 solution to this problem?



 The way it manifests for me is that there is an osgText object in the
 visible scene but it doesn’t show until I zoom the camera in on it.  Then it
 appears and if I zoom the camera back out it sticks around.  It should be
 showing the whole time…





 Thanks

 -Brad

 ___
 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] osgText issue

2010-06-04 Thread Terry Welsh
This sounds very much like a problem I had a while ago.  Try this:
http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg39201.html
--
Terry Welsh  /  mogumbo 'at' gmail.com
www.reallyslick.com  /  www.mogumbo.com



 Message: 9
 Date: Fri, 4 Jun 2010 09:12:24 +0100
 From: Robert Osfield robert.osfi...@gmail.com
 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 Subject: Re: [osg-users] osgText issue
 Message-ID:
        aanlktinmxzysh4oach0c5h_c-rrha0ykc5zrrk7fd...@mail.gmail.com
 Content-Type: text/plain; charset=windows-1252

 Hi Brad,

 I don't have time right now to dive into this topic, but my guess is
 that the default bounding box for the text is small enough for small
 feature culling to cull it's parent so that the text itself never gets
 traversed.   Perhaps making the bounding volume invalid until it's
 been traversed would be one thing to do, so for the first frame it's
 not culled.  You'd only want to do this in the case of screen scaled
 text.

 Robert.

 On Fri, Jun 4, 2010 at 12:06 AM, Brad Huber br...@procerusuav.com wrote:
 It looks like for some reason my screen aligned, screen sized text is
 getting small feature culled under certain circumstances.? My small feature
 cull is set to the default (2 pixels) and my text is definitely larger than
 2 pixels (when it does show).? When I disable small feature culling the text
 always shows correctly.



 I?m still not sure why this is happening but is it possible that it is using
 the world size of my drawables for culling rather than the actual screen
 size?? Also, I?m not sure why this is an intermittent problem.? (ie text
 doesn?t show then I zoom in and it shows, then zoom back out and it still
 shows).



 Thoughts?



 Thanks

 -Brad



 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad Huber
 Sent: Thursday, June 03, 2010 10:02 AM
 To: 'OpenSceneGraph Users'
 Subject: [osg-users] osgText issue



 Cedric (or anyone else),



 I?m running in to a similar issue to what is described here:
 http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15610.html
 a long time ago by Cedric Pinson.



 I searched around in the forum archives and didn?t see any resolution to
 this issue nor did I find anything else similar.? Did you ever find a
 solution to this problem?



 The way it manifests for me is that there is an osgText object in the
 visible scene but it doesn?t show until I zoom the camera in on it.? Then it
 appears and if I zoom the camera back out it sticks around. ?It should be
 showing the whole time?





 Thanks

 -Brad

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


Re: [osg-users] osgText issue

2010-06-04 Thread Brad Huber
Thanks Robert and Terry.

 

I've left off solving the problem for the moment and I switched to using an
AutoTransform node for the same effect.  Seems to be working well.  BTW it
might be nice if osgText had a provision for allowing screen size
position/offsets.  Eg you can currently use osgText::setPosition to set the
texts position In model space but not one for screen space.  In my case I
was trying to have a label appear to the side of a 3d object in the scene.
Seems like a common enough application.  That's part of my reason for
switching to autotransform.

 

Perhaps I missed another better method (Billboard?).

 

Thanks

-Brad

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad Huber
Sent: Thursday, June 03, 2010 5:06 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] osgText issue

 

It looks like for some reason my screen aligned, screen sized text is
getting small feature culled under certain circumstances.  My small feature
cull is set to the default (2 pixels) and my text is definitely larger than
2 pixels (when it does show).  When I disable small feature culling the text
always shows correctly.

 

I'm still not sure why this is happening but is it possible that it is using
the world size of my drawables for culling rather than the actual screen
size?  Also, I'm not sure why this is an intermittent problem.  (ie text
doesn't show then I zoom in and it shows, then zoom back out and it still
shows).

 

Thoughts?

 

Thanks

-Brad

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad Huber
Sent: Thursday, June 03, 2010 10:02 AM
To: 'OpenSceneGraph Users'
Subject: [osg-users] osgText issue

 

Cedric (or anyone else),

 

I'm running in to a similar issue to what is described here:
http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15610.html
a long time ago by Cedric Pinson.

 

I searched around in the forum archives and didn't see any resolution to
this issue nor did I find anything else similar.  Did you ever find a
solution to this problem?

 

The way it manifests for me is that there is an osgText object in the
visible scene but it doesn't show until I zoom the camera in on it.  Then it
appears and if I zoom the camera back out it sticks around.  It should be
showing the whole time.

 

 

Thanks

-Brad

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


Re: [osg-users] osgText issue

2010-06-03 Thread Brad Huber
It looks like for some reason my screen aligned, screen sized text is
getting small feature culled under certain circumstances.  My small feature
cull is set to the default (2 pixels) and my text is definitely larger than
2 pixels (when it does show).  When I disable small feature culling the text
always shows correctly.

 

I'm still not sure why this is happening but is it possible that it is using
the world size of my drawables for culling rather than the actual screen
size?  Also, I'm not sure why this is an intermittent problem.  (ie text
doesn't show then I zoom in and it shows, then zoom back out and it still
shows).

 

Thoughts?

 

Thanks

-Brad

 

From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brad Huber
Sent: Thursday, June 03, 2010 10:02 AM
To: 'OpenSceneGraph Users'
Subject: [osg-users] osgText issue

 

Cedric (or anyone else),

 

I'm running in to a similar issue to what is described here:
http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg15610.html
a long time ago by Cedric Pinson.

 

I searched around in the forum archives and didn't see any resolution to
this issue nor did I find anything else similar.  Did you ever find a
solution to this problem?

 

The way it manifests for me is that there is an osgText object in the
visible scene but it doesn't show until I zoom the camera in on it.  Then it
appears and if I zoom the camera back out it sticks around.  It should be
showing the whole time.

 

 

Thanks

-Brad

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


Re: [osg-users] osgText issue

2010-01-13 Thread Jean-Sébastien Guay

Hi Nick,

I am trying to write some more sophisticated input control on top of 
osg. The one in osgWidget::Input is ok but I am to get it more feature 
rich. Now, I have all the code almost done, and I come accross one issue:


I can't really help except to tell you that Jeremy Moles who wrote 
osgWidget came across this issue when writing osgWidget::Input, and 
posted here, and at that time no one had any help to offer. I hope you 
can find a way to do what you want, and then improve osgWidget::Input 
with that functionality!


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgText issue

2010-01-13 Thread Jean-Sébastien Guay

Hi Nick,

one thing I dont like on osgWidget::Input is how inefficiently works 
with the text so I wrote my own


Do you have the time to try and improve osgWidget::Input? If you find it 
inefficient chances are others will too (for example me :-) I will 
probably use it in the near future), but I think it's just not being 
used a lot by other OSG users yet.


Another benefit to you is that if you can improve osgWidget::Input to 
the point where you can use it yourself (instead of writing your own 
widget) then maintenance of the code shifts and you have less code to 
maintain on your side...


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osgText issue

2010-01-13 Thread Trajce Nikolov
 Do you have the time to try and improve osgWidget::Input?
yes and now :-). I have time at nights from home, so that was my idea as
well to put what I have come up with into the distribution. Also, the thing
I wrote can be easily extended into text editor - multi line input.

I have some plans to work on osgWidget in the near future, once the funding
gets going :)

Nick

http://www.linkedin.com/in/tnick
Sent from Devlet, Ankara, Turkey

On Wed, Jan 13, 2010 at 4:24 PM, Jean-Sébastien Guay 
jean-sebastien.g...@cm-labs.com wrote:

 Hi Nick,


  one thing I dont like on osgWidget::Input is how inefficiently works with
 the text so I wrote my own


 Do you have the time to try and improve osgWidget::Input? If you find it
 inefficient chances are others will too (for example me :-) I will probably
 use it in the near future), but I think it's just not being used a lot by
 other OSG users yet.

 Another benefit to you is that if you can improve osgWidget::Input to the
 point where you can use it yourself (instead of writing your own widget)
 then maintenance of the code shifts and you have less code to maintain on
 your side...


 J-S
 --
 __
 Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.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] osgText issue

2010-01-13 Thread Jean-Sébastien Guay

Hi Nick,

I have some plans to work on osgWidget in the near future, once the 
funding gets going :)


Excellent, I just wanted to make sure people like you and me who have 
the need and the will to improve it will continue to do so and not just 
develop things in isolation. :-)


Thanks,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org