Jump to content

Solver Sop - Allow Caching To Disk Location


Recommended Posts

Hello,

I'm running the Solver Sop.

I checked "Cache Simulation" as well as "Allow Caching To Disk".

Where can we find this files on disk?

I'm running some boolean operations on deforming geometry in the Sop Solver and it uses up all my RAM eventually, so now I'm trying "Allow Caching To Disk" but it doesn't say where it saves these files. I don't see them in the HOUDINI_TEMP location, I don't where they could be..

 

Link to comment
Share on other sites

If I were you I'd avoid using that checkbox and instead just use a filecache node to cache the output of the solver.


As a personal note though, booleaning deforming geometry inside a SOP solver sounds like the kind of horror you'd see in a psychological thriller.
If at all possible I would strongly suggest seeing if any of the parts you just described can be avoided since all of them combined could be a monster consuming a lot of resources.

If possible maybe you could share your HIP file?

Link to comment
Share on other sites

  • 3 weeks later...

Hello,

Yes, it pretty horrible.

Here's an example hip file. The hip file runs fine, but in my case I have a lot of high poly geo.

It's basically a progressive boolean. Doing the boolean each frame based on the results of the previous frame.

I have been able to use a File Cache but it takes a long time.

Can you think of any other way to do this?

image.png.5e24162bc49cd0689ecc1883d04a0601.png

solversopbool_odforce.hip

Edited by fell00
Link to comment
Share on other sites

The example I uploaded works for non-deforming geometry but for deforming geometry using the solver sop won't work anyways because it changes shape every frame.

I found a solution though.

To boolean deforming geometry you can use a trail sop on your cutter geometry to grow it.

So you have a growing cutter that follows behind your original cutter.

Then convert the cutter to sdf and back to polygons. Good to cache it.

Then boolean with that cutter and cache it out.

I think I also prefer this method with static geometry than using the solver sop.

Edited by fell00
  • Thanks 1
Link to comment
Share on other sites

Hey @fell00,
Great that you found a solution! I'll attach a hipfile here with the way I would go about something like this. It essentially boils down to not using booleans at all but rather use the "vdb combine" node. Doing boolean-like operations but with VDB's is in my experience WAY more stable, however, it comes at the cost of having to compute the volumes, both converting the geometry to a volume and then back again at the end. But, the times I've needed something like this it has been a preferable alternative to dealing with the booleans unreliable nature.

Hope it can help!

deforming_boolean_alternative.hiplc

Link to comment
Share on other sites

Thanks for posting, yes I agree vdb's are very stable, more than booleans.

I considered using vdbs but in my case I had the high poly geo already, modeled, uv'd and textured and didn't want to redo those.

I had simulated the deformation before the slice using a bullet simulation with glue and soft constraints then a rdbdeformpieces node post sim. That process required polygon geometry.

Then the slice.

I thought that if I converted the deformed geo to vdb and back to polys, if I redid the uvs it would change the look.

 

Edited by fell00
Link to comment
Share on other sites

Yeah, that is the downside to my method. Attributes would have to be transferred back from the original geometry onto the new geometry and you could end up losing some details depending on how many small details are in the original geo and how high res you make the VDB. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...