0
$\begingroup$

I am quite new to blender and I'm having trouble rendering the following environment. I have a car in that has been created in blender and has been appended to the project, and the background house, which is a .blg file that contains a 3d mesh / point cloud but the color of this building can only be seen if you set the viewport shading light to flat and the color to attribute. Is there a way to show both the car and the building with their real colors, so kind of fuse both images below? and be able to render the result with correct lighting if that makes sense.

enter image description here Viewport shading: Solid display mode. Where only the building has color.

enter image description here Viewport shading: Material Preview mode. Where only the car has color.

enter image description here Settings to view the color of the building.

enter image description here Render preview, but with no colored building.

EDIT 1: Added image of color attribute and attribute of the building

enter image description here

$\endgroup$

1 Answer 1

1
$\begingroup$

Since the objects have different sources for their color, the Solid Viewport shading won't be useful here. You either need to use Material Preview or Rendered Viewport shading. Additionally, you need to set the material of the building to use the corresponding color attribute that shows up in the Solid Viewport shading. The steps are listed below:

  1. Figure out the name of the attribute. This will typically show up under Object Data Properties > Color Attributes.

Color

  1. Connected the Color output of an Attribute node to the Material Output node directly or through a BSDF (shader). A direct connection won't produce shading which is the correct option here as the shading and shadows seem to be baked into the attribute.

  2. Set the name of the attribute in the Name field of the Attribute node.

Shader


Update: Steps 2 and 3 are shown in the GIF below. The steps are carried out in the Shading workspace. We already know the color attribute is called Col.

Steps

$\endgroup$
4
  • $\begingroup$ I have added my building attributes to the original post, I have a color attribute and an attribute with the of 'Col', but i dont know how to do step 2 of what you mentioned, my knowledge in blender is quite limited atm. $\endgroup$
    – diegobc11
    Dec 19, 2023 at 11:16
  • $\begingroup$ That means the building's color attribute is called Col in your case (not Color). I will add a GIF showing how to carry out the remaining steps. $\endgroup$
    – Mr A
    Dec 19, 2023 at 12:41
  • $\begingroup$ Thank you very much, the GIF is perfect! $\endgroup$
    – diegobc11
    Dec 19, 2023 at 14:06
  • $\begingroup$ You're welcome! $\endgroup$
    – Mr A
    Dec 19, 2023 at 14:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .