Re: [osg-users] Annotating large numbers of objects

2009-06-19 Thread Andrew Cunningham
In the end I rendered all 255 characters of  my chosen annotation 
font/style/size into 255 gl bitmaps, then use glBitMap to draw strings on the 
fly composing them from the character bitmaps

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





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


Re: [osg-users] Annotating large numbers of objects

2009-06-16 Thread Daniel Trstenjak

Hi Andrew,

On Mon, Jun 15, 2009 at 05:20:15PM +, Andrew Cunningham wrote:
 Any suggestions from those who have been there before??

I had exactly the same problem. I created a texture for each annotation
and mapped each texture on a quad. Good enough for my use case.



Greetings,
Daniel

-- 

   
 Daniel Trstenjak Tel   : +49 (0)7071-9457-264
 science + computing ag   FAX   : +49 (0)7071-9457-511
 Hagellocher Weg 73   mailto: daniel.trsten...@science-computing.de
 D-72070 Tübingen WWW   : http://www.science-computing.de/  

-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


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


[osg-users] Annotating large numbers of objects

2009-06-15 Thread Andrew Cunningham
Hi,
I need to label or annotate large numbers of 3D locations  with a short label 
like a number. Think possibly 100,000+ locations or nodes (for example, 
represented as small cubes). I naively used osg::Text to create labels and 
ended up consuming 100's of MB of memory. 
This seems like a case where I should perhaps derive my own drawable (or 
geode?) perhaps and draw things 'on the fly' rather than creating huge numbers 
of objects. The old trade-off of memory vs speed of drawing. Any suggestions 
from those who have been there before??


Thanks
Andrew

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





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


Re: [osg-users] Annotating large numbers of objects

2009-06-15 Thread Chris 'Xenon' Hanson
Andrew Cunningham wrote:
 Hi,
 I need to label or annotate large numbers of 3D locations  with a short label 
 like a number. Think possibly 100,000+ locations or nodes (for example, 
 represented as small cubes). I naively used osg::Text to create labels and 
 ended up consuming 100's of MB of memory. 
 This seems like a case where I should perhaps derive my own drawable (or 
 geode?) perhaps and draw things 'on the fly' rather than creating huge 
 numbers of objects. The old trade-off of memory vs speed of drawing. Any 
 suggestions from those who have been there before??

  I think a GLSL shader could do this on-the-fly efficiently. I think there's 
an example
of such a text shader in The Orange Book.

 Thanks
 Andrew

-- 
Chris 'Xenon' Hanson, omo sanza lettere  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
There is no Truth. There is only Perception. To Perceive is to Exist. - Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Annotating large numbers of objects

2009-06-15 Thread Andrew Cunningham
Hi Chris,
Thanks for the suggestion - I am backed into a corner a bit by the need to 
support access via  Windows RDC ( remote desktop connection) which works quite 
well for small/medium models but only supports basic OpenGL(1.1?) without 
shaders. Of course I can test for that and use an alternative approach.

Andrew

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





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