I think the problem is that you are not enabling GL_BLEND. This is necessary when rendering smoothed primitives. So try adding setMode(GL_BLEND,osg::StateAttribute::ON), I think this will fix it.
-Farshid On Sun, Jun 29, 2008 at 11:14 PM, Crezy Elmo <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm wireframe rendering some models and I'd like to reduce the line width to > less than 1.0, but OpenSceneGraph doesn't seem to render the lines > differently when I set my osg::LineWidth object to any value less than 1.0. > It definitely makes the lines fatter when I increase the linewidth, but the > minimum line width it seems to render is 1.0. > > Also, OSG seems to ignore my attempt to enable line smoothing via: > setMode(GL_LINE_SMOOTH, > osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON). > > I can render fractional line widths (0.1 for example) in my own > drawImplementations if I set it via glLineWidth and it works--the lines get > super thin like I want. Also, I can enable line smoothing this way. > However, I'd prefer to do it the OpenSceneGraph way and I just don't know why > it's not working. :( > > Thanks in advance, > > crezyelmo > _________________________________________________________________ > Introducing Live Search cashback . It's search that pays you back! > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

