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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to