Page 1 of 2

Material converter

Posted: Wed Feb 07, 2024 1:50 pm
by J.C
Hi, is is possible to improve Cycles material converter a bit?

It could:
  • 1. Convert all image nodes to Octane nodes not only those connected to Cycles Principled node.
    2. Cycles Gradient could be converted to Octane Gradient map.
    3. Cycles Hue/Saturation/Value node could be converted to Octane Color Correction node.
    4. Cycles Mapping node to Octane 3d Transform node.
    5. Cycles Invert Color to Octane Invert Texture.
    6. Cycles Mix node to Octane Mix Texture.

Re: Material converter

Posted: Sun Feb 18, 2024 9:36 am
by linograndiotoy
We'll look into that, but it's not a trivial task for sure.

Re: Material converter

Posted: Wed Feb 21, 2024 4:31 pm
by Andreas_Resch
I've created a rudimentary addon that should be able to do the things you need. For now only a basic set of nodes is supported, but I might add more over time.

http://www.argfx.at/upload/octane_tools_materials.zip

After installing, you will have a panel named "Octane Tools" in the Shader Editor. The first button converts the nodes. All the non-converted nodes are colored red. By clicking the second button, you can remove them.

Re: Material converter

Posted: Wed Feb 21, 2024 10:06 pm
by J.C
Andreas_Resch wrote:I've created a rudimentary addon that should be able to do the things you need. For now only a basic set of nodes is supported, but I might add more over time.

http://www.argfx.at/upload/octane_tools_materials.zip

After installing, you will have a panel named "Octane Tools" in the Shader Editor. The first button converts the nodes. All the non-converted nodes are colored red. By clicking the second button, you can remove them.
You are the man! I guess it was not trivial ;)

Re: Material converter

Posted: Wed Feb 21, 2024 10:16 pm
by Andreas_Resch
Not trivial, but not too hard either. My programming days are way in the past. So the code surely isn't as slick as it could be. But if it does the job, noboby will care, I guess.

Let me know if there are any issues. I will add more nodes little by little if I have some time.

Re: Material converter

Posted: Wed Feb 21, 2024 11:05 pm
by J.C
Some ideas:
1. Is it possible to convert multiple materials with one click?
2. Is it possible to use simple Mix node instead of Grouped composite nodes.
3. Have you considered using Universal material instead of Standard one? Standard material does not have controls for BRDF model.

Re: Material converter

Posted: Thu Feb 22, 2024 7:53 am
by Andreas_Resch
I'll look into it, when I have some time.

Re: Material converter

Posted: Fri Feb 23, 2024 12:45 pm
by Andreas_Resch
I've updated the addon. You can now choose if you want to convert to SSM or Universal Material. There's also a checkbox. When it's unchecked, the Mix/Add/Multiply nodes will be used instead of the node group. Still working on the conversion for all materials - it's a bit tricky for a non-pro.

http://www.argfx.at/upload/octane_tools_materials.zip

Re: Material converter

Posted: Fri Feb 23, 2024 9:39 pm
by J.C
Thank you for the quick update.

Re: Material converter

Posted: Sun Feb 25, 2024 5:14 pm
by Andreas_Resch
J.C wrote:Some ideas:
1. Is it possible to convert multiple materials with one click?
2. Is it possible to use simple Mix node instead of Grouped composite nodes.
3. Have you considered using Universal material instead of Standard one? Standard material does not have controls for BRDF model.
FYI ... you might have seen in the other thread, that SSM is energy conserving. In case it matters to you.