Hi Andres,

I must leave you to your own now and the other from the community that know
the specifics of the trackball code. But want to encourage you to read the
code understand it and maybe do mods based on your need - that is actually
how we all learn osg, by reading it :-). You are definitely on good track.

If you really really get stuck then I might spend some hours to read the
code with you, but this is rather simple so I believe you will find solution

Cheers,
Nick


On Tue, Jun 24, 2014 at 1:14 PM, Andrés Barrionuevo <[email protected]>
wrote:

> Hi Trajce!
> Thanks for your help.
>
>
> I've been browsing the manipulator's source code and found something
> interesting: the SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT flag.
>
> If I understand correctly, having this flag set will make that if zoom in
> the view, the camera will update its position on each scroll.
>
> Wouldn't this do the same as what you suggested, setting the home position?
>
> Now, for whatever the reason it may be, the
> setCenterByMousePointerIntersection function always return false. The
> intersection test is done with a LineSegmentIntersector, but it finds zero
> intersections.
>
> This has happened to me before when I was trying to achieve point picking,
> following the example in the Beginner's Guide. Changing the
> LineSegmentIntersector to a PolytopeIntersector did the trick.
>
> My camera was created using the setProjectionMatrixAsPerspective method.
>
> ...
>
> Cheers!
> Andrés
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=59870#59870
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to