Using a Spotlight as a Sun Node [SOLVED]

Hi,
Am I right in thinking, if I create a spotlight and set it to be the sun node in the environment settings, does that make the light come from a sky position relative to the spotlight rather thand the actual spotlight itself? What I have noticed is that say I set up a spotlight right in front of a window so it is shining in, that's fine. Then I create a primitve behind that, still fine, light is coming through the window. If I make the spot a sun node, window is now is shadow as though the spotlight is behind the primitve, even though it is still physically in front. I assume that this is the intended behaviour?
:-)
Post edited by dawnydawny on
Comments
Yes, that's how it works.
It's just the easier aternative to fiddle around with latitude/longitude and time settings.
It puts a sun in the direction of the light that you set as Sun Node, no matter how close the light is to the scene.
A sun close to your window would burn down your whole scene anyway ...
Kind regards, Eagle99
Ha ha, yes very true!
It does make perfect sense now I think about it, just when I set it up, suddebly everything went dark! A window eclipse! I have changed the angle of my light and all is well :-) Thank you xx
You can use a spotlight or distant light for the sun node. Both allow you to aim the light by looking through it in the View selection, and you'll see the effect of this light if you have the Preview Lights feature on. A camera can also serve as the node, and you can view through it as well.
The emitted light no longer behaves as a spot or distant source, though if you're concerned about it, you can dial the luminance to some low value.
You can also use a camera.
Cheers,
Alex.
Thank you everyone :-)
I would just like add a thank you as well. I have been confused on how to setup the sun in a scene for a long time and using a spotlight as the sun node is SO much easier. Thanks for pointing this one out.