Blender OBJ export - Please help

marblemarble Posts: 7,500
edited June 2022 in Daz Studio Discussion

This is something I have been doing for years but now I can't get it to work.

I'm exporting clothing from DAZ Studio to Blender to make morphs. It is a while and several updates of both applications since I have exported anything but I have not seen any reports that it has stopped working.

DAZ Studio 4.20.1.43 and Blender 3.2.0.

I used to have screen shots of my export/import setting but I lost them and that is probably why I am not getting it right now. Every morph is reported as a geometry mismatch. Please could someone check my settings as shown in the attached screen shots?

 

(1)Export from DAZ.jpg
655 x 728 - 71K
(2) Import to Blender.jpg
298 x 563 - 27K
(3) Export from Blender.jpg
302 x 877 - 41K
(4) DAZ Morph Loader.jpg
605 x 816 - 76K
(5) Error Morph Loader.jpg
587 x 172 - 11K
Post edited by marble on

Comments

  • marblemarble Posts: 7,500

    By the way, I am hiding G8F when exporting the dress from DAZ Studio. I know that is easy to forget.

  • felisfelis Posts: 4,317
    edited June 2022

    Does the item have subD? You have to set it to base resolution.

    And no objects paranted, e.g. buttons?

    Post edited by felis on
  • marblemarble Posts: 7,500

    Yep I set it to base resolution.  No buttons. 

  • PerttiAPerttiA Posts: 10,024

    It will probably take some 4 hours before I get home to check, but a few things...

    - Ignore invisible nodes, maybe not a good idea if the clothing does have some => Vertex count would not match when importing back
    - Write separate objects... If this meant the exported item is not one object in Blender, there is not one time I had been able to re-import it back to DS (as a morph)
    - If making morphs, no need to include textures, normal maps, UV's etc...

  • Richard HaseltineRichard Haseltine Posts: 100,810

    Which item is it?

  • PerttiAPerttiA Posts: 10,024
    edited June 2022

    Ok, loaded the "Genesis 8 Female Dev Load", dialed Mabel on it. Loaded a shirt on her, hid G8F, exported the shirt to OBJ and made changes in Blender 2.79, exported the OBJ from Blender and imported to DS 4.15 as a morph for the shirt - No problems getting the morph working.

    DS_Exp.JPG
    607 x 424 - 46K
    BrenderImp.JPG
    239 x 258 - 18K
    BrenderExp.JPG
    241 x 596 - 29K
    DS_Imp.JPG
    475 x 490 - 44K
    Post edited by PerttiA on
  • felisfelis Posts: 4,317

    Number of vertices must be different.

    Try to select the dress in the scene tab and see number of vertices&faces.

    Then try to import your morphed dress and compare with number of vertices&faces.

  • PerttiAPerttiA Posts: 10,024

    When you are hiding G8F, did you remember to hide eyelashes/brows/etc. also? they don't hide with the figure they are fitted to.

  • marblemarble Posts: 7,500
    edited June 2022

    Thanks for the replies. It is just waking up time here in NZ so I will have a look at these suggestions after breakfast. I can say that the G8F I used was the Development model so no brows of lashes. The  dress was a maid's outfit but I will check which one later [EDIT: Nikisatez product]. I also tried on a swimsuit (the High Cut one in the sale these last few days) same results. 
     

    I tried to just export back from Blender without making any modifications. Same error. I was also careful to export only the selected object (clothing) so the G8F should not be an influence on the import back to DAZ Studio. 

    Post edited by marble on
  • PerttiAPerttiA Posts: 10,024

    You can test your DS export/import settings by exporting the OBJ and importing it as a morph right after - It will eliminate problems with Blender settings and ensure that your DS settings match.

  • marblemarble Posts: 7,500
    edited June 2022

    PerttiA said:

    You can test your DS export/import settings by exporting the OBJ and importing it as a morph right after - It will eliminate problems with Blender settings and ensure that your DS settings match.

     

    Good thinking. It failed with the same error. No Blender involved. Sorry, I imported the wrong version. No it does not fail if I just export and import without going to Blender.

    I'll pick a few other items of clothing and try them.

    Post edited by marble on
  • marblemarble Posts: 7,500
    edited June 2022

    Now it is not failing with the Blender export either. I could tear my hair out! I have no clue what changed between me going to bed and getting up just now but it seems to be working. I just exported the dress again to try @PerttiA 's suggestion (which imported fine) and then used the same export to import into Blender which I sent back to DAZ Studio unmodified and lo and behold no error.

    My guess is that while I was sure I remember setting the dress to base resolution yesterday, perhaps I didn't on one occasion and that was the version I was using to test my exports. I can't think of another explanation.

    I wish there was a GoZ equivalent for Blender as I can't afford ZBrush.

    MLP Success.jpg
    586 x 552 - 17K
    Post edited by marble on
  • juvesatrianijuvesatriani Posts: 556

    Do you ever try using  this tool to bring object from Blender to DAZ  ?  

    I mostly using Diffeo to import into blender then after doing some editing I send back using this tool .

    In DAZ i`m Exporting  (out) the new object  as OBJ with DAZ Studio preset scale size , tnen import back as morph  using Loader morph pro 

    Yeah it tedious but at least foe me I dont have to deal with scale problem and numbers 

  • marblemarble Posts: 7,500
    edited July 2022

    juvesatriani said:

    Do you ever try using  this tool to bring object from Blender to DAZ  ?  

    I mostly using Diffeo to import into blender then after doing some editing I send back using this tool .

    In DAZ i`m Exporting  (out) the new object  as OBJ with DAZ Studio preset scale size , tnen import back as morph  using Loader morph pro 

    Yeah it tedious but at least foe me I dont have to deal with scale problem and numbers 

     

    My memory is getting worse as I get older so I can't remember things I have read about in months past but I have clearly read that thread about the @millighost add-on because when I clicked on the link I went to page three of the thread. I just don't remember reading it. I think I may have decided that it is not what I am looking for because it seems to work in one direction only - Blender to DAZ Studio. I am hoping for an equivalent to GoZ which allows to export and import quickly without having to manually export and save OBJ files with all the complex settings exactly right. I know that @DaremoK3 was writing such a script which looked promising but it seems to have been shelved.

    Post edited by marble on
  • DaremoK3DaremoK3 Posts: 798

    Temporarily shelved while I work on other addons to see if I can get past the stumbling blocks trying to work with all the undocumented sections in the Dazscript API.

    My JavaScript books all want me to create web pages, and I can do the basics over and over all day.  It's the advanced scripting bugs I revisit when I have time that I still can not rectify that are preventing me from any kind of release.

    Also, I can not keep up with all the changes that happen with both software.  As of now, if I was to release tommorrow, you would be relegated to use Daz Studio 4.12 and Blender 2.83  --  I have no testing/knowledge that it will work beyond that with all the changes to date.

  • marblemarble Posts: 7,500

    DaremoK3 said:

    Temporarily shelved while I work on other addons to see if I can get past the stumbling blocks trying to work with all the undocumented sections in the Dazscript API.

    My JavaScript books all want me to create web pages, and I can do the basics over and over all day.  It's the advanced scripting bugs I revisit when I have time that I still can not rectify that are preventing me from any kind of release.

    Also, I can not keep up with all the changes that happen with both software.  As of now, if I was to release tommorrow, you would be relegated to use Daz Studio 4.12 and Blender 2.83  --  I have no testing/knowledge that it will work beyond that with all the changes to date.

    Ah Ken, please give it a shot at bringing it up to date. I would pay for it in final form but am willing to test for you again if needs be. As for the website stuff ... if you get good at it you could hire your services out to DAZ who are in dire need of a decent web programmer.

Sign In or Register to comment.