I've encountered a weird problem lately, I have an object in the middle of the 3D space, and changed the background color of the viewport to black (#000) and use Cycles, the issue is that when rendered the background is not entirely black. I have a light source behind the camera to cast shadows on my object, but the light source also affects the background. This makes no sense to me as this is not how light behaves in real life, In real life light is only visible when it collides with something. But in the case of my project light from my light source is visible and affects my background color even though there is nothing for it to collide with. The only way I've found to fix this is to have no light source and use an emission shader on my object. With this technique the background of the object is pitch black but the emission shader also causes my object to have no shadows and to look differen than if it was illuminated by a light source. What I'm essentially asking of you guys is, do you know of any ways to have a pitch black background while still illuminating an object with a light source (the effect i'm going for is quite similar to how earth looks from space, earth is visible due to thte light from the sun but the vaccuum around earth is pitch black)?
-
$\begingroup$ I've been trying for about 30 minutes to duplicate your result, but can't. Can you share your blend file? $\endgroup$– Ron JensenOct 18, 2021 at 18:30
-
$\begingroup$ If there were empty space around your object you're right, this behaviour makes no sense - but the space is not empty, see answer below. $\endgroup$– Gordon BrinkmannOct 19, 2021 at 7:59
1 Answer
You have a plane in your scene which has deactivated visibility in the 3D Viewport, but is visible in Render (the camera symbol on the right).
-
$\begingroup$ Tested it out with the plane deleted and you're right, thanks a lot! $\endgroup$ Oct 19, 2021 at 16:27
-
$\begingroup$ @Chronos138 You might consider accepting this answer: What should I do when someone answers my question? $\endgroup$ Oct 20, 2021 at 5:58