Hi Xabi,
On Fri, 2005-09-02 at 18:00 +0200, etche xabi wrote:
> Hello,
> As i can see on the tutorial of the picking,
> with the intersectaction , we shoud get the matrix of
> the object picked with the
> act->getHitObject()->getToWorld(m).
>
> but actually i 've got everytime the identity matrix.
>
> because i want to get the matrix of the object on the
> camera view to put a explaining text on.
>
> Any ideas?
Do do that you need to incorporate the matrix of the Camera
(Camera::getWorldToScreen()) and multiply it with the to toWorld matrix
of your object.
But if you're picking, you have the position on the screen anyway, so
I'm not sure what exactly you're trying to do.
Yours
Dirk
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users