|
#1
|
|||
|
|||
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)
__________________
Paul Elliott WorldViz LLC |
#2
|
|||
|
|||
Thanks for the reply, I really do appreciate it - that effect is really quite cool, but sadly, it isn't the viewpoint I was looking for.
The basic paradigm here is that I want individuals to make judgements based on the speed at which vehicles are travelling in night-time conditions. In the attachments, you will see that in Screen Shot 1 - the car appears in full light (although the scene should actually be dark) and in Screen Shot 2, the car appears to be dark (which is correct) - but that is a different issue. Basically (as Screen Shot 3 demonstrates) as the vehicles are approaching the observation point (they are only visible for 0.75s) the light eminating from the headlights onto the group seems to flicker - as if it is lighting up a particular square and then not the next and then coming back on again. Is there a way that I can use this plug in here? Once again, thanks for your time. |
#3
|
|||
|
|||
Instead of linking the projector to the mainview, position it high and point it down.
Code:
light.setPosition([0, 3, 0]) light.setEuler([0, 90, 0])
__________________
Paul Elliott WorldViz LLC |
|
|
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 |