Thank you for your questions,   

Do you mean to  use this  setUseVertexAttributeAliasing(true) 

only in GL version that only supports shaders  ?  <br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">在2020年10月16日星期五 UTC+8 下午4:38:34<OpenSceneGraph Users> 写道:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr"><div>Hi ?</div><div><br></div><div>OpenGL and OSG strandles and old fixed function pipeline era and shaders.  You can select a pure shaders subset of OpenGL at compile time and runtime, and you can also toggle on/off some mappings the OSG provide between the GL2.x GLSL built in variables and osg_ equivalents useful for GLES2.x/GL3.x+.  <br></div><div><br></div><div>The scene graphs you build for each of these scenarios will need to be different - you can't use fixed function pipeline state with a GL version that only supports shaders.  I know nothing about your particular .ive but my best guess is that it's not compatible with the subset of OpenGL you selecting.<br></div><div><br></div><div>Robert.<br></div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 16 Oct 2020 at 03:55, OpenSceneGraph Users <<a href data-email-masked rel="nofollow">osg-...@lists.openscenegraph.org</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>env is system Win10 ,osg 3.6.4, osgearth 2.10.0,GTX1660 TI</div><div><br></div>Why is there an error in the model texture display when this function is turn on?<br><div><br></div><div><div> const int width( 800 ), height( 450 );</div><div>    const std::string version( "4.3" );</div><div>    osg::ref_ptr< osg::GraphicsContext::Traits > traits = new osg::GraphicsContext::Traits();</div><div>    traits->x = 20; traits->y = 30;</div><div>    traits->width = width; traits->height = height;</div><div>    traits->windowDecoration = true;</div><div>    traits->doubleBuffer = true;</div><div>    traits->glContextVersion = version;</div><div>    traits->readDISPLAY();</div><div>    traits->setUndefinedScreenDetailsToDefaultScreen();</div><div>    osg::ref_ptr< osg::GraphicsContext > gc = osg::GraphicsContext::createGraphicsContext( traits.get() );</div><div>    if( !gc.valid() )</div><div>    {</div><div>        osg::notify( osg::FATAL ) << "Unable to create OpenGL v" << version << " context." << std::endl;</div><div>        return( 1 );</div><div>    }</div></div><div><img alt="Q20201012125957.png" src="https://groups.google.com/group/osg-users/attach/3c21eb713e4ac/Q20201012125957.png?part=0.0.1&view=1" width="534px" height="310px"><br></div>

<p></p></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href data-email-masked rel="nofollow">osg-users+...@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1602989095596000&usg=AFQjCNE95XuLxy9TniNn8xZmy-iJQ0H4yA">https://groups.google.com/d/msgid/osg-users/8f6c8efb-d2ee-46f3-a85c-3957fea0c828n%40googlegroups.com</a>.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href data-email-masked rel="nofollow">osg-...@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org&source=gmail&ust=1602989095596000&usg=AFQjCNEbIZBKkHS1Tkd_M15rTCTzhijOcQ">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div>
</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/651b3432-80b6-4eb9-a047-eee2eec94b60n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/651b3432-80b6-4eb9-a047-eee2eec94b60n%40googlegroups.com</a>.<br />