daz3d / DazToBlender

Daz to Blender Bridge
https://www.daz3d.com/daz-to-blender-bridge
Other
201 stars 46 forks source link

Elbow bending does not work correctly in Blender 3.3.x #154

Closed chlbrn closed 1 year ago

chlbrn commented 1 year ago

elbowbending Here is a comparison between genesis 8 female figure in Blender 3.2 and 3.3. As you can see the elbow doesn't bend correctly. It is the same file just opened with different Blender version. It works fine in Blender 3.2 but I think bending related JCMs don't work as intended in Blender 3.3.

Here is the complete description

System Info: Operating System: Windows 11 pro 22H2 Graphics card: Geforce RTX 2080ti 522.30

Blender Version 3.3.0 and 3.3.1

Daz and Bridge version Daz 4.20.0.17 Bridge 2022.2 revision 18.42

Exact steps to reproduce the error

  1. Open Daz studio and load genesis 8 basic female figure
  2. Use send to menu to open bridge
  3. Leave everything default only add JCMs to Morphs and check 'Export Morphs' option
  4. Accept all option and wait for exporting
  5. Open Blender 3.3.x and show side tab and in Daz to Blender tab hit Import New Genesis Figure button.
  6. Save file and close Blender
  7. Open Blender and load the file just saved
  8. In pose mode, rotate forearm or use IK to make elbow bend, the incorrect result will appear.

I tried installing the bridge from Daz install manager and manual installation from github, both are the same on my end. In Blender 3.3, few times it worked but most of the time it just didn't work for me. However I tied to open that file in Blender 3.2, it worked again. So it has to be an error with Blender 3.3 Any help would be appreciated

chlbrn commented 1 year ago

@danielbui78 Hi Daniel, are you still developing the bridge? Could you please take a look at this problem? Thanks in advance

danielbui78 commented 1 year ago

Yes, I'm looking into. Sorry for delays, thanks for your patience.

danielbui78 commented 1 year ago

I've been trying to get DazToBlender to break and cause the errors that you have described, but I have not yet been able to do so. I am working on updates including a troubleshooting script but these won't be completed until mid-January. Until then, please double-check the "Auto Run Python Scripts" setting and make sure it is OFF and make sure you are explicitly allowing python scripts to run every time you import instead of permanently turning it on, and make sure you have the JCM morphs present and that they are active and being applied and that the JCM is correctly linked as a driver type "Scripted Expression".

auto run python scripts

verify JCMs are present and active

driver type scripted expression

chlbrn commented 1 year ago

Thanks for your detailed reply. It seems weird to me on my PC. Most of the JCMs are totally working fine for both Blender 3.3 and 3.2 but only elbow and knee bending JCMs don't work very well. I will keep testing and try to find why.

chlbrn commented 1 year ago

@danielbui78 Hi Daniel, After some trial and error, I found some strange behavior on my end. In Blender 3.3, shape key: pJCMForeArm_75_L/R and pJCMForeArm_135_L/R doesn't update along with elbow bending. However, if I double click those shape key value in Object Data Properties tab, it works again. The problem is that when I close Blender and re-open Blender, those shape key drivers don't update again. Could you check this?

chlbrn commented 1 year ago

I tried Blender 3.4.1 yesterday. And it gave me the same result as 3.3.x I found error inside driver editor, here is the error when I just opened file: DriverError1

and after I updated dependencies it works again: DriverError2

It shows slow python expression warning but it works as intended. I think by default Blender doesn't update all driver dependencies but I don't know why. Most of the drivers work fine without warning or error. But there are at least 8 drivers are affected(2 for left arm, 2 for right arm, 2 for left leg and 2 for right leg). Can you verify this? @danielbui78

chlbrn commented 1 year ago

Hi Daniel, I think I found the cause. After disabling a 3rd party addon called 3D Hair Brush, the shape key drivers work as intended. Probably there exist some compatibility issues between DTB and 3D Hair Brush. But after all, I am able to make DTB work again.