[osg-users] Highlighting Verts with a fixed screen size

Chris 'Xenon' Hanson xenon at alphapixel.com
Sat Apr 16 15:13:49 PDT 2011


On 4/15/2011 12:07 PM, Kevin Bentley wrote:
> I want to have a mode in my viewer where some verts in the scene are highlighted. I originally implemented this with a fixed size box positioned wherever I had a vert to highlight. 
> What I really want though is for the box to be the same size on the screen (so as you zoom in close to the vert you still see the box), or when you zoom out very far the box is still visible. 
> Any suggestions on how I should go about this?

  AutoTransform can help you keep an object fixed-size onscreen.

  Also, you could use some form of point sprites.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting.
    "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen



More information about the osg-users mailing list