Jump to content

Procedural Volume Shader


gustav

Recommended Posts

Hi.

I want to create a procedural cloud inside a volume.

My idea is to use a function something like this:

if( (voxelPosition + noise(voxelPosition)) < 0.5 )

density = 1;

else

density = 0;

I figure I want create a Volume SOP that a connect to a Volume VOP, but I can't get it to work. Is this the right way of doing it?

Thanks!

Edited by gustav
Link to comment
Share on other sites

Take a look at an isosurface node (with volume generation enabled - it generates surfaces by default). The variables $X, $Y, $Z are your voxel position.

Hi.

I want to create a procedural cloud inside a volume.

My idea is to use a function something like this:

if( (voxelPosition + noise(voxelPosition)) < 0.5 )

density = 1;

else

density = 0;

I figure I want create a Volume SOP that a connect to a Volume VOP, but I can't get it to work. Is this the right way of doing it?

Thanks!

Link to comment
Share on other sites

Thanks Peter, works great! I also found your video tutorials on volumes on vimeo, exelent resource on houdini. Thanks again.

Take a look at an isosurface node (with volume generation enabled - it generates surfaces by default). The variables $X, $Y, $Z are your voxel position.

Edited by gustav
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...