![]() |
#1
|
|||
|
|||
![]()
hi
I changed mouse pointer as duckcourt example. I need to use viz.pick but I can not. is there way to solve this problem? thank you all |
#2
|
|||
|
|||
Can you post some example code that's shows your problem?
|
#3
|
|||
|
|||
I meant I want to change cursor shape. if I link a object to mouse pointer, when I use viz.pick, that object has been returned.
|
#4
|
|||
|
|||
The following code links an object to the mouse position and correctly returns the picked object.
Code:
import viz viz.go() viz.link( viz.Mouse , viz.addTexQuad(viz.SCREEN,texture=viz.add('crosshair.png')) ) viz.mouse(viz.OFF) viz.mouse.setVisible(viz.OFF) court = viz.add('court.ive') male = viz.add('vcc_male.cfg',pos=[-1,0,5],euler=[180,0,0]) male.state(1) female = viz.add('vcc_female.cfg',pos=[1,0,5],euler=[180,0,0]) female.state(1) def getPicked(): object = viz.pick() if object == male: print 'male' elif object == female: print 'female' elif object == court: print 'court' vizact.onmousedown(viz.MOUSEBUTTON_LEFT,getPicked) |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Warning mouse() -> Set mouse() of window | johannes2 | Vizard | 1 | 08-19-2010 02:11 PM |
how to remove velocity when mouse is disabled? | jvacare1 | Vizard | 2 | 02-18-2010 10:25 AM |
Navigating an avatar using mouse position(2D) in 3D environment | james007 | Vizard | 1 | 10-16-2009 11:29 AM |
Laser Pointer Question (Again) | Elittdogg | Vizard | 5 | 09-08-2009 12:02 PM |
how to make the mouse pointer pain... | yak | Vizard | 0 | 05-30-2009 07:05 PM |