WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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, 1189 views)
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lighting Question new_horizon Vizard 12 02-24-2011 08:11 AM
question about NVIDIA 3D vision Weihua An Vizard 5 08-02-2010 06:49 AM
Stereoscopic view question atamasan Vizard 2 03-09-2010 09:13 PM
how to invoke command line question billjarrold Vizard 2 01-11-2010 08:51 AM
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM


All times are GMT -7. The time now is 05:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC