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

2016-09-22 Thread Gianni Ambrosio
Hi Nick, the triangle shown in white has just being added to highlight the selection. We can discard it for a while. For that reason I completly removed the selection highlight in my example. Please see attached code. If you run the example and select a triangle pushing CTRL+LEFTMOUSE you will s

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

2016-09-22 Thread Sebastian Messerschmidt
Hi Gianni, Hi Nick, the triangle shown in white has just being added to highlight the selection. We can discard it for a while. For that reason I completly removed the selection highlight in my example. Please see attached code. If you run the example and select a triangle pushing CTRL+LEFTM

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

2016-09-22 Thread Gianni Ambrosio
SMesserschmidt wrote: > So basically you are raping the primitive sets to color the primitive? Yes, that's why at the beginning I asked help to suggest me the best way to implement this. Nobody replied so I found this way. SMesserschmidt wrote: > > That is certainly a complicated way in case y

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

2016-09-22 Thread Sebastian Messerschmidt
Am 9/22/2016 um 12:23 PM schrieb Gianni Ambrosio: SMesserschmidt wrote: So basically you are raping the primitive sets to color the primitive? Yes, that's why at the beginning I asked help to suggest me the best way to implement this. Nobody replied so I found this way. Maybe your questions

[osg-users] SingleThreaded leading to whole application just running on one core

2016-09-22 Thread Christoph Weiss
Hi, I've stumbled upon the following issue. Our renderer runs SingleThreaded because that what most Qt integrations seem to use, or else other issues arise. I'd be happy to change that of course. This makes the whole application run on just one core. It's still "multithreaded", as the loa

Re: [osg-users] SingleThreaded leading to whole application just running on one core

2016-09-22 Thread Pete Black
This is, bizarrely, by design. In single-threaded mode, OpenSceneGraph silently sets CPU affinity to a single core by default. Personally I think this is incredibly obtrusive on the programmer, and the reasons for this being default behaviour are terrible, but it is what it is. This is what I