Round corners don't render.

Round corners don't render.

pcrawley
Advisor Advisor
11,663 Views
28 Replies
Message 1 of 29

Round corners don't render.

pcrawley
Advisor
Advisor

If I import a model in from another Autodesk application - say, Inventor - it brings with it the Autodesk Material assignment from the sending application.

 

In the case of the attached sample, I put "Wall Paint" on the object in Inventor, then imported it into max.

 

In the slate material editor, I can see the default "Round_Corner_Source" option - but it's not supported by either the ART or Arnold renderers.

 

Any idea how I can simulate a similar effect in max 2018 or 2019?  (Reference material here.)

 

Ideally, I'd like to find a shader solution if possible because there are hundreds of objects in hundreds of files that need updating and they don't look as good without the rounded corners provided by the old mental ray shader.

 

Peter
0 Likes
Accepted solutions (2)
11,664 Views
28 Replies
Replies (28)
Message 21 of 29

Anonymous
Not applicable

Sorry man, this is the first time I've looked at OSL. Is it possible you could screenshot the node tree please?

0 Likes
Message 22 of 29

OccultMonk
Advocate
Advocate

This is great! Does this also work for Corona render?

0 Likes
Message 23 of 29

Anonymous
Not applicable

Yes. As I replied on the Polycount forums, OSL is renderer agnostic. The whole idea is that it's an open language that any renderer can speak. I was testing a few of the maps out on 2019 and corona last night. Here's one of the default OSL shaders running in Corona interactive.

 

IqTQU2j

0 Likes
Message 24 of 29

MI66
Contributor
Contributor

Bump! As I understand OSL is supposed to be renderer independent, right? However I'm unable to get the rounded edge OSL shader posted earlier by @madsd working on Scanline (which is currently the only renderer supporting render-to-texture natively in Max). Or I'm having some difficulty setting up the graphs like @Anonymous also seemed to have earlier...?

 

OSL seems very powerful but also a bit hard to grasp and integrate to existing workflows. Really appreciate the helpful examples though in this thread and elsewhere!

0 Likes
Message 25 of 29

Anonymous
Not applicable

Vote here if you want render to texture soft edges. The idea would allow arnold render to texture rather than upgrade the already obsolete scanline

https://forums.autodesk.com/t5/3ds-max-ideas/bake-rounded-edge-shader-to-normal-maps/idi-p/7894686

0 Likes
Message 26 of 29

MI66
Contributor
Contributor

Had already voted. 🙂 You're right though that ideally it would be done via updating the modern renderers' features. It baffles me a bit how both ART and Arnold were released as replacement to Mental Ray etc. yet with limited support to all its features. Had this been a priority there would be no need for Scanline+OSL hackery for baking this stuff.

0 Likes
Message 27 of 29

torii.
Explorer
Explorer

There is a bug in this OSL.
There is a streak in the center.
Can this issue be fixed?

0 Likes
Message 28 of 29

madsd
Advisor
Advisor

This is the Thumbnail it looks like, you cannot guarantee things work there, you need to check it on a scene asset.

0 Likes
Message 29 of 29

torii.
Explorer
Explorer

Thank you for your reply.
I recently started using OSL Shaders.
I am very impressed with the various OSL Shaders you introduce.

Not just the Material Editor Slot
The same symptom appears in the actual rendered asset.

A line will appear along the X axis.

Is there a good way to prevent adjacent objects from interfering with each other? I would like to be able to detect the Edge of a single object.

0 Likes