#1
|
|||
|
|||
Information associated with a model
Can I associate information to a model? so when I go in, this information is displayed
I use sensor proximity. #Create proximity manager manager = vizproximity.Manager() manager.setDebug(viz.ON) #Add main viewpoint as proximity target target = vizproximity.Target(viz.MainView) manager.addTarget(target) #MODEL newTarget=viz.add('model/objeto.dae', pos=[0,0,0]) newTarget.collideBox() newTarget.alpha(0.8) sensor = vizproximity.addBoundingSphereSensor(newTarget,sca le=2) manager.addSensor(sensor) #ACTIVE SENSOR def EnterProximity(e): print "SHOW INFORMATION" #OFF SENSOR def ExitProximity(e): print "HIDDEN INFORMATION" |
Tags |
sensor proximity, viz.info |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access the vertices of a model | pankaj bansal | Vizard | 1 | 03-29-2013 07:02 PM |
Accesing different parts of model | pankaj bansal | Vizard | 1 | 12-30-2012 10:10 PM |
3ds Exported .IVE Model mirrors movement of Mainview | Felix | Vizard | 9 | 05-18-2012 09:17 AM |
Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 10:55 AM |
Model sizes | Pastscapian | Vizard | 15 | 10-07-2006 02:48 PM |