How can I replace the background of my scene, but keep the reflections and lighting generated from my HDRI?
-
1$\begingroup$ Render with transparent film. Go to Render Settings>Film and check the Transparent checkbox $\endgroup$ – VRM May 26 '15 at 15:22
-
$\begingroup$ possible duplicate of Can Blender render pngs with the background transparent? $\endgroup$ – VRM May 26 '15 at 15:48
-
4$\begingroup$ @NoviceInDisguise Not a duplicate as far as I can see, at least not of that question: meta.blender.stackexchange.com/questions/549/… $\endgroup$ – Ray Mairlot May 26 '15 at 16:50
Enable Transparent in Render settings > Film:
Now the sky will render as alpha transparency when seen directly, but still illuminate and reflect off other objects.
Once you have a transparent background, it can easily be filled in with another image via an Alpha Over node:
The Translate node is used for some tweaks to the positioning of the background image.
-
3$\begingroup$ Maybe it would be good to include a bit of information regarding compositing work involved. After all, the question was not about how to get a transparent background, but how to change the background without effecting the scene. $\endgroup$ – TARDIS Maker Jun 3 '15 at 7:07
-
$\begingroup$ Much better! Although for simplicities sake, I would get rid of the translate node, but that's just me. $\endgroup$ – TARDIS Maker Jun 5 '15 at 7:23
-
$\begingroup$ This was not helpful to me, can anyone please provide an video tutorial $\endgroup$ – Ehsan Zargar Ershadi Jun 15 '18 at 17:35
-
$\begingroup$ @EhsanZargarErshadi What is unclear? I can't really help unless I know where you're stuck. $\endgroup$ – gandalf3♦ Jun 15 '18 at 20:41
-
$\begingroup$ Sorry, my lake of knowledges where the issue, buy looking precisely to the images provided I was able to reproduce it. Thanks $\endgroup$ – Ehsan Zargar Ershadi Jun 17 '18 at 6:08