[osg-users] different materials for a geometry and highlight

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Tue Sep 20 09:45:52 PDT 2016


Hi Gianni,

I give it a shot. Your code actually works. Only one little line to add
in doUserOperations - you should dirty the vertex buffer object

selVertices->dirty();
selVertices->getBufferObject()->dirty();  <--- this is the thing
 _selector->dirtyBound();

Cheers!
Nick


On Tue, Sep 20, 2016 at 4:18 PM, Gianni Ambrosio <g.ambrosio+osg at gmail.com>
wrote:

>
> Trajce Nikolov NICK wrote:
> > Hi Gianni,
> >
> > if you make Qt free example I can have a look
> >
>
> Sorry, this example "was" with Qt, now it is Qt-free. Just remove the
> includes on top: they are not used in this code.
>
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=68674#68674
>
>
>
>
>
> _______________________________________________
> 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/20160920/15ed7da2/attachment-0003.htm>


More information about the osg-users mailing list