View Single Post
  #4  
Old 03-02-2011, 12:47 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
For headlights, using the projector plugin will give the best effect. Check out this code and the attached .jpg

Code:
import viz
viz.go()

model = viz.add('tankmaze.wrl')

import projector

left = projector.add(viz.add('spotlight.bmp'))
left.border(0.3,0.3,0.3)
left.translate(-1,1.8,0)
left.affect(model)

right = projector.add(viz.add('spotlight.bmp'))
right.border(0.3,0.3,0.3)
right.translate(1,1.8,0)
right.affect(model,2)

viz.link(viz.MainView, left)
viz.link(viz.MainView, right)
Attached Images
File Type: bmp spotlight.bmp (48.1 KB, 671 views)
__________________
Paul Elliott
WorldViz LLC
Reply With Quote