Material converter

Forums: Material converter
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Material converter

Postby J.C » Wed Feb 07, 2024 1:50 pm

J.C Wed Feb 07, 2024 1:50 pm
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1723
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Re: Material converter

Postby linograndiotoy » Sun Feb 18, 2024 9:36 am

linograndiotoy Sun Feb 18, 2024 9:36 am
We'll look into that, but it's not a trivial task for sure.
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1157
Joined: Thu Feb 01, 2018 7:10 pm

Re: Material converter

Postby Andreas_Resch » Wed Feb 21, 2024 4:31 pm

Andreas_Resch Wed Feb 21, 2024 4:31 pm
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.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Material converter

Postby J.C » Wed Feb 21, 2024 10:06 pm

J.C Wed Feb 21, 2024 10:06 pm
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1723
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Re: Material converter

Postby Andreas_Resch » Wed Feb 21, 2024 10:16 pm

Andreas_Resch Wed Feb 21, 2024 10:16 pm
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.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Material converter

Postby J.C » Wed Feb 21, 2024 11:05 pm

J.C Wed Feb 21, 2024 11:05 pm
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1723
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Re: Material converter

Postby Andreas_Resch » Thu Feb 22, 2024 7:53 am

Andreas_Resch Thu Feb 22, 2024 7:53 am
I'll look into it, when I have some time.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Material converter

Postby Andreas_Resch » Fri Feb 23, 2024 12:45 pm

Andreas_Resch Fri Feb 23, 2024 12:45 pm
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
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am

Re: Material converter

Postby J.C » Fri Feb 23, 2024 9:39 pm

J.C Fri Feb 23, 2024 9:39 pm
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1723
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Re: Material converter

Postby Andreas_Resch » Sun Feb 25, 2024 5:14 pm

Andreas_Resch Sun Feb 25, 2024 5:14 pm
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.
Andreas_Resch
 
Posts: 269
Joined: Sat Jul 28, 2018 6:29 am
Next

Return to Blender


Who is online

Users browsing this forum: No registered users and 32 guests

Sat Apr 27, 2024 6:58 pm [ UTC ]