Author Topic: Is this normal Corona Distance behavior?  (Read 2107 times)

2018-01-02, 14:45:54

apjasko

  • Active Users
  • **
  • Posts: 92
    • View Profile
I was testing out an idea making traffic lines on asphalt using the Corona Distance map using the color inside influenced by a line with sweep modifier. It isn't working very well, the color inside tapers off in unusual ways. Is this normal?

2018-01-03, 11:31:09
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12752
  • Marcin
    • View Profile
Can you see what happens if you subdivide both the ground and the line geometry more?
Is the ground perfectly flat, or are some vertices moved up or down?

Sometimes the "inside" calculation may not be working as accurately as one would expect.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-01-03, 22:26:27
Reply #2

mferster

  • Active Users
  • **
  • Posts: 523
    • View Profile
I don't think you are using corona distance correctly. Your material is way more complicated than it needs to be.

You don't need to use the color inside property at all. I've attached a snip image showing what im talking about and the quick scene I made.
The line widths are driven by the corona near/far values on each level, you dont need to use a sweep modifier.

2018-01-04, 09:39:52
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12752
  • Marcin
    • View Profile
Why are you both plugging a Corona Distance into a Corona Distance?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2018-01-04, 18:02:50
Reply #4

mferster

  • Active Users
  • **
  • Posts: 523
    • View Profile
Why are you both plugging a Corona Distance into a Corona Distance?

In order to have two different coloured lines.