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

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Wed Sep 28 06:52:09 PDT 2016


Just pointing out, that you might have been lucky:
Your example is crashing on my machine, due to the empty primitive-sets 
;) There isn't even picking involved.
>
>
> Hi Gianni.
>> Hi Sebastian,
>> in attachment you can find a movie of what I implemented with primitive sets. That's exactly what I need.
>> The "road" is initially gray. Then the user choose a color (pushing in my example 1,2,3 or 4 key) and picking the road surface triangles are coloured with the current color.
>>
>> Since you said what I implemented with primitive sets is not the right way to do, then I'm trying to change my mind using the approach you suggested (i.e. textures) to reach exactly the same behaviour. In this case I could use a "monochromatic" image (to mimic the behaviour of my example) or a nice texture loaded from file. A nice texture anyway is not a must.
> I just think that it is rather complicated* and not a very scalable 
> solution in my eyes . Of course you can go your way. But it seemed, 
> that you somehow had to rely on very specific order of primitive sets 
> etc. That is why I presented some ideas how to tackle it differently 
> and maybe less convoluted.  I simply wouldn't have preferred this 
> solution.
>
>> In attachment you can find also the example code I run to record the movie.
> Thanks, so basically that is what you meant when you said "monochromatic".
>
>
> Cheers
> Sebastian
>
>
> *complicated because you're happily jumping between the primitive-sets 
> on something that looks like a bold assumption to me. Maybe I'm 
> overlooking something.
>> Hope this helps,
>> Gianni
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=68809#68809
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160928/78de1b9c/attachment-0003.htm>


More information about the osg-users mailing list