Jump to content

voxel expression


Recommended Posts

is there represent voxel expression like $PT ??(in field)

that is mean like each point have different value by using $PT

so i want to give to  different value at each voxel by using expression

i can't looking for voxel expression in Help document

 

sorry question is very simple

Edited by sonppw
Link to comment
Share on other sites

Volume Wrangle in SOPs
Gas Field Wrangle in DOPs

then you can do whatever you want so either use @P to vary each voxel like

@density = rint(random(@P*1000));

or

@density = noise(@P*10);

or you can compute voxel id by @ix+@resx*@iz+@resx*@resz*@iy;
and use it for whatever like

int vxlid = @ix+@resx*@iz+@resx*@resz*@iy;
@density = random(vxlid);

all of this can be done with VOP nodes if you use Volume VOP or Gas Field VOP, it's just a matter of preference

Edited by anim
  • Like 3
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...