Jump to content

Sand Grain Interaction Help Needed


Recommended Posts

Hey folks, Hope all is well.

Working on a close-up shot, Where a snake penetrates through some sand. I like to achieve a gentle and realistic interaction between the two objects, Effects of sand rolling on the snake and each other is desired too of course. However I'm clueless of how this possibly could be achieved. 

Please check the attached scene below. , Any help or hint would be greatly appreciated. 



Edited by Ramteen
Link to comment
Share on other sites

You can solve the rotation of the grains with a PointWrangle in a separate SopSolver

float dist = distance( @P, v@P_last );
v@P_last = @P;

vector axis = cross( {0, 1, 0}, normalize(v@v));

vector4 rotate = quaternion( dist / f@pscale, axis );

p@orient = qmultiply( p@orient, rotate );

Maybe one step closer to what you're after

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.

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...