<div dir="ltr">I think it was something like tcoords->getVertexBufferObject()->dirty();</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 7, 2016 at 2:15 PM, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Florian,<span class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sebastian, thanks for the answer.<br>
<br>
Calling texArray->dirty() does not seem to be enough, since my texture is not displayed. I can confirm that my shader is being applied though - it just doesn't seem to get the texture coordinates.<br>
<br>
My custom geometry class (MyNameSpace::MyGeometry) does indeed<br>
<br>
Code:<br>
setDataVariance(osg::Object::DYNAMIC);<br>
setUseDisplayList(false);<br>
setUseVertexBufferObjects(true);<br>
</blockquote></span>
Try the setDataVariance on the PrimitiveSet.<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
in its constructor.<br>
<br>
Best regards,<br>
Florian<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=68038#68038" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=68038#68038</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>