Hi, Lalit

You can transform point to screen coordinates by multiplying with correct 
camera view matrix(if your coords in world space) and camera perspective 
projection matrix. Cant help much with finding nearest points tho.

Cheers, Sergey.

02.05.2011, 14:39, "Lalit Manchwari" <[email protected]>:
> Thanks for reply,
>
> I have some another question.....
>
> Using osgUtil::PolytopeIntersector we get the x, y, and z coordinates at 
> current mouse position. Can I do opposite of it, means if I have x, y and z 
> coordinate then, can I calculate the screen coordinate. Actually I have to 
> find points around a given coordinate.
> Or is there another method to find the nearest points around a given point 
> (range is also given)
>
> Thank you!
>
> Cheers,
> Lalit
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=38919#38919
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to