Photo to Sky
Quick start
- Open the sidebar in the 3D Viewport (N) and go to the Photo to Sky tab.
- Click + (or Add Photos) and pick one or more photos. JPEG, PNG, TIFF, WebP, BMP, EXR and HDR files can be read.
- For each photo in the list, set Horizon: where the horizon is in the photo (0 = bottom edge, 1 = top). Use where flat ground meets the sky far away, not the tops of trees.
- The lens is read from each photo’s EXIF. If it isn’t there, turn off Lens from EXIF and enter the field of view yourself. Phones are about 65–75°.
- Click Create Sky. The box under the button shows what was found in the selected photo, for example field.jpg: Sunset / dusk, Sunset glow, sun just below the horizon, 26% cloud.
- Use Day and Night under it to switch between daylight and a moonlit night. The other panels appear once the sky is made.
Prefer to watch first? The video tutorials show the add-on in use.
Put the camera at the origin. The sky is infinitely far away, so only the camera’s direction matters, but the 3D cloud layer is centred on the origin.
Working with several photos
- The list shows each photo with a tick (use it or not), the photo that gives the sky (globe icon) and its time of day. Photos higher in the list go on top where they overlap; use the arrows to reorder. Where a photo had a tree or building, the photo below shows through.
- Use This Photo’s Sky takes the sky’s colours, sun or moon, stars and cloud look from the selected photo. The other photos keep adding their clouds.
- Read Again reads only the selected photo again, after you change its horizon or lens. The rest of the sky stays as it is.
- New photos go just left of the others, slightly overlapping, so a few photos wrap round you. If two photos have the phone’s compass direction saved in them, Place by Compass turns them to the way the camera faced, and Fine-tune adjusts. Otherwise move them with Direction.
- Adding photos after the sky is made reads them straight away.
- − takes the selected photo out. While other photos are left, the sky stays. Removing the last photo removes the sky made from it as well.
Panel reference
Everything is in the 3D Viewport sidebar, Photo to Sky tab. Directions are counted from the middle of the first photo: 0 is straight ahead, positive is to the left. Heights are degrees above the horizon.
Photo to Sky
The photos, Create Sky, what was found, and Day / Night.
- Photos: The list of photos. Tick to use a photo’s clouds. + adds, − removes, the arrows move a photo up (over the others) or down. (Any number)
- Horizon: Where the horizon is in the photo: where flat ground meets the sky far away, not the tops of trees. (0 (bottom) to 1 (top), 0.33)
- Lens from EXIF: Works out how wide the photo is from the focal length stored in it. Uses Field of View when it isn’t there. (On)
- Field of View: How wide the photo is, left to right. (10° to 150°, 65°)
- Standard View: Sets the scene’s colour view to Standard, so the sky’s colours show as in the photo. Filmic and AgX change them. (On)
- Create Sky: Reads the photos and builds the matching World with sun and moon lamps. Becomes Create Sky Again once a sky exists.
- Use This Photo’s Sky: Takes the sky’s colours, sun or moon, stars and cloud look from the selected photo.
- Read Again: Reads the selected photo again after you change its horizon or lens.
- Day / Night: Day: the sun on, the moon off. Night: dark sky, stars and moonlight, the sun off.
Weather
The ten presets (the one in use is highlighted) and Photo’s Weather.
- Clear … Windy: Changes the weather of the sky you have. See the preset list. (10 presets)
- Photo’s Weather: Back to the sky as it was before any weather was picked.
Sky
The colours of the sky itself.
- Brightness: Brightness of the whole sky. (0 and up, 1 = like the photo)
- Horizon … Zenith: The sky’s colours as one strip of seven swatches: at the horizon, at 3°, 8°, 15°, 25° and 40°, and straight up. (7 colours)
- Glow: Extra light in the sky towards the sun: sunset glow, bright haze. (Colour)
- Strength: How strong the glow towards the sun is. (0 to 5, 1)
- Width: How far round the sky the glow spreads from the sun. (1° to 180°, 30°)
- Height: How high above the horizon the glow reaches. (1° to 90°, 8°)
- Ground: Colour below the horizon. (Colour)
Sun
The tick in the header is Day: it shows the sun, lights the scene with it and turns the moon off.
- Direction: Where the sun is round you. (−360° to 360°)
- Height: How high the sun is. Below 0 it has set. (−90° to 90°)
- Size: Angular size of the sun. Bigger gives softer shadows. (0.05° to 20°, real sun 0.53°)
- Strength: Sunlight on a surface facing the sun (Blender sun strength). (0 and up)
- Colour: Colour of the sunlight. (Colour)
- Disc in Sky: Draws the sun’s disc in the sky. (On)
- Sun Lamp: Lights the scene with a Sun lamp lined up with the sky’s sun. Off: the sky’s sun disc lights the scene. (On)
Moon & Stars
The tick in the header is Night: it shows the moon, dark sky, stars and moonlight, and turns the sun off.
- Direction, Height: Where the moon is round you and how high. (Angles)
- Size: Angular size of the moon. (0.1° to 20°, real moon 0.52°)
- Phase: How much of the moon is lit. (0 to 1, 1 = full)
- Lit Side: Which side of the moon is lit. (0 = right, 90° = top)
- Brightness: Brightness of the moon’s disc. (0 and up, 20)
- Moon Lamp: Lights the scene with a faint, cool moonlight lamp. (On)
- Moonlight: Strength of the moonlight lamp. (0 and up)
- Stars: How many stars. (0 to 1, 0 = none)
- Brightness: How bright the stars are. (0 and up, 1)
Galaxies & Nebulae
Holds the Milky Way, Nebulae and Galaxies panels. While the sun is up it shows a note with a Switch to Night button.
- Brightness (All): All galaxies and nebulae together: the Milky Way, nebulae and galaxies. (0 and up, 1)
Milky Way
Turn it on in its header.
- Brightness: Brightness of the whole band. (0 and up, 1)
- Direction, Height: Where its bright core is round you, and how high above the horizon. (Height 20°)
- Tilt: 0 = an arch along the horizon, 90 = standing upright. (−180° to 180°, 60°)
- Frame in Camera: Puts the core in front of the active camera as an Arch (low across the sky), a Diagonal or a Pillar (standing up from the horizon). (3 layouts)
- Band Width: How wide the band is. (0.02 to 0.8, 0.13)
- Waviness: Irregular band edges. (0 to 2, 0.35)
- Core Brightness, Core Size: The bright bulge in the middle. (1.2 and 0.28)
- Star Clouds: How much brighter and fainter the band’s star clouds are. (0 to 1, 0.7. 0 = an even glow)
- Dust Lanes: How thick the dark dust is: the rift down the middle and the lanes and wisps round it. The dust also hides the stars behind it. (0 to 2. 0 = none, 0.6 = as painted)
- Glowing Gas: Small pink (and a few blue) gas clouds scattered along the band. (0 and up, 0.5. 0 = none)
- Detail Scale: Draws the dust and the star clouds larger and softer, or smaller and finer. (0.3 to 4, 1)
- More Stars In It: Crowds extra stars into the band, bright ones and countless faint ones. Needs Stars on. (0 to 3, 1)
- Core Colour, Band Colour, Dust Tint, Gas Colour: Its four colours. Light that comes through thin dust takes on the Dust Tint. (Colours)
- Variation: Another stretch of dust and star clouds. (Any number)
Nebulae
A list: tick to show, + adds one in a style, − removes. The settings are for the selected one.
- Style: A look for it: colours and gas. Where it is stays. See the 19 styles. (19 styles)
- Brightness: Brightness of this nebula. (0 and up)
- Direction, Height: Where its middle is round you and above the horizon. (Angles)
- Size: How far it spreads from its middle. (1° to 180°)
- Put in View: Moves it to the middle of the active camera’s view.
- Gas Scale: Size of the gas clouds. A bigger number gives smaller clouds. (0.2 to 30)
- Detail, Coverage, Contrast: How fine the gas is, how much of the nebula is filled with gas, and how strongly it stands out. (0–15, 0–1, 0.2–6)
- Wisps: Swirls in the gas. (0 to 4)
- Filaments: Bright, thin filaments. (0 to 3)
- Dark Dust: Dark dust in front of the gas. (0 to 1)
- Colour A, Colour B, Highlight: The two gas colours and the colour of the densest, brightest gas. (Colours)
- Variation: A different shape. (Any number)
Galaxies
A list like the nebulae’s: + adds a galaxy of a type in front of the camera.
- Type: Spiral, Barred, Elliptical or Irregular. (4 types)
- Brightness: Brightness of this galaxy. (0 and up, 2)
- Direction, Height: Where it is round you and above the horizon. (Angles)
- Size: How big it looks across. (0.1° to 170°, 8°)
- Put in View: Moves it to the middle of the active camera’s view.
- Tilt: 0 = seen face-on, 88 = edge-on. (0° to 88°, 55°)
- Turn: Turns it round its middle. (−360° to 360°)
- Arms: Number of spiral arms (spiral and barred). (1 to 8, 2)
- Twist: How tightly the arms wind. (0 to 8, 2.2)
- Arm Sharpness: How crisp the arms are. (0.3 to 10, 2.5)
- Dust: Dark dust across the disc. (0 to 1, 0.5)
- Star-Forming Regions: Pink knots of young stars along the arms. (0 to 1, 0.5)
- Core, Arms, Star-Forming: Its three colours. (Colours)
- Variation: A different shape. (Any number)
Aurora
Turn it on in its header. While the sun is up it shows a note with a Switch to Night button.
- Brightness: How bright the aurora is. (0 and up, 0.1)
- Direction: Where it is round you. (−360° to 360°)
- Height: How high above the horizon its lower edge is. (0° to 70°, 14°)
- Size: How big the whole aurora looks: its spread, curtains, folds and rays grow or shrink together. The middle of its lower edge stays at Direction and Height. (0.1 to 5, 1 = as the other settings say)
- Spread: How far round the sky it reaches. (10° to 360°, 140°)
- Curtain Height: How far up the light reaches above the lower edge. (1° to 40°, 8°)
- Waviness: How far the curtains wind nearer and further: the lower edge rises and falls by about this much. (0° to 20°, 4°)
- Folds: How often the curtains wind: 0 = a few broad sweeps, 1 = many tight folds with bright streaks. (0 to 1, 0.5)
- Rays: Fine vertical rays in the curtains. (0 to 1, 0.6)
- Edge Fade: How softly and unevenly the lower edge fades out: every ray ends at its own height and thins out in wisps, with a faint glow underneath. (0 to 1, 0.5. 0 = one clean, sharp line)
- Colour, Top Colour: The lower, brightest part (usually green) and the upper fringe (red to purple). (Colours)
- Speed: How fast it drifts and shimmers when the animation plays. (0 and up, 1. 0 = still)
- Variation: A different shape. (Any number)
Rainbow
Turn it on in its header. A note says when it can’t be seen, with a button to fix it.
- Opposite the Sun / Own Direction: Where a real rainbow stands (round the point opposite the sun, 42° out, moving with the sun), or where you put it. (Opposite the Sun)
- Direction, Height, Size: With its own direction: where the middle of the arc is round you, how high its top is, and the arc’s radius. (Size 5° to 60°, real 42°)
- Put in View: Moves the rainbow in front of the active camera. Only the rainbow moves; the sun, clouds and shadows stay.
- Brightness: 1 = a dense rain shower in full sunlight. Lower it for thin or distant rain. (0 and up, 1)
- Rain Shower: The sky behind and round the arc darker and greyer, so the colours stand out. (0 to 1, 0.5)
- Inner Glow: The brighter sky inside the arc. (0 to 5, 1 = as in nature)
- Drop Size: Raindrop radius in millimetres. Larger drops give narrow, vivid bands; drizzle gives wider, paler bands with pastel fringes inside. (0.1 to 2 mm, 0.5 = ordinary rain)
- Fade Toward Top: Fainter towards the top of the arc, where the rain thins out. (0 to 1, 0)
- Breakup: Gaps along the arc where there is no rain, as in passing showers. (0 to 1, 0 = the whole arc)
- Shower Size, Variation: How big the showers are, and a different pattern of gaps. (0.2 to 5, 1)
- Face Camera: Opposite the sun: turns the whole sky (sun, clouds and photos together, so shadows turn too) to put the rainbow in front of the active camera.
Clouds
Sky or 3D Volume, and how the clouds look.
- Sky / 3D Volume: Clouds painted on the sky (fast, EEVEE and Cycles) or a real cloud layer (depth and shadows, slow, best in Cycles). (Sky)
- Build 3D Clouds: Makes the 3D cloud layer with the same clouds.
- Coverage: How much of the sky is cloud. (0 to 1. 0 = clear sky)
- Opacity: How solid the clouds are. (0 to 1, 0.95)
- Softness: Soft, wispy edges (high) or crisp edges (low). (0.002 to 0.2, 0.03)
- Scale: Bigger gives smaller, more numerous clouds. (0.05 and up, 1.5)
- Stretch: How long and streaky the clouds are. (1 to 10, 1)
- Direction: Direction the clouds are stretched along. (0 = towards the photo)
- Lit, Shade: Colours of the sunlit and the shaded parts of the clouds. (Colours)
- High Clouds: Thin, streaky clouds high above the others (cirrus). Sky clouds only. (0 to 1, 0.01)
- Variation: A different cloud pattern. (Any number)
- Drift: Moves the made-up clouds across the sky. Key it for wind. (2 values, 1 = the clouds’ height)
- Height, Thickness, Density: 3D clouds: height of the cloud base, how thick the layer is and how dense the clouds are. (1500 m, 700 m, 0.03)
Photo in Front
The tick in the header turns the photos’ own clouds on or off for all photos. It is off for a new sky, so the clouds are made-up all the way round. The settings are for the photo selected in the list.
- Blend: How much of this photo’s clouds to show. (0 to 1. 0 = only made-up clouds there)
- Contrast: How strongly the photo’s clouds stand out from the sky. (0.2 to 3, 1)
- Saturation: How colourful the photo’s clouds are. (0 to 1. 0 = grey)
- Sky Colours: How much of the photo’s own blue and pink sides carry over round it. (0 to 1, 1)
- Place by Compass: Turns this photo to the way the camera faced, from the compass direction saved by the phone. Shown when the photo has one. (On)
- Direction / Fine-tune: Moves the photo’s clouds round the sky without turning the rest of the sky. (−180° to 180°)
- Height: Moves the photo’s clouds up or down. (−45° to 45°)
- Scale: How much of the sky the photo covers. (0.25 to 4. 1 = as the lens saw it)
- Flip: Mirrors the photo’s clouds left to right. (Off)
- Edge Softness: How gently the photo’s clouds fade out towards its edges. (0.01 to 0.5, 0.5)
- Photo From: Uses the photo only above this height, so distant trees, hills, buildings and mist stay out. Raise it for a city skyline. (0° to 45°, 2°)
- Reset Position: Puts the photo’s clouds back where the photo saw them.
Animation
The ten presets (the one in use is highlighted) and the frame range.
- Sunrise … Turntable: Animates the sky over the scene’s frame range. See the preset list. (10 presets)
- Start, End: The scene’s frame range. Changed it? Click the preset again. (Frames)
- Clear Animation: Removes the sky’s animation and puts the sky back as it was before.
Placement
Where the whole sky sits round your scene.
- Rotation: Turns the whole sky, with its sun, moon and clouds, around you. (−360° to 360°)
- Face Camera: Turns the sky so what the selected photo showed is in front of the active camera.
- Camera Like Photo: Sets the active camera’s lens and aim like the selected photo, so you can compare the sky with it.
Guides and tips
Weather
- Weather only changes the sky and its lighting. There is no falling rain or snow, and Fog is the look of the sky, not fog in the scene itself.
- With an animation preset in use, picking a weather rebuilds the animation with it, for example Rain with Day to Night.
- Switching Day / Night keeps the weather as part of the sky. Pick a weather again to change it at night.
- Under heavy cloud (Overcast, Rain, Snow, Thunderstorm) and in Fog the sun’s disc is hidden and its light is spread out: soft shadows, no glints.
Galaxies and nebulae
- They show at night. By day they are hidden, and they fade in through twilight, with the sun between 4° and 16° below the horizon.
- Their brightness follows your sky: they keep the same contrast against a brighter or darker night photo.
- They are behind everything else: the moon, the aurora, the clouds and the photos’ own clouds.
- They turn with the sky (Rotation, the Turntable animation), and any of their settings can be keyed.
- For a Milky Way that sparkles like a long-exposure photograph, raise More Stars In It together with the Stars amount and brightness.
Aurora
- It moves on its own as the frame changes, with no keys needed. Set Speed to 0 for a still aurora.
- With it on, it appears by itself as night falls in the Sunset and Day to Night animations.
- A crisp, clean lower edge: set Edge Fade to 0. A soft, ragged one: raise it towards 1.
- Brighter auroras: raise Brightness. Tall, active displays: raise Curtain Height and Rays. Winding, draped curtains: raise Waviness and Folds. A quiet, smooth arc: lower Rays and Waviness.
- Overhead: raise Height (50° and more) and Spread. The rays then meet at a point a little behind the zenith, as a real aurora’s do.
Rainbow
- It is drawn round the point exactly opposite the sun, 42° out, so the lower the sun, the higher the arc. With the sun higher than 42° the whole arc is below the horizon.
- When it can’t be seen, the panel says why, with a button: Switch to Day (the sun is off), Raise the Sun or Lower the Sun (sets it 15° up), or Partly Cloudy (the sun is hidden by cloud).
- With its Own Direction it stays put when the sun moves, and a high sun no longer hides it. It still needs the sun’s light.
- It is drawn in front of the painted clouds, because the rain is nearer than they are. With 3D Volume clouds, the clouds are in the scene and cover it.
- In the Sunset and Day to Night animations it rises and turns red as the sun goes down, then fades out.
Animation
- Set the scene’s Start and End frames, then click a preset. Press Play (Space) to watch. Renders follow it too.
- Each preset starts from the sky as you made it. Your photo’s own look is used for its time of day; the other times of day are made to match.
- Clicking another preset replaces the first one.
- The keys are on the scene (photo_sky… in the Graph Editor). The sky follows them while you play, scrub and render.
- Drift in the Clouds panel moves the made-up clouds. Key it yourself for your own wind.
Good to know
- 3D clouds render in Cycles. Set Volume Bounces if you want brighter, softer clouds. The camera’s clip end is raised so the layer is visible.
- At sunset and at night nothing bright lights the 3D clouds, so they take their colours from the photo. In daytime, the Sun lamp and the sky light them.
- Turning the Sun or Moon off doesn’t change the look. Use it for a moonless night or a sunless dusk.
- A night photo switched to Day gets a clear day sky. Its own night clouds, stars and moon are left out: Blend is set to 0, and you can raise it to bring them back.
- Photo in Front is off for a new sky, so the clouds are made-up all the way round. Turn it on to bring in the photos’ own clouds where each photo looked.
- Night shows the photos’ clouds nearly grey and leaves out their sky colours. Day brings them back.
What it adds to your file
- Photo Sky World: The World. Its settings are the PS … nodes, written from the panel.
- Photo Sky: An empty that turns with Rotation. The lamps are its children.
- Photo Sky Sun, Photo Sky Moon: Sun lamps lined up with the sun and moon in the sky.
- Photo Sky Cloud Layer: The 3D cloud box, only after Build 3D Clouds.
- Photo Sky Milky Way, Photo Sky Nebula, Photo Sky Galaxy: Node groups: the shaders of the galaxies and nebulae, shared by all of them.
- Photo Sky Milky Way Map: An image: the Milky Way’s dust, star clouds and gas clouds. Only once the Milky Way has been on. Packed in the .blend, about 3 MB.
- Photo Sky Rainbow, Photo Sky Rainbow Glow: The rainbow’s colours by angle, only while it is on. Packed in the .blend.
- Photo Sky N Photo, N Clouds, N Tint: For each photo: its clouds, its cloud and sky maps, and its broad colours. Packed in the .blend.
Removing it
Removing the last photo with the − button, which asks first, takes the whole setup out of the scene and the file: the World, the lamps and their empty, the 3D cloud layer and its material, the node groups, all the images above and the sky’s animation keys.
The scene gets back the World and the colour view (AgX, Filmic…) it had before Create Sky, and all Photo to Sky settings go back to new. Objects of your own parented to the Photo Sky empty are kept where they are. Undo brings everything back.
To take a photo out and keep the sky as it is, tick Keep the Sky in the operator’s panel after removing.
Performance and limits
Render cost
- The clouds are drawn by shader nodes in the World. With the richer clouds a Cycles render on the CPU spends about twice as long on the sky as before. GPU renders and EEVEE are much less affected.
- The Milky Way costs the most: with it on, a Cycles CPU render of mostly sky takes about nine tenths longer.
- The aurora adds to that: with it on, a Cycles CPU render of mostly sky takes about half as long again.
- Each nebula or galaxy adds a little. The Milky Way, the aurora, the rainbow, nebulae and galaxies are only built into the World while they are on.
What the photo needs
- The photo must show some sky above the horizon. Very wide lenses (fisheye) and panoramas aren’t handled; use a normal photo.
- A sun blown out into a large white area can’t be located. It is then placed from the glow, or behind you, and you can move it in the Sun panel.
- An aurora is read from a night photo by its green light. A very faint one, or one that isn’t green, may be missed: turn it on yourself and match it with the settings.
What isn’t copied
- Cloud types aren’t copied, only their cover, size, stretch, direction and colours. Painted clouds may look puffier or wispier than the photo’s.
- Where something hid the photo’s sky (a tree, a building), that part gets the colours round it, smoothed, plus painted clouds. Clouds right behind the object can’t be recovered.
- Objects are found by being darker than the sky around them. Something as bright as the sky, such as a white building in haze, may stay in: raise Photo From.
- The rainbow is made, not read from the photos: a rainbow in a photo stays part of that photo. With its Own Direction it no longer lines up with the sun and the shadows.
- The Milky Way’s map holds a detail about every 0.04° along the band and finer near its middle. That is plenty up to a normal lens; a long lens (85 mm and more) on the band shows its dust soft.
Scenes from earlier versions
- A sky made with an earlier version gets the reworked Milky Way and aurora and the rainbow’s new settings at the first change in the panel, or with Create Sky Again. The Milky Way is about as bright overall as it was, but its dust, colours and stars differ, so an old scene’s night sky will look different.
- A scene made with one photo keeps its photo: click Create Sky Again and it appears in the list.
- Removing a sky made with an earlier version leaves the scene without a World: the one it had before wasn’t kept then.
Credits and license
Photo to Sky is made by Hamdi Amer and licensed under GPL-3.0-or-later.
The rainbow’s colours (spectral Airy theory of sunlight in raindrops) come from the Real Rainbow add-on by Hamd Amer, GPL-3.0-or-later.
The Milky Way, nebula and galaxy shaders and the nebula styles come from the Cinematic Sky Builder add-on (version 1.4, by the Cinematic Sky Builder contributors), GPL-3.0-or-later. The Milky Way is Photo to Sky’s own since 1.15: its dust, star clouds and gas clouds are a map painted by a program, not a photograph, and it has nothing of any photograph in it.
Discover more products like this
procedural sky aurora clouds sky matching hdri alternative animated-sky night sky rainbow sunset milky way Environment Lighting sky