View Full Version : point3 to pixelcoordinates?
Rivendale 01-11-2005, 04: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
|
|
Rivendale
01-12-2005, 12:09 AM
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
CGTalk Moderation
01-20-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.