Bob, Besides Alistair's suggestion, you could also move your points toward the viewer using one of the following techniques:
1. Draw your points as polygons (making each point a polygon vertex) and configure the polygons to draw as points using the osg::PolygonMode state attribute. This technique could also be used for your lines using line mode of polygon drawing but you're pretty much restricted to line loops unless you fake it by overlapping your lines. You probably also want to disable back face culling for these polygons. 2. Compress the depth range using setRange(0,0.99) of the osg::Depth state attribute. Adjust the second parameter to get the desired offset. This is probably the least intrusive change. To get a uniform offset at all depth ranges, you should use the same magnitude depth range for the rest of your model, but by changing the first value instead of the second. (i.e. setRange(.01,1.0) if you use .99 as the high value for the points' depth range) 3. Change the projection matrix. This requires using a different camera in OSG so may not be worth the effort. A custom state attribute would work better, but you would have to be careful of interactions with other cameras in the scene that set the projection matrix themselves. Regards, Mark On 7/19/2012 7:32 AM, Bob Slobodan wrote:
No one has a clue ? I've been trying to solve this problem for a while now and I can't figure out a way to display my vertices properly. Thanks anyway ! Cheers, Bob ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48932#48932 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

