vdb advect

587 views
Skip to first unread message

koen

unread,
May 15, 2016, 6:45:07 PM5/15/16
to OpenVDB Forum
Hey guys, 

I often want to advect a fog volume, just to deform it by a vector field basically. I always forget vdb advect only supports sdf's ( and converting back and forth seem to give me funny results). Would it be hard to add support for fog fields in the advection tool?

Cheers,
Koen

Chris Rydalch

unread,
May 16, 2016, 9:43:59 AM5/16/16
to OpenVDB Forum
In OpenVDB 3.1 added support for advecting arbitrary volumes; if you build the Houdini SOPs, you should get the new OpenVDB Advect SOP.

Jeff Budsberg

unread,
May 16, 2016, 8:37:24 PM5/16/16
to OpenVDB Forum
yeah advecting level sets, scalar fields and points are all supported as of 3.1.  on a related note, we also recently added a tool to take any velocity grid and make it divergence-free.

(see attachments)

divfree.jpg
advect.jpg

koen

unread,
May 16, 2016, 8:42:56 PM5/16/16
to OpenVDB Forum
Cool, I'll take a look, thanks guys,

Koen

Daniel Elliott Jones

unread,
Jul 9, 2016, 7:30:52 PM7/9/16
to OpenVDB Forum
are there any example setups for the 'remove divergence'. I built the houdini sops a while ago and tried it out but it didnt seem to be doing anything. i assumed i had set it up wrong.

it seems thats its possible to build a proper fluid solver with it.

Jeff Budsberg

unread,
Jul 11, 2016, 12:55:35 PM7/11/16
to OpenVDB Forum
i've attached an example hip for you; it takes a velocity noise, removes divergence, then advects points through it.  

let me know if you have questions.

-jeff
advect_div_free.hip

Daniel Elliott Jones

unread,
Nov 6, 2016, 6:04:17 PM11/6/16
to OpenVDB Forum
Hi Jeff, I misplaced the original file and the attached file doesn't seem to exist on the google servers anymore. Any chance you could re-upload it please?

Cheers
Dan

Jeff Budsberg

unread,
Nov 7, 2016, 7:41:49 PM11/7/16
to OpenVDB Forum
it's been a while, but i think it was this one?
advect_div_free.hip

Daniel Elliott Jones

unread,
Nov 7, 2016, 8:04:18 PM11/7/16
to OpenVDB Forum
Thats the one yeah thanks

I've actually been setting up a smoke solver setup using the remove divergence. It works apart from the process of padding tiles is really tricky. simply expanding isn't the best solution as it continually expands. What is needed is a padding node that pads a number of leaf nodes around the edge only if it contains values in the node. It would also take care of pruning automatically. Just need to find a way to do it.

Reply all
Reply to author
Forward
0 new messages