![]() |
|
#3
|
|||
|
|||
|
I think I didn't describe the problem clearly. Imagine I created a window:
Code:
UpperRightWindow = viz.addWindow()
UpperRightWindow.position (0.6, 1.0)
UpperRightWindow.size(0.4, 0.4)
UpperRightWindow.visible(0,viz.SCREEN)
RightEye = viz.add(viz.VIEWPOINT)
RightEye.eyeheight(0)
rightLink = viz.link(avatar.getBone('Bip01 Head'),RightEye)
UpperRightWindow.viewpoint(RightEye)
UpperRightWindow.clip(0.00001, 50000)
Code:
xres = 200 yres = 200 size = (xres, yres) for x in xrange(xres): for y in xrange(yres): xNorm = x/(xres*1.0) yNorm = 1-y/(yres*1.0) intersect = UpperRightWindow.pick(True, viz.WORLD, pos = [xNorm, yNorm]) if intersect.valid == True: print "pixel " + str(x) + "," + str(y) + "," + intersect.name + "," + str(intersect.point) else: print "no object at " + str(x) + "," + str(y) Am I doing anything wrong? Best, Omid Quote:
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Documentating function names | aaThomas | Vizard | 5 | 05-15-2007 09:50 AM |
| Do you know how to send a value for 'pool' to the onActionEnd function? | ghazanfar | Vizard | 1 | 03-22-2007 10:25 AM |
| timers and director function | Jerry | Vizard | 1 | 06-22-2006 09:47 AM |
| node3d.center function | tavaksai | Vizard | 3 | 08-13-2004 11:05 AM |
| The error window that couldn't | FlyingWren | Vizard | 2 | 12-02-2003 08:23 AM |