Thank you,

I will experiment with the latter option (as the first one is currently
already working with osg 2.8.2).

I bet this question will be repeated in the future.. ;-)

cheers,

René

2010/2/1 Paul Martz <[email protected]>

> René Molenaar wrote:
>
>> Thanks Paul,
>>
>> It seems to me that I would need a similar convenience routine that
>> creates GL_LINE_... primitives for arbitrary geometry.
>> The thing is a lot of fe-models still use quads, end-users expect to see
>> quads for their fe-models.
>>
>
> In general, then, I'd advise you to stick to GL1/2 and use GL_QUADS
> PrimitiveSets in Geometry-type Drawables, and GL_LINE polygon mode.
>
> Or, knowing that all modern graphics hardware draws a quad as two
> triangles, the other way to handle this would be to keep two representations
> of your model, one for fill, and one for line. They could easily share the
> same vertex data, so this should not consume a substantial amount of
> resources.
>
> So you have many options available to you.
>
>   -Paul
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to