Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => Topic started by: aaouviz on 2021-11-26, 16:05:21

Title: Proxy materials get confused
Post by: aaouviz on 2021-11-26, 16:05:21
Hi,

I make a proxy and the materials all get messed up. This has been happening to multiple objects/files today. Never noticed anything like this before.

Hopefully the video explains the situation well...
Title: Re: Proxy materials get confused
Post by: aaouviz on 2021-11-26, 16:30:15
Hi, sorry, more info:

Latest daily (Nov 5 I think?), Max 2021. Windows 10.

Here is a screenshot of the material, if it helps? It's a pretty heft multi material with 21 layers. I suspect this is the cause, but I can't be sure...
Title: Re: Proxy materials get confused
Post by: maru on 2021-12-08, 16:01:10
Hi, sorry for the delay. Next time, in such cases, I would highly advise contacting us at https://corona-renderer.com/link/contact-support

I have some further questions about this:
1. Is the original car model made of separate objects or is it a single mesh with multiple elements?
2. Which exact version of Corona and 3ds Max are you using?
3. Can you list simple steps how to reproduce this issue with some simple geometry like boxes?

I _think_ what happens here is:
- your original car is made of multiple separate meshes each having a different material applied to it
- you convert that into a single proxy object which results in a single mesh with multiple elements
- this proxy has only one material applied to it (since a single proxy cannot have multiple materials applied to it - like the original objects did)

I am sure that the proxy is created with different material IDs so one solution would be to create a new multi/sub material, apply it to the proxy object, and find out which of the original materials should be plugged into which of the multi/sub slots.
One way to find out would be probably to temporarily convert the proxy into a mesh and check which material IDs are applied to which elements. Alternatively, you could plug some odd-looking material (e.g. pure red) into each slot of the multi/sub material and this way find out which mesh element should be using which material ID.

I am afraid at this point we cannot offer a one-click solution, but we may improve this in the future.
Title: Re: Proxy materials get confused
Post by: maru on 2021-12-08, 16:02:03
Another idea: convert all the original car objects to editable poly and attach them together first. This will basically crate a new multi/sub material for you. Then convert this mesh into a Corona Proxy and use the same multi/sub material.