ianbaxter1 Posted March 18, 2013 Share Posted March 18, 2013 Hi If I have a voxel grid, by middle clicking I can see the fields and relevant resolutions. Now I want to see what the actual values are within these voxels. If I have 5 million voxels I obviously don't want to view them all but can I access/view say the min/max density and min/max temperature of the voxel grid? Cheers Quote Link to comment Share on other sites More sharing options...
melazoma Posted March 18, 2013 Share Posted March 18, 2013 (edited) You can use Volume Reduce SOP to calculate the min/max values in volume primitives. You can also set it to store these values in primitive attributes to make them easily accesible in Attributes Spreadsheet / Details View. Edited March 18, 2013 by melazoma 1 Quote Link to comment Share on other sites More sharing options...
bunker Posted March 18, 2013 Share Posted March 18, 2013 You can use the volumemax and volumemin expressions in the Textport. type: exhelp volume for a list of volume related expressions Quote Link to comment Share on other sites More sharing options...
edward Posted March 19, 2013 Share Posted March 19, 2013 I use the Volume Slice SOP. This gives a 2D grid of points matching the voxels. If you look at the density attribute generated, you'll see the actual voxel values while the point colours give you an indication of how those values are changing. Quote Link to comment Share on other sites More sharing options...
ianbaxter1 Posted March 19, 2013 Author Share Posted March 19, 2013 Thanks for all the suggestions. Works a charm! Quote Link to comment Share on other sites More sharing options...
Harsh M Posted March 19, 2013 Share Posted March 19, 2013 Hey Guys, Any idea how to access OpenVDB voxel data ? Cheers Harsh Quote Link to comment Share on other sites More sharing options...
edward Posted March 20, 2013 Share Posted March 20, 2013 Any idea how to access OpenVDB voxel data? For what purpose? You can process the VDB primitives via various SOPs (incl. Volume VOP SOP), and you can evaluate specific voxels if you want via the new hou.VDB (subclass of hou.Prim) primitive class. EDIT: As mentioned above, the various volume hscript expression functions as well. Quote Link to comment Share on other sites More sharing options...
bunker Posted March 20, 2013 Share Posted March 20, 2013 nothing worked for me in hscript (12.5.316.22 osx), but it works fine in Pyhon. myVdb = hou.node('/obj/geo1/vdbfrompolygons1').geometry().prims()[0] myVdbSample = myVdb.sample((0,0,0)) print 'VDB Sample at 0,0,0 :' , myVdbSample Quote Link to comment Share on other sites More sharing options...
Harsh M Posted March 20, 2013 Share Posted March 20, 2013 Thanks Edward and Julien. hou.VDB worked perfect. Cheers H Quote Link to comment Share on other sites More sharing options...
edward Posted March 22, 2013 Share Posted March 22, 2013 nothing worked for me in hscript (12.5.316.22 osx), but it works fine in Pyhon. Strange, volumesample() seems to work for me. 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.