Re: [osg-users] Manipulator and selection

2012-05-14 Thread Bob Slobodan
Thank you for the answers. I tried many different things with the depth test with different values for the far and near planes and different test function (LESS, LEQUAL, ...) but I couldn't get it to work. I finally decided to use the polygonOffset for the filled polygon and now at least I

Re: [osg-users] Manipulator and selection

2012-05-10 Thread Bob Slobodan
Hi, First of all, thank you for your answer. I took a look at osgscribe and I tried to do the same thing, but it doesn't really work. I tried many things but this is my last attempt: Code: geode = new osg::Geode; geometry = new osg::Geometry; osg::ref_ptrosg::Vec3Array v = new

Re: [osg-users] Manipulator and selection

2012-05-10 Thread Jason Daly
On 05/10/2012 07:21 AM, Bob Slobodan wrote: Hi, First of all, thank you for your answer. I took a look at osgscribe and I tried to do the same thing, but it doesn't really work. I tried many things but this is my last attempt: You may need to tweak the factor and units numbers for your

Re: [osg-users] Manipulator and selection

2012-05-10 Thread Jason Daly
OK, disregard everything I said about using osgscribe and Polygon Offset. Having just read the link I posted myself, I realized that glPolygonOffset only works for filled polygons and not lines or points. Sorry for the misdirection. Unfortunately, you'll have to come up with something a bit

[osg-users] Manipulator and selection

2012-05-09 Thread Bob Slobodan
Hi, I started to work with OSG last week and I have some issues. For my project, I need to navigate in a scene and select three types of objects : points, lines and surfaces. I created 3 class : surface, point and line with this kind of tree: Surface /\ Line

Re: [osg-users] Manipulator and selection

2012-05-09 Thread Bob Slobodan
I finally figured out what was the problem with the camera. It was just that I had really large coordinates (for example : 510, 510, 100). So I finally subtsracted an offset (510, 510, 0) to all my points and the manipulator now works just fine. It also solved part of the

Re: [osg-users] Manipulator and selection

2012-05-09 Thread Jason Daly
On 05/09/2012 07:34 AM, Bob Slobodan wrote: I finally figured out what was the problem with the camera. It was just that I had really large coordinates (for example : 510, 510, 100). So I finally subtsracted an offset (510, 510, 0) to all my points and the manipulator now