![]() |
#1
|
|||
|
|||
viz.vertex coordinates
Hello,
I want to create a vertex at the mouseclick position, but I don't know how to do it. If I create two vertex points: Code:
viz.startlayer(viz.POINTS) viz.pointsize(10) viz.vertexcolor(viz.RED) viz.vertex(0,0,10) viz.vertex(1,1,10) line = viz.endlayer() Code:
print viz.mouse.getPosition() The vertex are at [0,0,10] and [1,1,10] and my mouseposition shows [0.6,0.3] and [0.5,0.2]! Are the vertex coordinates world coordinates? Or what means 0,0,10? And what are the mouseposition coordinates? What's the reason for this difference. I want to create vertex at the mouseclick position. Can anybody help me - please. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting object position in screen coordinates | v-Salik | Vizard | 1 | 10-19-2007 03:41 PM |
getPosition coordinates | AlyssaK | Vizard | 4 | 01-18-2007 04:19 PM |
Locating the Coordinates of Vertices for on the fly objects | shivanangel | Vizard | 4 | 10-30-2006 08:28 PM |
Translate HEAD_POS to absolute coordinates? | vrhelp2004 | Vizard | 1 | 05-18-2004 04:53 PM |