Rendering with solid color background

Hello to all friends!
I try to explain my problem.
I would like to understand how to render an object, setting the World with an HDR image, without additional lights, with a solid color background, in the scene.
The problem is that during rendering, the background will not be solid color, that is, with the same RGB color set on the object that is the background, because the HDR image obviously generates shadows.
I would like the HDR image to affect only the main model and not the background object.
How can I get a solid color background using an HDR image?

Thanks to all!

Perhaps this is what you’re looking for?

3 Likes

Thanks StrayBillie, that’s exactly what I meant!
I have an object in the scene with clear glass in it though, and they have the HDR image reflected.
How can I get rid of the reflection, but still keep the HDR image?

But… what’s the point of using HDR then?
Every object reflects an HDR, it’s just more obvious with lower roughness. What are you trying to achieve?

1 Like

I would like to have the object in the scene with a light produced by the HDR image, but not the background. I need the background to be a solid color with no shadows.

Well, yes, with the setup above you should get just that.

But reflections ARE the light produced by the HDR.
You can probably make it less obvious by getting a very blurry image or something. I don’t think it’s possible to remove it. Not without removing the HDR itself.

Err… probably?

I don’t know…I’m not very familiar with Blender.
Anyway thanks for the help!

Using a similar setup to posted, you can exclude reflections from the world, but the question stands, why?

Because the object is intended to be offered for sale as a 3D model. In the presentation of product images it is a requirement that the object has no shadows in the background and that the background is of a uniform color. At the same time I would like the object to be affected by lighting from an HDR image, to appear more real.

I have a problem though, even following the settings of , when I go to render, the background has a different RGB color than the one I have set on the RGB node of the world.

I don’t see why. To expand on StrayBillie’s world setup, this removes reflections as well, and provides a reliable BG.

1 Like

I’ll try to set the world as suggested and redo the rendering, then I’ll let you know.

Not working.
I entered these values in the color of background node:
R: 247/255=0.968627
G: 247/255=0.968627
B: 247/255=0.968627

Rendering though, the background values I detect are:

RGB: 212,212,212

Maybe an issue with Color Management in Render Properties?

That seems to be true. Check Filmic and set to Raw. That then gets the correct colour background.

I don’t know, I set it up that way:
Sideboard-2
I will try to set it to raw, as you suggest Roken.

Anyway, I solved it by rendering with no background, then opened the image with a graphics editor and added a background layer with the color I’m interested in and resaved it as a png image.
Although this is not really a solution.

Blender is messy in some things. It’s not possible that you can’t set the background of the desired color and you have to use an external method.
Maybe it could be done in Compositing with the alpha node, but I don’t know how to do it.

Setting to Raw, the object appears too dark and there are reflections that I don’t like on smooth objects.
Instead if I set on Standard, in View Shading: Rendered I was able to have the background of 247,24,247 setting the RGB node with 0.777, 0.777, 0.777.
I’m rendering to see if this way the background is actually what I want.

Materials use linear colors rather than gamma correct colors so you need to convert your color to linear using a gamma node. Plug in a gamma node after your color and put 2.2 as the gamma value. This will only work if you render with the standard view transform. It won’t work with Filmic.

You mean like this?:

Yes like that. That’s assuming you are trying to match a specific gamma encoded color.

I forgot to mention the other color management settings need to be their default values. Adjusting the exposure for example would adjust the background color away from the intended color.

1 Like