Re: [osg-users] OSG-GLSL triangle adjacency

2017-07-21 Thread Sebastian Messerschmidt
Hi Nabil, Thank you Sebastian. So If i set the DrawArrays mode of the PrimitiveSet, does it suffice? Otherwise, is it easy to implement? Sorry but i'm newby in OSG. Can you elaborate on this? Usually you need to set the program-parameter for output: GL_GEOMETRY_INPUT_TYPE and simply pass yo

Re: [osg-users] OSG-GLSL triangle adjacency

2017-07-21 Thread Nabil KHALIFA
Thank you Sebastian. So If i set the DrawArrays mode of the PrimitiveSet, does it suffice? Otherwise, is it easy to implement? Sorry but i'm newby in OSG. On 21 July 2017 at 09:36, Sebastian Messerschmidt < sebastian.messerschm...@gmx.de> wrote: > > > Hi Nabil, > >> Hello, >> I'm using geometry s

Re: [osg-users] OSG-GLSL triangle adjacency

2017-07-21 Thread Sebastian Messerschmidt
Hi Nabil, Hello, I'm using geometry shader with OSG to do some operations on mesh using GPU. When i use /triangles_adjacency/ in the input layout, my shader crashes. I tried with /layout(triangles) in/ and it's running well. Is there any configuration in OSG that i should use, or a pre-proce

[osg-users] OSG-GLSL triangle adjacency

2017-07-20 Thread Nabil KHALIFA
Hello, I'm using geometry shader with OSG to do some operations on mesh using GPU. When i use *triangles_adjacency* in the input layout, my shader crashes. I tried with *layout(triangles) in* and it's running well. Is there any configuration in OSG that i should use, or a pre-processing on the m