daz3d / DazToBlender

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

Bridge causes built-in fluid simulation preview disappear #163

Open chlbrn opened 1 year ago

chlbrn commented 1 year ago

Here is the complete description

System Info: Operating System: Windows 11 pro 22H2 Graphics card: Geforce RTX 4090

Blender Version 3.3.0 and 3.4.0

Daz and Bridge version Daz 4.20.0.17 Bridge 2022.2 revision 18.42

Exact steps to reproduce the error

  1. add any mesh into the viewport(monkey or cube)
  2. while the mesh is selected, click "Object" menu and choose "Quick Liquid" option from "Quick Effects" section
  3. play the animation, you will see the liquid particles dropping down in the domain and this is default replay mode of liquid sim
  4. in Daz To Blender addon, click Import New Genesis Figure button and leave everything default(you need to export a character from Daz studio)
  5. when importing is done, try playing animation, now the liquid particles are all gone and even the frame slider stops to move

This does not mean the bridge totally break the animation system and liquid simulation system. The liquid simulation works after baking mesh. However, without previewing what liquid looks like I can only blindly tweak the simulation and I have to bake the sim to mesh every time I make some change. This causes many troubles and really consumes time. I tested 2 versions of Blender and 3 versions of video card driver, but on my end they just don't work. @danielbui78

chlbrn commented 1 year ago

In addition, enabling Daz to Blender addon will not break the liquid sim preview, the bug happens after importing any character.

chlbrn commented 1 year ago

Hi Daniel, I just found that this is not a bug caused by the bridge. I now know why this happens. Here is what really happens. Screenshot 2023-05-25 211329 This is the default scene after opening Blender without touching anything. Everything is default. Default unit, and default UI. You can see the highlighted area, the frame range is from 1 to 250 which is default as well. / / / Screenshot 2023-05-25 211412 This is I just imported a character from Daz studio. You can see now the frame range is from 0 to 0. This means you don't have more than 1 frame to animate your character or anything that moves. This is why the animation player doesn't work anymore. It works but it only works in frame 0 and it only has 1 frame to work with. To solve this issue, you just simply put the Frame Start to 1 and End to 250, then everything should work as normal. You probably need to rebake your particles and change some viewport display options of liquid sim. But it should fix the problems with animations. I've tested with latest bridge and Blender 3.4 and it works fine on my end. The one remaining problem is how to prevent Bridge resetting some viewport display options and setting the frame range to 0. Can you make some changes in code to do that?

Thanks for advance @danielbui78