Hi Gianni,
very briefly for triangle based geometry with VBO:
osgUtil::LineSegmentIntersector::Intersections intersections;
if (computeIntersections(view, ea, intersections) )
{
const osgUtil::LineSegmentIntersector::Intersection
intersection = *(intersections.begin());
Hi All,
I have a surface where a user can pick points. As suggested I used a Geode with
Geometry built with osg::PrimitiveSet::POINTS and verteices. Then I used
PointSprite to show an image on each point (but I think this is not really
important).
Now I need to drag points with the mouse.
Hi Gianni,
years ago whan I was working on a 3D editor I faced similar challenge. I
solved it with selection buffer, where I had two representation of the
model - one for fast rendering, when you obviously don't pick or
manipulate, so your model with osg::PrimitiveSet::POINTS will represent
this,
Hi Gianni
Hi All,
I have a surface where a user can pick points. As suggested I used a Geode with
Geometry built with osg::PrimitiveSet::POINTS and verteices. Then I used
PointSprite to show an image on each point (but I think this is not really
important).
Now I need to drag points with the
Hi Sebastian,
thank you very much for your hint. I will give a look at the
LineSegIntersector.
Cheers,
Gianni
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61972#61972
___
osg-users mailing list
5 matches
Mail list logo