Hi,
i have got the problem with position line - Intersector, more informations in
part of the code:
(the scene is only rectangle face, it's z=0.0f)
1) creating x,y,z position line:
osg::Vec3f v3f_start(33.0f, -23.0f, 10.0f); //init position ( start )
osg::Vec3d v3f_end(33.0f, -23.0f, -5.0f);
Hello Petr,
4) Update position line
[...]
5) Check intersect
if ( intersectorGroup-containsIntersections() )
{
...
intersection.getWorldIntersectPoint();
//interscetion point is still the same(!) 33.0f, - 23.0f, 0.0f
//i thought that correct point must be 33.0f, 23.0f, 0.0f because
Thanx mery much Skylark,
here is the correct code, the Blue color is update.
Code:
[color=green]//positions[/color]
osg::Vec3f v3f_start(33.0f, -23.0f, 10.0f); [color=green]//init position (
start )[/color]
osg::Vec3d v3f_end(33.0f, -23.0f, -5.0f); [color=green]//init
Hello Petr,
Thanx mery much Skylark,
here is the correct code, the Blue color is update.
So I assume it works for you now?
J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
Skylark, yes, you can see result here:
[Image: http://img24.imageshack.us/img24/5431/22541985.th.jpg ]
(http://img24.imageshack.us/my.php?image=22541985.jpg)[/img]
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=12000#12000
5 matches
Mail list logo