WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   ceiling lighted instead of floor (https://forum.worldviz.com/showthread.php?t=414)

perselletje 09-16-2005 06:01 AM

ceiling lighted instead of floor
 
I have a problem with the lights in my virtual room. I managed to create a light, but it shines upward, and I can't find a way to turn it around so it shines downward.

This is what I did:

mylight = lightNode.add(viz.LIGHT)
mylight.position(0,2,5)
mylight.direction(0,1,0)

Can anyone tell me how to turn the light so it shines on the floor instead of the ceiling?

Many thanks!!

farshizzo 09-16-2005 09:28 AM

Hi,

Try changing the position and direction of the lightnode instead. The following code will make the light shine directly downwards:
Code:

lightNode.translate(0,2,5)
lightNode.rotate(0,90,0)

mylight = lightNode.add(viz.LIGHT)



All times are GMT -7. The time now is 11:15 AM.

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