[osg-users] Getting world coordinates from screen coordinates
Werner Modenbach
Werner.Modenbach at texion.eu
Wed Jul 22 01:38:50 PDT 2015
Hi all,
please give me a little assistance.
I'm using geometry shaders for creating my objects during rendering.
That is why I can't use the picking via lineIntersection inside osg.
But I have a local proprietary structure containing my display objects and
I know how to calculate the "nearest" hit with a ray.
The only thing: I don't know how to convert screen coordinate (x,y,0)
x,y [0,1] to a coordinate in model space.
Doing so and the same with (x,y,1) should give me the 2 points defining
my ray for further local processing.
Any help appreciated.
Thanks
- Werner -
More information about the osg-users
mailing list