mightcouldb1 Posted February 3, 2010 Share Posted February 3, 2010 I couldn't locate a good list of expressions that people might use to manipulate volumes. What I want to do is to create a sphere that fades off as the volume expands. Sort of like a radial gradient, but spherical. I know about some of the more simple expressions linearly interpolating volumes, fading out volumes based on their X, Y, or Z position. Maybe some of you could list your favorite expressions for manipulating volumes? Quote Link to comment Share on other sites More sharing options...
anim Posted February 3, 2010 Share Posted February 3, 2010 you can use Volume VOP SOP for manipulating volumes, it's really powerful and way faster than expressions Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted February 3, 2010 Author Share Posted February 3, 2010 (edited) Ah yes, I sort of went with this method after I looked through the help documentation. I still am having a problem creating what I want. How could I roll a Volume VOP that would maybe take a voxel with an index somewhere near the center (resolution divided by two?) and decrease the density of the other voxels as their distance to that center voxel increases? Then maybe use some kind of nonlinear function to control the falloff. Or am I treading down the wrong path? Edited February 3, 2010 by mightcouldb1 Quote Link to comment Share on other sites More sharing options...
anim Posted February 3, 2010 Share Posted February 3, 2010 if you have default volume which center is at 0,0,0 then P of the voxel will be vector from the center of the volume and its length will be distance from the center then you can just resample that distance to 1-0 range according to desired max distance(radius of the sphere) to get linear decrease of density from center of the sphere look at the attached file for example of this method you can then append ramp parameter after it to tweak the falloff volumeVopExample.hip Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted February 3, 2010 Author Share Posted February 3, 2010 Amazing. Exactly what I wanted. Thanks a bunch. Any idea where I can find some more info about manipulating volumes? Quote Link to comment Share on other sites More sharing options...
Peter Quint Posted February 3, 2010 Share Posted February 3, 2010 You could also check out the isosurface SOP, which allows you to enter formulas using $X, $Y, $Z so in this case I think a unit radius sphere that builds to the centre will be something like max(1 - ($X * $X + $Y * $Y + $Z * $Z), 0). I did a couple of videos on volumes that cover the very basics of this on Vimeo, there's a link on the odforce tutorial page. Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted February 3, 2010 Author Share Posted February 3, 2010 I've seen your tutorials before but never this one, watching now. Thanks Peter! 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.