Notifications
Clear all
[Closed] point3 to pixelcoordinates?
Jan 11, 2005 4:23 pm
Hi, is it possible to get the point2 pixelcoordinates on the screen based on a point3 position in the world?
Should be possible since the other way around is.
CML
1 Reply
Jan 11, 2005 4:23 pm
Nevermind, I found the solution myself. It would be something like this for getting the screencoordinates for a vert:
gw.setTransform(Matrix3 1)
vertpos = polyop.getVert $ 24 node:$ --just a random vert on some object
m = gw.wTranspoint vertpos
screenpos = [m[1],m[2]]
CML
[size=2][/size]
[size=2]
[/size]