Hi Xabi,

On Mon, 2005-09-05 at 11:51 +0200, etche xabi wrote:
> Yes i have the position of the mouse of the object,
> but i want the position of the object on the scene.
> 
> so i got the act->getHitPoint(), but it's the same
> that the line.getPosition().

That can only happen if t=0.

> What i don't understand is if i hit two different
> object i have the same getPosition but a different
> Orientation.
> and so the same act->getHitPoint().

That's because the line.getPosition() is the eye point, which doesn't
necessarily move. But getting that as the act->getHitPoint() means that
t = 0.

Did you make sure that you actually hit something (i.e. act->didHit() ==
true)?

I'm still not quite sure what you want to accomplish, i.e. why you need
the on-screen position of the hit point. To draw 2D annotation text the
2D positions should be fine, and to draw 3D text the 3D world position
is the most appropriate.

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

Reply via email to