Material converter

Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)
J.C
Licensed Customer
Posts: 1850
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

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.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
linograndiotoy
OctaneRender Team
Posts: 1352
Joined: Thu Feb 01, 2018 7:10 pm

We'll look into that, but it's not a trivial task for sure.
Andreas_Resch
Posts: 319
Joined: Sat Jul 28, 2018 6:29 am

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.
J.C
Licensed Customer
Posts: 1850
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

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 ;)
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
Andreas_Resch
Posts: 319
Joined: Sat Jul 28, 2018 6:29 am

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.
J.C
Licensed Customer
Posts: 1850
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

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.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
Andreas_Resch
Posts: 319
Joined: Sat Jul 28, 2018 6:29 am

I'll look into it, when I have some time.
Andreas_Resch
Posts: 319
Joined: Sat Jul 28, 2018 6:29 am

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
J.C
Licensed Customer
Posts: 1850
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Thank you for the quick update.
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
Andreas_Resch
Posts: 319
Joined: Sat Jul 28, 2018 6:29 am

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.
Post Reply

Return to “Blender”