Hi Renan,

Are you trying to position your sphere in 3d coordinates or in 2d
coordinates with orthogonal projection ?

/emre

On Jan 6, 2008 1:35 PM, Renan Mendes <[EMAIL PROTECTED]> wrote:
> Hi everyone.
>
>       In my application, when I press the 'p' key, when no shape is
> selected, I create a small ShapeDrawable sphere and add it to the root node.
> I'd like to be able to create that shape right under the mouse cursor . I've
> tried using the coordinates from ea.getX() and ea.getY(), but they are not
> the same as my world coordinates. Which is logically fine, since they can't
> coincide when my view is rotated from the original position. Is there a way
> to perform this action?
>
>                    Thanks,
>
>                        Renan M Z Mendes
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



-- 
Emre Koc
Sabanci University
Faculty of Engineering and Natural Sciences
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to