Notifications
Clear all

[Closed] pos in world space TO screen point2 value

hi all :
i m in top view . actived . then i get a object`s pos , for example : [-100,11,11]
how to translate this pos value to screen point2 value ? it is a mouse pos 2d value . from topleft is [0,0] . all value should be + value .

eg : [-100,11,11] >>>> [20,30] in view .

thanks for help .

3 Replies

 gw.setTransform(Matrix3 1)
[b][b]gw[/b][/b].[b][b]wTransPoint[/b][/b] $.transform.row4

I do not undertand gw very well . But this codes above works well for me.

see this post from i thread I started on the same topic some time ago. dont forget to use gw.setTransform (matrix3 1) before calling gw.wTranspoint()

thanks . buddy . it works ! .
many thanks .