Jump to content

why "gradient" vex function can't work in sinppet?


Recommended Posts

Hi,masters!

I want to test sinppet node in volume vop sop,and I try to use "gradient" function to calculate the gradient of the density field,but it turns out an error saying that "Call to undefined function vector gradient...".So,is there any restrction of using vex fuction in sinppet?

thanks!

Link to comment
Share on other sites

Thanks,Magneto!I don't know much about the differents between CVEX and VEX,gonna have a look on it!

Symek,I think you gave me the right answer,Maybe that is why it always works in a shader network.thanks!

And DanBode,yeah I'm looking for a method does the same thing as volumegradient() function,but not this one.I'm trying to implement a for loop in vop network that can recursively modify a level set like ln = F(ln-1),so volumegradient vop may not be a appropriate choice because it always references to a sop data that is outside of the vop network which means it can't be modifyed dynamically.I tryed to do it in a foreach node where I can just use a volumegradient to do the right thing but it was not as efficient as i expected, so I'm seeking for a vop loop implementation. thanks anyway!

  • Like 1
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...