Simulation Error - Requesting assistance
All,
I'm using dForce Long Wet Hair for a scene, when i go to simulate it, it throws an error, this is what the logs show:
2021-08-20 12:50:28.464 Total Simulation Time: 28.21 seconds
2021-08-20 12:51:22.780 Found 135 unused vert(s) on the geometry of node "Nora". Removing unused vert(s) from sim.
2021-08-20 12:51:22.997 Found 135 unused vert(s) on the geometry of node "Kim". Removing unused vert(s) from sim.
2021-08-20 12:51:23.299 Found 105 unused vert(s) on the geometry of node "Colt". Removing unused vert(s) from sim.
2021-08-20 12:51:23.483 Found 135 unused vert(s) on the geometry of node "Astrid". Removing unused vert(s) from sim.
2021-08-20 12:51:41.434 WARNING: ..\..\..\src\dzdynamicsengine.cpp(3083): ERROR: clEnqueueNDRangeKernel (-4)
2021-08-20 12:51:41.714 WARNING: ..\..\..\src\dzopenclkernelfactory.cpp(32): Open CL notify: CL_MEM_OBJECT_ALLOCATION_FAILURE error executing CL_COMMAND_NDRANGE_KERNEL on NVIDIA GeForce RTX 2070 SUPER (Device 0).
Any help with what this means, and how to rectify it would be appreciated :)
Comments
Seems pretty self-explanatory to me.
How much RAM do you have, and what are the Long Wet Hair's quality settings?
The higher the settings, the more memory is required to store the vertex positions.
EDIT:
I've just now realized "Nora", "Kim", "Colt", and "Astrid" are probably figures in your scene? That is waaaaaaaay too many for dForce to handle at once. You need to hide all the ones you don't need.
I've got 16GB system RAM, and these are the specs on the card:
Card name: NVIDIA GeForce RTX 2070 SUPER
Manufacturer: NVIDIA
Chip type: NVIDIA GeForce RTX 2070 SUPER
DAC type: Integrated RAMDAC
Device Type: Full Device (POST)
Device Key: Enum\PCI\VEN_10DE&DEV_1E84&SUBSYS_8701103C&REV_A1
Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER]
Device Problem Code: No Problem
Driver Problem Code: Unknown
Display Memory: 16139 MB
Dedicated Memory: 8011 MB
Shared Memory: 8128 MB
Current Mode: 2560 x 1440 (32 bit) (144Hz)
I'm not too familiar with the intricacies of DAZ, or hardware usage and settings, which is why i was asking. I've done simulations on plenty of things. I've run across this error before, and rebooted the system and it worked after reboot, no such luck with the long wet hair. I ran the scene optimizer, and it shows the wet hair with a texture map of 4096x4096 resolution, but that's probably straying off topic. Nothing in the parameters tab for the hair is labeled as "Quality Settings", so im not sure what you're referring to, again, im pretty new to all this. The parameters for the hair are as follows though:
View SubD Level: 2
Render SubD Level (Minimum): 2
SubDivision Algorithm: Catmark
Edge Interpolation: Sharp Edges
SubDivision Normals: Smoothed
Push Modifier: 0
Simulation Object Type: Dynamic Surface
Simulation Base Shape: Use Simulation Start Frame
Freeze Simulation: Off
And that's it, everything else in the parameters tab is for shaping/morphing. I hope that answers your question?
Also, the previously mentioned figures, Nora, Kim, Colt and Astrid have no dForce objects on them, and are set to be frozen during the simluation, should i still remove them?
Alright, i took your suggestions in and removed some actors from the scene. It was one actor in particular causing the issue. Colt. I removed them in a cycle, to see who the offending actor was. Removing Colt allowed the simulation to go off without a hitch, even with the other two present. I appreciate the input
When dealing with simulation, texture size doesn't matter.
What matters is how many polygons are in your scene.
The dForce hair has to test for collisions against every single other polygon, so if you have 1,000,000 polygons in your scene, that's one million calculations for every polygon the hair has. To the best of my knowledge, Daz doesn't do any sort of collision culling like a video game, so you need to remove anything that doesn't affect the simulation manually. You don't need to delete them; just hiding them in the outliner is sufficient. I can't remember off the top of my head if simulation takes SubD settings into account, so turning that down to 0 may also speed up the simulation.
Well, now it's just outright trolling me. I removed all excess fluff from the scene, and it simulated it just fine .... once. Then the error returns for all following simulation attempts, and my scene is down to bare bones. The hair at this point is only colliding with itself, and the actor, nothing else is present. I feel like my hardware should be able to handle this. Any ideas?
Try shutting Daz Studio down and restarting it. Daz is generally terrible with memory usage, so it might be caching the old data.
Apologies for the late response, yeah that seems to do the trick. I appreciate the advice :)