Hi OSG developers!
I'm trying to draw antialiased lines with OSG ver .2.2, but I'm having
problems.
This is my code:
osg::ref_ptrosg::Hint antialiasHint = new
osg::Hint(GL_LINE_SMOOTH_HINT, GL_NICEST);
StateSet-setAttributeAndModes(antialiasHint.get(),
osg::StateAttribute::ON);
Hi Gianluca,
The OSG just passes state along to the OpenGL, the glHint support is
just another means to setting OpenGL state. How the OpenGL driver
responds to the that State is down to the driver/hardware. In the
case of line smoothing I believe that you still need to enable
GL_LINE_SMOOTH
Ciao Gialluca,
you absolutely need to enable GL_LINE_SMOOTH and GL_BLEND and to setup
a blending function like for example osg::BlendFunc(GL_SRC_ALPHA,
GL_ONE_MINUS_SRC_ALPHA). The same goes for GL_POINT_SMOOTH.
Michele
On Thu, Apr 24, 2008 at 12:20 PM, Gianluca Natale
[EMAIL PROTECTED] wrote:
-users] antialiased lines
Hi Gianluca,
The OSG just passes state along to the OpenGL, the glHint support is
just another means to setting OpenGL state. How the OpenGL driver
responds to the that State is down to the driver/hardware. In the
case of line smoothing I believe that you still need
4 matches
Mail list logo