Hello Pablo,
Pablo Carneiro Elias wrote:
> Hi. Is there a way of drawing things within the viewport using a
> glLogicOp(*GL_XOR*); like operator? I've found anything like this within
> the StateChunks classes...
glLogicOp is covered by OSG::LogicOpChunk.
> I need to render a 2d line over the viewport and the line must compose
> its white color with the background color using XOR operator....
hm, I don't think there is a foreground that does lines, but there is
PolygonForeground which draws a single GL_POLYGON with a given material.
Another alternative is to use a second viewport on top of your regular
one and have that render a scene with only the line seen through an
ortho camera.
Hope it helps,
Carsten
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users