# Render VDB

**URL:** <https://forums.chaos.com/t/render-vdb/108881>\
**Category:** General\
**Created:** [February 15, 2022, 9:24pm UTC](https://forums.chaos.com/t/render-vdb/108881 "2022-02-15T21:24:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 15, 2022, 9:24pm UTC](https://forums.chaos.com/t/render-vdb/108881/1 "2022-02-15T21:24:01Z")

</div>

Hello

My goal is to render snow like in that demo (cat)

> **[\- YouTube](https://www.youtube.com/watch?v=qZKoDrw%5C_EBA)**
>
> Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

the simulation works very well in Maya Bifrost, but now I am not able to render those particles

I am writing out a VDB sequence, reloading it via the Vray Volume grid, but without succes

here are my scene files  
[https://pipe.green-cloud.at/index.php/s/ddAm7QamdrsxBi8](https://pipe.green-cloud.at/index.php/s/ddAm7QamdrsxBi8)

thanks for support  
Martin

---

<div class="post-metadata">

**Author:** ![hsz](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hsz](https://forums.chaos.com/u/hsz)\
**Post date:** [February 16, 2022, 5:09am UTC](https://forums.chaos.com/t/render-vdb/108881/2 "2022-02-16T05:09:24Z")

</div>

You are not converting the pts to volume so it won’t save it as a vdb unless you want to write the points as vdb points? If that is the case then I would just save it as an ABC then render the pts that way, you can still write a vdb to points if you want.  
To write something into a vdb you either need an SDF or Fog (density) so after the mpm solver you need a convert to volume then pick if you want an sdf or fog then you can write a vdb. You also need more resolution, usually for fx like that. The volume grid will be able to read those. Make sure to mapped the channels correctly BF all channels starts with voxel\_signed\_distance, voxel\_ etc etc etc. Hopefully, that helps.

---

<div class="post-metadata">

**Author:** ![hsz](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hsz](https://forums.chaos.com/u/hsz)\
**Post date:** [February 16, 2022, 5:24am UTC](https://forums.chaos.com/t/render-vdb/108881/3 "2022-02-16T05:24:42Z")

</div>

Here you go

 ![maya_rX0DuhbPBM.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/5/559debd6dedde3a9ff4105e8beb59b8d0b923411.jpeg)  
[BF\_plow\_02.zip](https://forums.chaos.com/uploads/short-url/nHNxBVxSdqwysWBt1YDMJi0HkqG.zip) (20.6 KB)

---

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 16, 2022, 8:27am UTC](https://forums.chaos.com/t/render-vdb/108881/4 "2022-02-16T08:27:43Z")

</div>

Hello HSZ  
that definitely helps a lot

it make total sense now.  
I just started to use Bifrost yesterday, and I am hooked by its possibities.  
For the points it makes sense. I still have to look into the sdf/fog node.

But for the snow I will work with a meshed version and your scene helpes a lot  
so my funny Character will be able to move that mesh around.  
Thanks a lot and have a great day  
Martin

[https://vimeo.com/677182992](https://vimeo.com/677182992)

---

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 18, 2022, 12:31pm UTC](https://forums.chaos.com/t/render-vdb/108881/5 "2022-02-18T12:31:12Z")

</div>

Hello HSZ  
thank you once again. This really worked like a charm.

[https://vimeo.com/679083130](https://vimeo.com/679083130)

Without you, I would not have found this direct path, over from Bifrost to Vray.  
First it seems not logical, to convert a particles to Fog and then read them out as a mesh.

For anyone who tries to recreate this steps, here some points that I had to get right

\*Bifrost\*  
the file\_cache node hast to be named propperly to write frames “name\_####.vdb”

\*Vray Volume Grid\*  
- when loading the VDB sequence, one gets asked if you want to use a preset. I clicked none and had to set the switch in the 3rd Party Channels Mapping und Smoke to “voxel\_fog\_density”  
- Meshing: the meshing is done in the Vray Volume Grid. Pretty comfortable, and speedy.  
The Render Mode has to be set to Mesh and I had to set the Mes Type to Maya Mesh.  
The Isosurface Level and the Smooth Particle Size drive the mesh density/smoothnes.

\*Material\*  
I was even able to apply a displacement for the Snow. So there is a UV generated in the meshing process.

Another approach is to do the meshing inside Bifrost. This way one can render Bifrost directly without having to write a cache file.  
But I assume its not so bad to write a cache between simumation and rendering.

Thanks once again, and I am looking forward to many cool effects simulated in Bifrost, rendered in Vray.  
I am also shure Chaosgroup will come up with Vray Nodes inside Bifrost, to have a strong connection

Best  
Martin

 ![snowplow_BF_01.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/7/f/7fa93d9eece7179e523c8e38b1098c7aadf262fc.jpeg)

 ![Capture_01.PNG](https://europe1.discourse-cdn.com/chaosprd/original/2X/d/d36ec829d8c215c258a6978adfa057e54a9dd910.png) ![Capture_02.PNG](https://europe1.discourse-cdn.com/chaosprd/original/3X/e/6/e6ce14626a5d13bc1b546c6ba7815e1c556a87dd.png) ![Capture_04.PNG](https://europe1.discourse-cdn.com/chaosprd/original/3X/2/e/2e90c469403e85fab4c05a49110a1b4d0c5d7928.png)

---

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 18, 2022, 2:49pm UTC](https://forums.chaos.com/t/render-vdb/108881/6 "2022-02-18T14:49:39Z")

</div>

I have one more Bifrost question. Its about the performance. To me this snow simulation feels super slow.  
I suppose this is the normal time for granular snow simulation with a decent amount of points?

Can it be compared to the sim times of Phoenix (liquid sim with high viscosity)?

Is there a way to speed things up?  
Particles per Voxel to a lower number I suppose

thnx  
Martin

---

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 18, 2022, 3:48pm UTC](https://forums.chaos.com/t/render-vdb/108881/7 "2022-02-18T15:48:42Z")

</div>

I will give myself the answere:  
there are two aspects  
- source\_mpm\_snow  
this is mainly controlled by the particles per voxel  
- the convert\_to\_volume  
here the “detail size” is the crucial value

for me it helped a lot, first writing a cached sequence of the sim, using a file cache node and .bob format.  
this are the pure particles. once I am happy with those; I feed “convert to volume” node with this cache.

so its two calculation steps, that are better simulated one after the other to control the speed and output

---

<div class="post-metadata">

**Author:** ![pipe\_mm](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/pipe_mm/32/65538_2.png) [@pipe\_mm](https://forums.chaos.com/u/pipe_mm)\
**Post date:** [February 18, 2022, 6:01pm UTC](https://forums.chaos.com/t/render-vdb/108881/8 "2022-02-18T18:01:56Z")

</div>

ok, dont know if anyone will ever read :d  
anyhow  
what really speeded up things is scaling  
scaled the scene smaler by 0.1 and the whole thing runs like shizzlewizzle

I remember they preached about scene scale a 100 times, back with the old Bifrost  
seems still to be valid
