[osg-users] Why is setTexCoordArray(0, texcoords) needed if array is modified in-place

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Thu Jul 7 05:25:47 PDT 2016


I think it was something like tcoords->getVertexBufferObject()->dirty();

On Thu, Jul 7, 2016 at 2:15 PM, Sebastian Messerschmidt <
sebastian.messerschmidt at gmx.de> wrote:

> Hi Florian,
>
>> Hi Sebastian, thanks for the answer.
>>
>> 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.
>>
>> My custom geometry class (MyNameSpace::MyGeometry) does indeed
>>
>> Code:
>> setDataVariance(osg::Object::DYNAMIC);
>> setUseDisplayList(false);
>> setUseVertexBufferObjects(true);
>>
> Try the setDataVariance on the PrimitiveSet.
>
>
>> in its constructor.
>>
>> Best regards,
>> Florian
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=68038#68038
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160707/2daca7ca/attachment-0003.htm>


More information about the osg-users mailing list