Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Feature Requests => Topic started by: aaouviz on 2020-10-14, 13:26:18

Title: Distance from 'material' rather than object
Post by: aaouviz on 2020-10-14, 13:26:18
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!
Title: Re: Distance from 'material' rather than object
Post by: GeorgeK on 2020-10-14, 17:06:06
So based on Material ID?
Title: Re: Distance from 'material' rather than object
Post by: aaouviz on 2020-10-14, 17:21:37
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...
Title: Re: Distance from 'material' rather than object
Post by: maru on 2020-10-14, 17:35:55
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.
Title: Re: Distance from 'material' rather than object
Post by: Frood on 2020-10-14, 17:37:56
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



Title: Re: Distance from 'material' rather than object
Post by: burnin on 2020-10-14, 21:03:19
Yes! +1
Title: Re: Distance from 'material' rather than object
Post by: PROH on 2020-10-15, 01:34:22
Absolutely +1 for both material and object ID.
:)
Title: Re: Distance from 'material' rather than object
Post by: aaouviz on 2020-10-15, 10:51:58
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
Title: Re: Distance from 'material' rather than object
Post by: GeorgeK on 2020-10-15, 12:10:54
Yes, this would be really handy, I am reporting it for further consideration. Thanks!

(internal id=579126687)
Title: Re: Distance from 'material' rather than object
Post by: aaouviz on 2021-02-15, 14:11:23
Hi, sorry to be a pain, just wondering if this ever got explored?

Many thanks!
Title: Re: Distance from 'material' rather than object
Post by: GeorgeK on 2021-02-16, 12:19:39
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)
Title: Re: Distance from 'material' rather than object
Post by: jms.lwly on 2021-05-14, 16:33:26
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.