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

2016-09-20 Thread Gianni Ambrosio
Hi Nick, thanks for the support but even with that line I can't see the result I expected. Basically, when the application starts, if I select a green triangle then it should be shown in red, while now it ramains green. (please see attached movie). In fact the triangle after picking is moved fro

Re: [osg-users] Scale-invarient lighting

2016-09-20 Thread Dave Rush
Sorry for the slow response, I've worked it out. I had to: - Add normals to all points - Add directional lighting from multiple directions (6 in fact), so that the lighting is fairly omnidirectional ...and the points are now showing correctly. Thanks for the help! Dave -- Read

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

2016-09-20 Thread Trajce Nikolov NICK
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

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

2016-09-20 Thread Gianni Ambrosio
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.openscenegrap

Re: [osg-users] Feedback/guidance sought on move of osgQt out into it's own project/repository

2016-09-20 Thread Mathieu MARACHE
It is a sensible but not very flexible way to answer the issue imho. I could propose the "conan" way like we do internally (upload versioned binary packages to a public repo). But I will make a proposal first. ___ osg-users mailing list osg-users@lists.op

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

2016-09-20 Thread Trajce Nikolov NICK
Hi Gianni, if you make Qt free example I can have a look On Tue, Sep 20, 2016 at 12:33 PM, Gianni Ambrosio wrote: > Hi All, > I'm attaching the updated code where you can see the problem: even if I > call dirty() for primitive sets and dirtyBounds() on the related geometry, > the graphics is no

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

2016-09-20 Thread Gianni Ambrosio
Hi All, I'm attaching the updated code where you can see the problem: even if I call dirty() for primitive sets and dirtyBounds() on the related geometry, the graphics is not updated. Cheers, Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=

Re: [osg-users] Shader, OpenGL context and Qt

2016-09-20 Thread Valerian Merkling
Hi, After a few more days of search, I can resume my problem in a more simple way : I've a set of osg::Program. Each Widgets has its own contextID, and contextID can be re-used. The first time I load the osg::Program "my_program1" on a view with a contextID of 1, it's ok. If then I load "my_p

Re: [osg-users] Feedback/guidance sought on move of osgQt out into it's own project/repository

2016-09-20 Thread Jordi Torres
Hi Mathieu, > If I want to compile osgQt using travisCI or appveyor I need to pull also > osg's code to compile it ? > Maybe we could upload the OSG succesful builds in travis CI to docker. And then pull it from osgQt build. I will need to figure out how to do this but it cuold be an option. Ch