db.digital Posted May 2, 2017 Share Posted May 2, 2017 Hello! I'm doing some R&D and am hoping to convert my polygon mesh to a vdb to be referenced elsewhere in my project. When I preview the vdb, however, it is scaled much larger than I expected and I'm not really sure what to make of it. Any help would be appreciated! I've attached screenshots, the first is the geometry, and the second is the resulting voxels. Quote Link to comment Share on other sites More sharing options...
sandford Posted May 2, 2017 Share Posted May 2, 2017 (edited) Decrease the voxel size on your VDB from Poly node. The closer you get to 0, the more accurate it will be to your original geo. So start with 0.05, and then lower slightly from there if it's not enough. So a decrease in value causes an increase in resolution on your VDB. Edit: just fought off the sleep that's currently trying to overpower me, don't think I answered your question... Edited May 2, 2017 by sandford updates Quote Link to comment Share on other sites More sharing options...
db.digital Posted May 2, 2017 Author Share Posted May 2, 2017 Thank you for the reply! My apologies if I wasn't very clear. The problem isn't the level of detail in the voxels, but the overall scale. In the second screenshot, the light grey plane is the geometry I'm trying to get voxel information from. As you can see, the resulting voxels are overall scaled way up compared to my original geo. Quote Link to comment Share on other sites More sharing options...
galagast Posted May 3, 2017 Share Posted May 3, 2017 (edited) That is odd, any chance you could post the hip file? or maybe a screengrab of your whole network? EDIT: I just noticed you're using your custom wave deformer, pretty cool. Just throwing these out: - Are there any custom attributes generated by the deformer? - Could you try adding a Convert to polygon before applying VDBfromPolygons? - Could you try maybe creating a new Geometry node, then Object Merge your wave before doing VDBfromPolygons? Edited May 3, 2017 by galagast Quote Link to comment Share on other sites More sharing options...
Matt_K Posted May 3, 2017 Share Posted May 3, 2017 (edited) Hi, Are you perhaps object merging it into another geometry object in your custom deformer? Are you doing any transformation/scaling in the subnet? If so, you will need to compensate by either inverting the transform or simply scaling it back down before VDB-ing. Or, does the parent object have any scaling at the object level? This can cause issues down the line, and if you do, try moving the transforms/scaling to SOP level, cleaning the object transforms, and see if that makes a difference. Hope this helps! Matt. Edited May 3, 2017 by Matt_K correction Quote Link to comment Share on other sites More sharing options...
db.digital Posted May 16, 2017 Author Share Posted May 16, 2017 Apologies for the late reply! I do think the scale of the object is being affected by my deformer, I didn't realize how this would affect VDBs down the line. Thank you for the insight! I've got some ideas for work-arounds for it now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.