I don't see why picking a point would be a problem. Use the
PolytopeIntersector. Have you read the Quick Start Guide?

Glad to hear AutoTransform did the trick.

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hagen
Sent: Wednesday, April 22, 2009 3:01 AM
To: [email protected]
Subject: Re: [osg-users] 3D Point to ScreenSpace Coordinates

Hello again,

> 
> It sounds like you are trying to draw a 2D element at the same window 
> position as a 3D object. Is this correct?
> 

Yes, thats exactly what Im trying to achieve.
I have POINTS (not objects) in 3D Space that have to be labeled.
And I want them to be clickable.
As points have no volume thats a bit of a problem.
So I thought I add a sphere as apoint representation to the scene. But the
clcikable sphere should of yourse always have the same size no matter how
far from the camera. So this idea was born.


> 
> You'd need two Camera nodes for this, one with your 3D projection and 
> one for 2D.
> 

This is what I was doing.
And I computed the projection by hand and wanted to give the coords to my 2D
objects  with a event callback.
But the coords are not exact somehow, so the point is always just very near
the supposed point.




> 
> Another option would be to look at the AutoTransform node.
> 


Wow, I guess this is exactly what I was looking for.
Thx, Ill try it out

Hagen

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





_______________________________________________
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