Chaos Corona Forum

Chaos Corona for Cinema 4D => [C4D] Daily Builds => Topic started by: Börje on 2020-09-24, 15:53:37

Title: C4D crashes when selecting "Corona Shared" Shader in material
Post by: Börje on 2020-09-24, 15:53:37
I have the following issue:

I downloaded i. e. the following material from the corona materials Website:
https://www.corona-materials.de/en/material-library/metal/anodized-aluminium/277

Obviously this material has been made with a prior version of corona. In the bump channel there is a "corona shared" texture loaded (showing only black!). When I now click on "select shader" Cinema 4D crashes.

I tried this with R21, S22 and R23 using the daily build 7 of corona renderer 6 on Mac OS 10.14.6.

When I open the Material in Node editor the corona shared texture isn't shown at all.
Actually I must admit that I don't quite know what this corona shared shader is good for. Obviously not all used textures are loaded properly…

I just checked: same problem if I try this on a whole new corona material which I created from scratch…


Title: Re: C4D crashes when selecting "Corona Shared" Shader in existing material
Post by: TomG on 2020-09-24, 15:57:10
In order to allow one map to be plugged into multiple slots and/or materials, we have to create a Shared Shader to let that happen.

Previously, this shader would become visible in the node editor at times, though it is of no practical use to the user. This was fixed in the latest releases so that it is never visible and only exists under the hood and behind the scenes.

Probably a good idea to upload the scene and the bugreports.txt from the crash.

Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: Börje on 2020-09-24, 16:59:06
Actually this happens also in a blank new scene:

Now I get a "Cinema 4D: Application Error". The BugReport is attached…

Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: TomG on 2020-09-24, 17:07:43
Never try to create one manually :) It would be good to remove that option so we will look into that, but meantime there's no need nor use nor benefit to creating one, so simply don't create one :) (If one is needed, when working in the Corona Node Material editor, it will be created automatically and behind the scenes)

BTW, what happens if you work with your first problem material inside the Corona Node Material Editor?
Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: Börje on 2020-09-24, 17:13:49
The Corona Shared Texture doesn't show up in node editor.

The thing is that some "scratch" textures seem not to be shown in the material although there seems to be used some in the "tex" subfolder.

I attach this scene with the whole material as downloaded form corona-materials.com.

Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: TomG on 2020-09-24, 17:48:30
Right, the Shared Shader should never show up at all. It is of no use to you as a user, it's purely an under-the-hood thing, and allows one map to be connected to multiple slots in a material or even into multiple materials. So definitely never create one, and for any materials where it shows up in the native C4D editors, I'd suggest using the Corona Node Material Editor to edit it instead (it would be the only way to get a proper look at how the material is set up).

(BTW we have a task set up to remove it from showing in the dropdown list, just as it was removed from the right click in the Node Material Editor - so we'll make it so you can't create one manually in the future. Meantime, don't :) )
Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: Börje on 2020-09-24, 18:04:42
OK. Got that and will try to keep that in mind.

Nevertheless the program shouldn't crash, right?
Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: TomG on 2020-09-24, 18:34:25
Probably not on the crash, but then the crash might be avoided by having the shared shader hidden away :) So we shall see!
Title: Re: C4D crashes when selecting "Corona Shared" Shader in material
Post by: mmarcotic on 2020-10-05, 08:48:47
This should no longer be happening in the latest Daily build from 03/10. Give it a shot!

Thanks,
Jan