obj with mtl and texture import?

KimberSueKimberSue Posts: 353
edited December 1969 in Daz Studio Discussion

Hi, I've been reading the forum but nothing I find seem to help so I want find out if what need to do is possible before spend more time trying to figure it out.

Marvelous designer has a new export obj that include the obj, .mtl and texture (png, jpg). See example image below.

I've tried putting them all in the same folder and all in the same runtime folder but only the basic obj loads. Any thought what else to do?

Thank you

daz_folder.png
818 x 358 - 32K

Comments

  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    KimberSue said:
    Hi, I've been reading the forum but nothing I find seem to help so I want find out if what need to do is possible before spend more time trying to figure it out.

    Marvelous designer has a new export obj that include the obj, .mtl and texture (png, jpg). See example image below.

    I've tried putting them all in the same folder and all in the same runtime folder but only the basic obj loads. Any thought what else to do?

    Thank you


    Try opening the mtl file in a text editor (Notepad) and see where it is looking for the texture file to be found. Mtl files are NOT the best at getting textures into different programs. They generally provide only basic info that has a good likelihood of having absolute path information for image mapped textures.

    In DS, when the obj is loaded, go to the Surfaces pane and under Diffuse, the box on the left side of the Color line is for loading the texture files. Click on it, select 'Browse' and go to the folder you have the file in.

  • KimberSueKimberSue Posts: 353
    edited December 1969

    Thanks, I've tried adding the texture in but all the setting where wrong. My problem is that I can very quickly make wonderful clothing in Marvelous Designer but moving that object with texture setting (texture angles, strength, transparency, etc..) to Daz is pretty much impossible at this time. I had hoped the mtl would help fix that.

    This is the mtl file but I don't understand them well enough to even know if the setting might be correct. I added a picture of the dress with the correct setting that I'm trying to move to daz.

    MTL Exporter v1.0 by Seungwoo Oh at CLO - Virtual Fashion Inc.
    newmtl Material1815
    Ka 0.136194 0.079723 0.142837
    Kd 0.146913 0.085998 0.154079
    Ks 0.023529 0.023529 0.023529
    Ns 10.000000
    illum 2
    d 1.000000
    newmtl Material1809
    Ka 0.847059 0.847059 0.847059
    Kd 0.913725 0.913725 0.913725
    Ks 0.639216 0.070588 0.752941
    Ns 5.000000
    illum 2
    d 0.630000
    map_Ka TSesumII-lace03_2.png
    map_Kd TSesumII-lace03_2.png
    newmtl Material1800
    Ka 0.136194 0.079723 0.142837
    Kd 0.146913 0.085998 0.154079
    Ks 0.000000 0.000000 0.000000
    Ns 5.000000
    illum 2
    d 1.000000
    map_Ka TSesumII-lace03_2.png
    map_Kd TSesumII-lace03_2.png

    Island_Dress_Close_Up.png
    1055 x 682 - 599K
    Side_MD_Dress_for_Genesis_Female_2.png
    943 x 682 - 116K
  • SpottedKittySpottedKitty Posts: 7,232
    edited December 1969

    There is one thing that might be happening here (it's bitten me quite a few times until I realised what was going on). The .obj .mtl and textures files all work together — you've definitely moved them all into the same folder for import into D|S? The .mtl file you posted looks good, but the .obj file must point to the .mtl file. Open the .obj file in a text editor and look at the very beginning, there should be a reference to the .mtl file. Check that this file name is right, and make sure the file name doesn't have a folder path in front of it. If the .obj file has a wrong reference to the .mtl file, then it'll never find it, and the base colours and textures won't be applied when you import the .obj.

  • KimberSueKimberSue Posts: 353
    edited December 1969

    There is one thing that might be happening here (it's bitten me quite a few times until I realised what was going on). The .obj .mtl and textures files all work together — you've definitely moved them all into the same folder for import into D|S? The .mtl file you posted looks good, but the .obj file must point to the .mtl file. Open the .obj file in a text editor and look at the very beginning, there should be a reference to the .mtl file. Check that this file name is right, and make sure the file name doesn't have a folder path in front of it. If the .obj file has a wrong reference to the .mtl file, then it'll never find it, and the base colours and textures won't be applied when you import the .obj.

    I tried removing the mtllib from in front of island dress2.mtl which is the name of the mtl file but that didn't change anything.

    I opened the obj in a txt file and got:

    # OBJ Exporter v1.2 by Jaden Seungwoo Oh at CLO Virtual Fashion Inc.
    mtllib island dress2.mtl
    v 11.949935 151.811874 -5.235263
    v 12.984477 151.764099 -5.217089
    v 14.424354 151.760757 -5.148978

    Any thoughts?

    Thanks

  • BejaymacBejaymac Posts: 1,897
    edited December 1969

    DS isn't loading them because it doesn't have a clue where to begin looking for them, all the mtl is telling DS is the name of the textures to stick in the Diffuse & Ambient channels, but not where on you computer to find them.

    If the textures are in the same folder as the mtl then you might get away with a simple change, edit the mtl and change map_Kd TSesumII-lace03_2.png to map_Kd "/TSesumII-lace03_2.png", if that doesn't work then you will need to use the full pathway including the drive letter.

  • none01ohonenone01ohone Posts: 862
    edited March 2014

    Here's an example of the format.

    newmtl chrome_grill_front_p07
    Ns 0.000000
    Ka 0.000000 0.000000 0.000000
    Kd 0.203922 0.203922 0.203922
    Ks 0.450981 0.450981 0.450981
    Ni 1.000000
    d 1.000000
    illum 2
    map_Kd C:\Users\Name\Documents\DAZ 3D\Studio\My Library\resources\Textures\Automobiles\Hunster3D\Car\logo.jpg

    I just browse to the Texture location with Windows explorer and copy the navigation bar. It switches format if you click on the folder at the start of the bar.(Win8). On occasion the the length of the text can be too long, then just enclose with quotes. So:

    map_Kd "C:\Users\Name\Documents\DAZ 3D\Studio\My Library\resources\Textures\Automobiles\Hunster3D\Car\logo.jpg"
    Is also valid.

    Hope this helps.

    Post edited by none01ohone on
  • SpottedKittySpottedKitty Posts: 7,232
    edited December 1969

    KimberSue said:
    I tried removing the mtllib from in front of island dress2.mtl which is the name of the mtl file but that didn't change anything.

    It won't change anything — I said remove the folder path, "mtllib" isn't a folder path, it's the command in the .obj file that tells the importing program to expect a file name. You took out the command, so D|S doesn't know what to do with the (to it) random characters on that line.

    One possibility is the file name itself. The .obj file format is very, very old, I'm fairly sure before Windows and the original MacOS operating systems. You have a file name with a space in it, so the file name might be getting chopped short at the space. I've noticed this when I convert meshes using PoseRay, a file loaded as "file name.3ds" becomes "file_name.obj" when I export it. Try going back to your original model in Marvelous Designer and change the name so it doesn't have a space.

  • KimberSueKimberSue Posts: 353
    edited December 1969

    KimberSue said:
    I tried removing the mtllib from in front of island dress2.mtl which is the name of the mtl file but that didn't change anything.

    It won't change anything — I said remove the folder path, "mtllib" isn't a folder path, it's the command in the .obj file that tells the importing program to expect a file name. You took out the command, so D|S doesn't know what to do with the (to it) random characters on that line.

    One possibility is the file name itself. The .obj file format is very, very old, I'm fairly sure before Windows and the original MacOS operating systems. You have a file name with a space in it, so the file name might be getting chopped short at the space. I've noticed this when I convert meshes using PoseRay, a file loaded as "file name.3ds" becomes "file_name.obj" when I export it. Try going back to your original model in Marvelous Designer and change the name so it doesn't have a space.

    Thanks to everyone. It's late and change to the full file name don't change anything. Tomorrow when I am not so tired I plan to try the file name with underscore and/or full file paths.

  • KimberSueKimberSue Posts: 353
    edited March 2014

    First I want thank you all for the help you gave me.

    Second: As long as the file name when export has an underscore and the uv map setting is unchecked it works very well.

    I put a quick tutor up here with pictures: http://imaginative3d.com/export-marvelous-designer-to-daz/


    Kimberly

    Post edited by KimberSue on
Sign In or Register to comment.