[osg-users] Draw geometry that keeps its size in screen even with user manipulation (scaling, etc)

Bruno Oliveira bruno.manata.oliveira at gmail.com
Mon Nov 21 07:08:17 PST 2016


Hello,

I am drawing some basic shapes/geometries (in this case, some rectangles or
circles), but need them to have fixed size in screen pixel coordinates,
even when the user manipulates the scene.

For instance, I want to draw rectangles that are 10-pixel wide, and keep
these 10 pixels even when the user zooms in or zooms out the scene.

How can I do this?


( I think this can't be accomplished with osg::Transform::ABSOLUTE_RF,
since I want the shapes to translate/rotate when user manipulates the scene)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161121/799638d7/attachment-0002.htm>


More information about the osg-users mailing list