1
[Max] Daily Builds / Re: The new Corona Converter feedback thread
« on: 2021-10-12, 13:34:25 »
I made a version that adds a "ignore legacy materials" checkbox, which, unsurprisingly, ignores legacy materials.
https://gist.github.com/ejut/68f88069f7b2fbb4765d41a2803693fc
Download it and place the .ms file in C:\Program Files\Corona\Corona Renderer for 3ds Max\20XX\Scripts. Make a backup of the original, of course.
The only actual change besides the UI is to the convertSceneMtlsMaps function, from:
That said, all of the conversions being done are solid in theory, but fail due to incorrectly made materials. Learning why and how to avoid it is valuable.
https://gist.github.com/ejut/68f88069f7b2fbb4765d41a2803693fc
Download it and place the .ms file in C:\Program Files\Corona\Corona Renderer for 3ds Max\20XX\Scripts. Make a backup of the original, of course.
The only actual change besides the UI is to the convertSceneMtlsMaps function, from:
Code: [Select]
fn convertSceneMtlsMaps ErrorReport:true =(
...
for supportedMtlClassName in converterTempData.supportedMtlClassNames do ( -- Where supportedMtlClassName.creatable.
...
to Code: [Select]
fn convertSceneMtlsMaps ErrorReport:true =(
...
local supportedMtlClassNames = copy converterTempData.supportedMtlClassNames #noMap
if matConvMethods.owner.converterSettings.ignoreLegacyMaterials == true do (
local idx = findItem supportedMtlClassNames "CoronaLegacyMtl"
if idx != 0 do (
deleteItem supportedMtlClassNames idx
)
)
for supportedMtlClassName in supportedMtlClassNames do ( -- Where supportedMtlClassName.creatable.
...
That said, all of the conversions being done are solid in theory, but fail due to incorrectly made materials. Learning why and how to avoid it is valuable.