<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Jul 26, 2018 at 7:27 PM Geraldine Chua <<a href="mailto:chua.gsk@gmail.com">chua.gsk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Trying with a quick patch of the above suggestions, VDB to sparse grid conversion drops from 33 to 2 seconds! There still needs to be a bit of handling, like off the top of my head, non-8x8x8 grids need to be iterated through manually (are there VDBs that actually do this?), and loading Vec3 leaves into float4 arrays (cast to float) requires adding a
 dummy 1.0f every 4th slot, so even with directly copying the leaf there
 still needs to be some post-processing.<br></div></div></blockquote><div><br></div><div>That's a great improvement!</div><div><br></div><div>I think it's safe to assume all grids are 8x8x8. By default OpenVDB only registers the grid types from openvdb.h which all use (1 << 3) = 8, and that means only those can be read. It's possible to register more grid types and read/write them, but I don't know of any software doing this, and such files would not be readable by most other software.<br></div></div><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Aside from the above patch and some experimental other things, I have just uploaded everything to my gsoc branch. Feel free to have a look when you can :)</div></div></blockquote><div><br></div><div>Thanks,</div><div>Brecht.</div><div><br></div></div></div>