Blog / Technical Guide

Transparent Background Renders: Alpha, Shadows and Edge Halos

Rendered sensor enclosure with housing, gasket and lid separated on a light background

A transparent background product render is a PNG with an alpha channel: the product is opaque, everything around it is empty, and you can drop it on any colour your designer picks. Getting one out of Blender takes a single checkbox. Getting one that still looks right on a dark website header, with a believable shadow and no grey fringe around the edges, takes a bit more thought. That second part is what this post is about.

I render most product work in Blender (Cycles) and some in KeyShot. The principles are the same in both, so I'll use Blender terms and mention where KeyShot differs.

What the alpha channel actually stores

Every pixel in an RGBA PNG has four numbers. Red, green and blue are the colour; alpha says how much of the pixel is covered. 255 is solid, 0 is empty, and the interesting pixels are the ones in between, along the edges of the product, where a curved surface only covers part of a pixel.

Those edge pixels are where almost every problem lives.

In Cycles you tick Film > Transparent, set the output to PNG, RGBA, and you're done with the basics. Colour depth matters more than people expect. An 8-bit PNG at 3000 × 3000 px of a matte enclosure is usually somewhere around 4 to 8 MB. Switch to 16-bit and it roughly doubles, which is pointless for a web shop but useful if someone is going to grade the image hard in Photoshop afterwards. I deliver 8-bit unless the brief says otherwise.

Why edge halos happen

You've probably seen it: a product cut out cleanly, placed on a navy banner, and there's a thin light outline around it like it was traced with chalk. That halo has two common causes, and they need different fixes.

The first is the world colour leaking into the edges. If the scene was lit with a bright white world and you only made the background transparent at the film stage, the product still reflects and picks up that white light at grazing angles. The silhouette edge of a glossy black housing is often the brightest part of the whole object, because that's where Fresnel reflection is strongest. Put it on white and you'll never notice. Put it on charcoal and the rim glows.

The second is an alpha handling mismatch. Blender writes PNG with straight (unassociated) alpha. Some pipelines expect premultiplied alpha, and if a tool premultiplies a second time or un-premultiplies something that was never premultiplied, the semi-transparent pixels get the wrong colour. The result looks like a dark or light fringe exactly one or two pixels wide. If the fringe is perfectly even all the way round, regardless of the lighting, suspect this before you touch the scene.

How do you tell which one you've got? Drop the PNG on pure black and pure white in any editor. A lighting halo changes with the shape of the product (brighter on curved edges, absent on flat faces seen head-on). A premultiplication fringe is uniform.

Shadows: the part a cut-out usually loses

A product floating with no contact shadow looks pasted in, even on a plain white page. A transparent render with no shadow is just a sticker.

In Blender the answer is a shadow catcher: a plane under the product with Object Properties > Visibility > Shadow Catcher enabled. With Film > Transparent on, the plane itself disappears and only the shadow it receives is written into the alpha channel as a semi-transparent dark area. KeyShot does the same thing with its ground shadow settings and a transparent background on export.

A few things I've learned the hard way:

  • Keep the shadow soft. A big area light, or an HDRI with a large bright patch, gives a shadow that works on many background colours. A sharp sun shadow only looks right on the exact colour you previewed it on.
  • Render the shadow as a separate pass or file when you can. Then the designer can dial its opacity down to 40% for a dark page and up to 80% for a light one, instead of asking me for a re-render.
  • Watch the contact line. The thin dark line where the product meets the floor is what sells the weight. If it's missing, the object hovers.
  • Pure black shadows look wrong on coloured backgrounds. A shadow on a teal banner should be a darker teal, which a semi-transparent black layer gives you for free, as long as it's semi-transparent and not solid.

Last autumn I rendered a small sensor enclosure for a hardware startup that wanted the same image on a white product page and a near-black landing page hero. The first version had the shadow baked into the PNG at full strength. On the dark page it was invisible, and on the white page it looked fine, so nobody noticed for a week until the founder put both pages side by side. Splitting the shadow into its own layer fixed it in ten minutes, and that's now how I set these up from the start.

Glass, liquids and anything see-through

This is the counter-intuitive one. Transparent materials look worse with a transparent background, not better.

A glass bottle on a white background looks like glass because you see the white background bent and darkened through it. Make the background transparent and there's nothing behind the glass to refract, so the bottle turns into a faint ghost with bright highlights floating in space. Cycles has a Transparent Glass option under Film that lets glass pass alpha through, and it helps a little, but refraction of whatever the designer later puts behind it can't be invented in a PNG. The pixels just don't hold that information.

For bottles, cosmetics jars and anything with liquid inside, I'd rather render on the actual background colour the site uses, or on a neutral mid-grey, and deliver a mask separately. It's one extra camera pass and it looks honest.

Marketplaces don't always want transparency

Amazon's main image rule is a pure white background (RGB 255, 255, 255), and in practice you upload a JPEG or a PNG that is already white, not an empty PNG that Amazon has to fill. Shopify will happily take a transparent PNG, but your theme decides what colour shows behind it, and some themes put a light grey card there. So check what the page actually does before deciding on the format.

That's why my usual delivery for Amazon listing images and A+ content renders is the white main image as a JPEG, plus a transparent PNG of the same angle for the brand's own site and ads. Same camera, same lighting, two outputs. The white version is not just the PNG flattened on white: I let the white world light the product slightly for that one, which makes the edges sit naturally.

What I'd actually do

If you're ordering renders and you need transparency, put three things in the brief.

First, the darkest and lightest background the image will ever sit on. That single fact decides how I light the edges. If the darkest is navy, I'll use a darker world and a rim light that's slightly warm, so the silhouette reads without a white outline.

Second, whether you want the shadow baked in or separate. Separate is almost always better. It costs nothing in render time because it's the same frame.

Third, the pixel size. 3000 px on the long side covers marketplace zoom, print flyers up to about A5 and every website I've worked on. Going to 5000 px makes the files heavy and rarely shows.

And one mistake to avoid: don't remove the background from a render that was made on white using a cut-out tool afterwards. You'll lose the soft shadow, the anti-aliased edge gets chewed, and you'll still have the white light reflected in the product. Render it transparent at the source. It's free at that stage.

For a single hero image, the Product Shot package (EUR 49, one photoreal render from your CAD or 3D file) is the right size; for a full listing set, the Listing Pack at EUR 149 gives you five images sized for Amazon and Shopify. Both are on the 3D product rendering page, and if you're not sure which outputs you need, the wider product visualization page shows how I approach larger sets.

If you've got a model and know where the image is going to live, send it over with that background colour and I'll tell you straight whether transparency will help or just cause halos.

Questions people ask

Is a transparent PNG accepted as an Amazon main image?

Amazon wants the main image on a pure white background (RGB 255, 255, 255). Upload a version that's already white rather than relying on transparency, and keep the transparent PNG for your own site and ads.

Should a transparent product render be 8-bit or 16-bit?

8-bit is enough for web shops, marketplaces and most print up to A5. 16-bit roughly doubles the file size and only helps if someone is going to colour grade the image heavily in Photoshop.

Why does my cut-out product have a white outline on a dark background?

Usually the product was lit by a bright white environment, so its edges reflect that light, or the alpha was premultiplied twice somewhere in the pipeline. A lighting halo varies with the shape; an alpha fringe is the same width all the way round.

Can glass products be rendered on a transparent background?

Technically yes, but they look like ghosts because there's nothing behind the glass to refract. It's better to render glass and liquids on the real background colour, or a neutral grey, and supply a separate mask.

Need photorealistic 3D visualization or engineering help for your next project?

Let's Talk

← Back to Blog