On Wed, Oct 17, 2012 at 9:18 AM, Tueller, Shayne R Civ USAF AFMC 519
SMXS/MXDEC <[email protected]> wrote:

> Take a look at the "createAxis()" in the osgbillboard.cpp file for the
> osgbillboard example. There's code in there to set linewidth...
>
>
  Rather than altering the model (which break displaylists or other
compiled geometry representations and requires DYNAMIC datavariance) I
recommend re-drawing the highlighted part one more time, after the rest of
the model has drawn itself. You can usually use a nodemask to perform this
trick. You may wish to clone the original entity, set the line width wider,
and draw that clone, so you don't disrupt the state of the original.

  Set your Z-buffer depth test to GL_LEQUAL so that re-drawing the same
part actually draws it again, over top of the copy already represented in
the Z-buffer.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. [email protected]
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio •
LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to