Tutorial: Connect Sun Lamp and Sky Texture (Blender 2.70) @sirrandalot
Tutorial: Connect Sun Lamp and Sky Texture (Blender 2.70)  @sirrandalot
Uploaded May 2014 | Updated September 2026, 2 weeks ago
If you'd like to skip the intro and explanation go to 4:30
All information is in the description!

This video explains how to connect the direction in which a sun lamp is pointing and the direction in which the sun in a sky texture is pointing in order to match them up using python.

I know this isn't the only way to do this, but it's the method that I found most intuitive and easy to understand. I hope you find it useful!

Update! : I improved the code thanks to TheRealWinsletFan, I posted the improved version here: reddit.com/r/blenderpython/comments/25wi1e/ive_got_another_tutorial_for_you_guys_this_one

Here's the wiki page on rotation matrices: en.wikipedia.org/wiki/Rotation_matrix#In_three_dimensions

Sound effects from freesound.org
Tutorial: Connect Sun Lamp and Sky Texture (Blender 2.70)Intro for: TheGPCSO MUCH WHAT (When Graphics Go Wrong)(MEME 106 f.2023) 15. gyatt for the rizzlerTrue Displacement (Blender 2.79)Return of the STYKZTutorial: Reduced Colour Palette! (Blender 2.76)We Are Stardust Teaser (LukHash & sirrandalot)Doors! Game Engine Testing 3 (Blender 2.74)The Story Of Kevin!Realistic Shader Testing! (Blender 2.74)Simulate Life With Simulation Nodes
sirrandalot |

Tutorial: Connect Sun Lamp and Sky Texture (Blender 2.70)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER