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

2020-10-14, 13:26:18

aaouviz

  • Active Users
  • **
  • Posts: 882
    • 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!
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

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

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
So based on Material ID?
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

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

aaouviz

  • Active Users
  • **
  • Posts: 882
    • 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...
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

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

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • 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.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

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

Frood

  • Active Users
  • **
  • Posts: 1903
    • 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: 1532
    • View Profile

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

PROH

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

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

aaouviz

  • Active Users
  • **
  • Posts: 882
    • 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
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

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

GeorgeK

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

(internal id=579126687)
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2021-02-15, 14:11:23
Reply #9

aaouviz

  • Active Users
  • **
  • Posts: 882
    • View Profile
    • Another Angle 3D
Hi, sorry to be a pain, just wondering if this ever got explored?

Many thanks!
Nicolas Pratt
Another Angle 3D
https://www.instagram.com/anotherangle3d/

2021-02-16, 12:19:39
Reply #10

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
Hi, sorry to be a pain, just wondering if this ever got explored?

Many thanks!

It was discussed and it's being under consideration, but I am afraid I can't share any further information as of yet. Bumping it again:)!

(Report ID=CRMAX-280)
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2021-05-14, 16:33:26
Reply #11

jms.lwly

  • Active Users
  • **
  • Posts: 171
    • View Profile
    • jms.lwly studio
Was just thinking about this possible feature again - would be so useful for things like staining / ageing of materials (e.g. when stucco / brick / timber material gets close to roof slate material).

Obviously this is already possible by stacking up an existing Corona Distance map, but for a big project with many roof objects it becomes a pain to manage!

Hopefully something possible in the future.