Author Topic: Corona Distance with different colors for objects  (Read 1215 times)

2020-03-27, 16:01:07

n.merazzi

  • Active Users
  • **
  • Posts: 22
    • View Profile
    • Instagram
Hi guys!

Please, someone can give a help?

Im trying to use a material with corona distance. but I need to have two different colors for each object.
Example:
I have a Road and I need to paint a yellow line for taxi parking and white lines for general parking using the same geometry.

Any idea?!

2020-03-27, 17:01:33
Reply #1

pokoy

  • Active Users
  • **
  • Posts: 1864
    • View Profile
It *could* be possible if the objects would pass their IDs for example to the distance map and you'd use a multimap for the coloring... but i doubt it is the case. As for now, you probably have to use different distance map instances for different colors.

2020-03-27, 18:05:04
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12767
  • Marcin
    • View Profile
Create two separate Distance maps with different colors. Use a blending node like Composite or Corona Mix to blend them together. Plug into diffuse.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us