![]() |
#2
|
|||
|
|||
Yes, the highlighter module has an outline object that you can add models to directly:
Code:
import viz import viztask viz.setOption('viz.display.stencil',1) viz.go() environment = viz.addChild('sky_day.osgb') soccerball = viz.addChild('soccerball.osgb',pos=[-0.5,1.8,2]) basketball = viz.addChild('basketball.osgb',pos=[0,1.8,2]) volleyball = viz.addChild('volleyball.osgb',pos=[0.5,1.8,2]) items = [soccerball,basketball,volleyball] from tools import highlighter outline = highlighter.Outline() def outlineTask(): while True: for item in items: outline.add(item) yield viztask.waitKeyDown(' ') outline.remove(item) viztask.schedule( outlineTask() ) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble picking text3d objects | Salvar | Vizard | 4 | 12-01-2010 03:07 PM |
Not drawing invisible objects | sleiN13 | Vizard | 9 | 11-23-2010 09:27 AM |
Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 03:09 AM |
Lightwave objects rotation problem | hosier | Vizard | 6 | 02-13-2009 12:04 PM |
Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 11:01 AM |