Author Topic: Distance from 'material' rather than object  (Read 770 times)

2020-10-14, 13:26:18

aaouviz

  • Active Users
  • **
  • Posts: 313
    • View Profile
    • Another Angle 3D
This might be a slightly radical/crazy idea,

But what if we could apply a "Distance from" a material, rather than an object in the Corona Distance Texmap.

This would be useful in that I wouldn't have to continually add items to the list in the texmap node, and it would essentially auto-update every time I apply a certain (the selected "distance from") material to another object.

Hope this is clear and makes sense.

Just a thought!

2020-10-14, 17:06:06
Reply #1

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 351
  • George
    • View Profile
So based on Material ID?
“Every artist was first an amateur”

2020-10-14, 17:21:37
Reply #2

aaouviz

  • Active Users
  • **
  • Posts: 313
    • View Profile
    • Another Angle 3D
Umm, possibly. But I don't think that's quite what I had in mind...

I was thinking more along the lines that I could plug another (separate) Corona material node into the "distance from". Does that make sense?

At the risk of complicating things and side-tracking this thread; The example I can currently think of is that I sometimes 'fake' the window spacer in window frame materials. So I sometimes make a Corona Layered Material which has a distance map as it's mask, (referencing my window glass panes), so anytime the window frame material gets within X distance of the glass objects, the material changes from black metal (for example) to a silver-ish brushed metal.

Now, in this example, rather than referencing every poly object in my scene, I can reference the glass material into the "distance from".

Sorry to complicate things! But I hope this was a worthwhile explanation...

2020-10-14, 17:35:55
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 10388
  • Marcin
    • View Profile
So basically, it would still calculate the distance from specific objects. In this case, objects which have the selected material applied. Right?
IMO it's an interesting idea.

2020-10-14, 17:37:56
Reply #4

Frood

  • Active Users
  • **
  • Posts: 1560
    • View Profile
    • Rakete GmbH
I'd vote for adding Object ID as well. Basically the options you have using CMasking_Mask: Object ID|Material ID|Manual selection with OR and AND condition would be great.


Good Luck



Never underestimate the power of a well placed level one spell.

2020-10-14, 21:03:19
Reply #5

burnin

  • Active Users
  • **
  • Posts: 1041
    • View Profile

2020-10-15, 01:34:22
Reply #6

PROH

  • Active Users
  • **
  • Posts: 1147
    • View Profile
Absolutely +1 for both material and object ID.
:)

2020-10-15, 10:51:58
Reply #7

aaouviz

  • Active Users
  • **
  • Posts: 313
    • View Profile
    • Another Angle 3D
So basically, it would still calculate the distance from specific objects. In this case, objects which have the selected material applied. Right?
IMO it's an interesting idea.

Yes, you're right. It would still be essentially from objects, but Corona would simply somehow first automatically select the objects with the designated material.

Thanks for the feedback. I'm liking the enthusiasm from others :D

2020-10-15, 12:10:54
Reply #8

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 351
  • George
    • View Profile
Yes, this would be really handy, I am reporting it for further consideration. Thanks!

(internal id=579126687)
“Every artist was first an amateur”