MTL Node setup?

Forums: MTL Node setup?
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

MTL Node setup?

Postby voon » Wed Jan 27, 2016 6:45 am

voon Wed Jan 27, 2016 6:45 am
Importing OBJ with MTL creates the meshes and material names .. but no nodes. I have to painfully recreate manually everything in the MTL. Is it possible to have this automated somehow? So that it also creates materials with the glossy shader, using the spec, diff etc maps specified in MTL files?
voon
Licensed Customer
Licensed Customer
 
Posts: 527
Joined: Tue Dec 17, 2013 6:37 pm

Re: MTL Node setup?

Postby grimm » Wed Jan 27, 2016 8:12 am

grimm Wed Jan 27, 2016 8:12 am
This is an issue with Blender. :( Blender doesn't have a good way to convert nodes to mtl as it's not straightforward to do so. The plugin uses the same node system that Cycles uses so it has the same limitations. It's also a limitation of the mtl (obj) format which doesn't understand nodes. I think we are moving past obj as a viable format and it's showing it's age a lot.
Linux Mint 20 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 460.56
User avatar
grimm
Licensed Customer
Licensed Customer
 
Posts: 1321
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Re: MTL Node setup?

Postby voon » Wed Jan 27, 2016 12:53 pm

voon Wed Jan 27, 2016 12:53 pm
Hm .... how would a material like this translate to Blender or Octane then:

newmtl dark_metals
Ka 0.191202 0.191202 0.191202
Kd 0.191202 0.191202 0.191202
Ks 0.027321 0.027321 0.027321
Ns 0.498039
d 1.000000
illum 2
map_Kd objects\spaceships\ships\aegs\retaliator\textures\dark_metals_diff.dds
map_bump objects\spaceships\ships\aegs\retaliator\textures\dark_metals_ddna.dds
decal objects\spaceships\ships\aegs\retaliator\textures\dark_metals_diff.dds
map_Ns objects\spaceships\ships\aegs\retaliator\textures\dark_metals_spec.dds
map_d objects\spaceships\ships\aegs\retaliator\textures\dark_metals_blnd_diff.dds

I'm confused by the required setup.

Kd seems to be the diffuse texture for a glossy shader.
map_bump seems to be the colored normal map
map_Ns seems to be the specmap for the specular input

But I don't understand a second texture decal and the "blend" texture map_d

And what's with the color definitions in the header (Ka, Kd, Ks), if textures are being used? It seems MTL assumes some kind of mixing is going on, but even after reading various MTL references, I didn't quite get it :/ I assume it's some kind of mix texture / mix material, controlled by the map_d for mixing or something. But map_Kd and decal reference even the same map (is this just a lazy MTL file or does this actually make any sense?). In other cases, there's two bump lines in a material etc. Not sure if I'm suppsoed to mix those to feed them into the normal input in octane.

Actually, is there a document easily explaining how you would create an Octane material, starting with an MTL description? I have a real hard time googling one.
voon
Licensed Customer
Licensed Customer
 
Posts: 527
Joined: Tue Dec 17, 2013 6:37 pm

Return to Blender


Who is online

Users browsing this forum: No registered users and 22 guests

Sun Apr 28, 2024 3:55 pm [ UTC ]