We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Color overlay on objects without affecting the material

Home Forums General Questions Color overlay on objects without affecting the material

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #74435
    David Duperron
    Customer

    Hi!
    I was wondering: is there a way to “highlight” or apply a color overlay to an object without having to tweak or affect its material.
    Or is it possible for several objects to share the same material, but to individually change one setting in this material (a color input for example?) for each object…?
    Thanks for the help!

    David

    #74534
    David Duperron
    Customer

    I update this post to see if I can get any help…
    The idea would be to “add” a color overlay on a given object without affecting it’s material… if this is even possible…?

    #74538
    kdv
    Participant

    object.objectColor (in RGB format)

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #74540
    David Duperron
    Customer

    New update: problem solved!
    I managed to get what I needed (a single material, which looks different from one object to another in terms of color and transparency).
    For this I used the “Object Info” node in the Blender material definition (see here).
    The “Color” output controls the color of the overlay, and the “alpha” output controls the overall opacity of the material.
    Be careful if you use normal maps in your material to make sure that the normals are correctly computed (if they exist at all!) for the objects to which the material is affected. Otherwise you may experience unexpected render issues (see here to force the tangent computation on your geometry if this attribute does not exist)… I struggled to find this one!!

    #74541

    :good:

    Co-founder and lead graphics specialist at Soft8Soft.

    #74542
    David Duperron
    Customer

    Hi Kdv! I did not see your post when I found the same solution. Anyway thanks a lot for the help and the illustration
    Cheers

    David

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.