[osg-users] [osgPlugins] Synchronize FFMPEG Video with Clock

2018-08-07 Thread Jochen Schwitzer
Hi,

i want to synchronize a video, that i want so play in a seperate window with a 
clock I have. So when it pauses, resumes, speeds up, slows down etc. I want the 
video to do the same.

Can anybody help me as to how I could do that? Especially the synchronization 
of the speed

Thank you!

Cheers,
Jochen

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74476#74476





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] LineSegmentIntersector doesn't give accurate Coordinates

2018-06-21 Thread Jochen Schwitzer
Hi,

fixed the issue. I was using a defect Drawer. Thanks anyway

Thank you!

Cheers,
Jochen

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74103#74103





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] LineSegmentIntersector doesn't give accurate Coordinates

2018-06-21 Thread Jochen Schwitzer
Hi Robert,

thanks for your quick response.

so here's what I'm doing:


Code:

if (viewer)
{
returnValue =
ReactOnLCSPointClick(
*viewer, i_eventAdapter.getX(), i_eventAdapter.getY());
}




I tried as well with getXnormalized() and Intersector::PROJECTION but then it 
was even more far off


Code:
osg::ref_ptr intersector = new 
osgUtil::LineSegmentIntersector(
osgUtil::Intersector::WINDOW, i_clickXCoordinate, i_clickYCoordinate);

osgUtil::IntersectionVisitor iv(intersector.get());

iv.setTraversalMask(~0x1);

io_viewer.getCamera()->accept(iv);

 osgUtil::LineSegmentIntersector::Intersections intersections = 
intersector->getIntersections();

for (osgUtil::LineSegmentIntersector::Intersections::const_iterator i = 
intersections.begin();
i != intersections.end(); ++i)
{
if (nodePath.back()->getName() == "xxx")
{

osg::Vec3 lcsIntersectPoint = i->getLocalIntersectPoint();
float x = lcsIntersectPoint.x()
float y = lcsIntersectPoint.y();
returnValue = true;
break;
}
}



I draw a point at the coordinates i get in the end

Thank you!

Cheers,
Jochen

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74102#74102




Attachments: 
http://forum.openscenegraph.org//files/capture_252.png


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org