Export OBJ with maps
lina.catfish
Posts: 25
Technical help or questions by new users? Sorry, I don't know. Please move it to where it is better, please.
I tried exporting an object as OBJ and including the maps.
The first step worked fine, but the second didn't quite work the way I wanted it to: DAZ saved the path to the maps as an absolute path. In many cases, it's not really useful, so I'm completely sure there must be a way to create relative paths for it, and that I just missed something.
But how and where?
Thanks for all suggestions!
Post edited by lina.catfish on

Comments
Where are the maps? Are they in a mapped content directory (e.g. somewhere in the My Library folder)?
OBJs that I export from Daz Studio or Blender always list the texture file by absolute path, from the drive letter in windows on down to the actual filename.
For example: map_Kd "N:/DAZ 3D/Studio/My DIM Library/Runtime/Textures/Cherubit/Clothing/Men's Casual Clothes/ES_Sweatshirt_Diffuse.jpg"
AI says:
I haven't had very good luck with these AI responses, and I haven't tried this suggestion, but you may want to try. AI also says you can configure Blender to use relative paths. I haven't tried that either.
EDIT: I was curious so I tried following the AI instructions for Daz Studio. It worked! It created a Maps folder with the texture files, and then the mtl contained relative paths to the Maps folder.
Yes, I think that the MTL file can use paths relative to its own (and the OBJ's) location, but not paths that have to back-up through parent folders as /Runtime/Textures/ would.
I think the safest way to have a relative path is to have no path, which means 'In this directory'. That can be obtained by manually editing the .mtl file and copying all the referenced files into the file with the .mtl file. It's messy, though.
Regards,
Richard
Thank you for all the help!
I tried the "Collect Maps" option (maybe my foreign language problem or a bit confusing? I would expect something like "include"... Okay, found it anyway with your help :)) and it *collected* the Base Color and create a relative path to that folder.
While it's obvious why Metallicity, Overlay, etc. aren't included - it's PBR/MR or DAZ specific - I was just wondering why Bump & Normal isn't included. But that's not a problem, just surprising.
because youre using obj which doesnt write all maps