Jump to content
Sign in to follow this  
akaliln

some issue about push points to the surface (solved)

Recommended Posts

hi everyone, I have some issue about to push points to the surface. I use volume gradient and volume sample to detect the distance to the surface. The result is worked but not perfectly on the surface. and also have a bit shaking. 

I try to change the voxel size of vdb. but the issue still exist. 

Is there anyone can help me to have a look the file please?  thx

 

push_points_issue.hipnc

Edited by akaliln

Share this post


Link to post
Share on other sites

the jittering is caused by your popvop1 as you are constantly flipping the tangent v vector every frame

- to fix that you can just swap the inputs on the cross2 node

- also on your popvop_modify_P_and_drag node enable normalize1 node

- lastly, connect your two popvops after everything else, otherwise solver may still move your points into 'collisions' which will not be corrected for

Edited by anim

Share this post


Link to post
Share on other sites
On 2019/8/14 at 8:42 PM, Atom said:

I'm not sure why you're not just creating a collision object?

You can also look into the minpos() function. which will help keep points on a surface.

http://www.tokeru.com/cgwiki/index.php?title=HoudiniDops#Pop_stick_to_surface

Hi thanks for your reply. I tried to understand how the volume gradient and volume sample node work, and read some example on the internet. 

thanks for your link info, there are also have some good way to keep points on the surface.    

Share this post


Link to post
Share on other sites
On 2019/8/14 at 9:02 PM, anim said:

the jittering is caused by your popvop1 as you are constantly flipping the tangent v vector every frame

- to fix that you can just swap the inputs on the cross2 node

- also on your popvop_modify_P_and_drag node enable normalize1 node

- lastly, connect your two popvops after everything else, otherwise solver may still move your points into 'collisions' which will not be corrected for

thank you very much!! the problem solved. I tried to fixed all what you mentioned about and it's working perfect after that!! thanks for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×