[osg-users] Why can't ive format model texture show when turn on setUseVertexAttributeAliasing(true)?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Oct 14 22:41:57 PDT 2020


env is system Win10 ,osg 3.6.4, osgearth 2.10.0,GTX1660 TI

Why is there an error in the model texture display when this function is 
turn on?

 const int width( 800 ), height( 450 );
    const std::string version( "4.3" );
    osg::ref_ptr< osg::GraphicsContext::Traits > traits = new 
osg::GraphicsContext::Traits();
    traits->x = 20; traits->y = 30;
    traits->width = width; traits->height = height;
    traits->windowDecoration = true;
    traits->doubleBuffer = true;
    traits->glContextVersion = version;
    traits->readDISPLAY();
    traits->setUndefinedScreenDetailsToDefaultScreen();
    osg::ref_ptr< osg::GraphicsContext > gc = 
osg::GraphicsContext::createGraphicsContext( traits.get() );
    if( !gc.valid() )
    {
        osg::notify( osg::FATAL ) << "Unable to create OpenGL v" << version 
<< " context." << std::endl;
        return( 1 );
    }
[image: Q20201012125957.png]

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201014/d19a3cfb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Q20201012125957.png
Type: image/png
Size: 566520 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201014/d19a3cfb/attachment-0001.png>


More information about the osg-users mailing list