Jump to content

Recommended Posts

Hello,

I have a ripple sim created with a sphere moving through a grid and the points deforming based on the velocity transferred to said grid.

What I am trying to do is isolate the geometry based on where there are ripples via colour then as the rippled geo begins to settle back into what it was originally have that colour fade back to black.

I'm halfway there I think.  I was able to isolate the rippling parts of my grid by using a facet to compute its normals and then a point SOP to add colour based on the normal in it's Y (@N.y < 1).

I was thinking of trying to use a vop or another point sop to make it so when the normal is between x and y multiply the color by 0.95 to get it to fade over time but was wondering what other ways I could try to do this.

Cheers,

JP

 

houdinifx_2018-04-01_15-43-56.png.666c58761d501ee2696c3720d129f49b.png

fade edges.jpg

ripple_example_1.hipnc

Link to comment
Share on other sites

That's almost exactly what I'm looking for, thank you so much!

 My knowledge of wrangles isn't so great so what I'm assuming is that:

you're defining the up vector and the min and the max values for the channels you created

then you're getting the dot product from the up vector and the normal

then you're defining the threshold by fitting all the attributes between 0 and 1

then you're multiplying the colour by said threshold so any point being disturbed begins with a colour value of 0 which fades to 1 overtime.

 

I think that's correct?  Regardless I think this will work with what I need to do and I'm assuming I can rebuild what you've done in a VOP in order to have more control?

Thanks again!

  • Like 1
Link to comment
Share on other sites

yup thats it except im not fitting all the attributes, only the dot of the N and up  to 0-1 so it will make a visible difference when we multiply color by it. Because it is returning a narrow range (.995 to 1) as there is not a big difference between the vectors. It also does not fade by time, it is only by the dot - which in this case is basically the difference between N and up, so the further it points away from 0,1,0 the more it is scaled down. You can make this in a VOP pretty easy yea.

Link to comment
Share on other sites

I tried recreating your method in a VOP and have something almost identical (I think).

There is still a difference in the amount of colour your way picks up compared to mine.

I defined my up vector before the vop using the old point sop node and didn't create the min and max values because I assumed they were for your fit in your wrangle example so I just promoted the source min and max in my vop

after I fit the dot product.

Then I multiplied the colour by the dot product and hooked it back into the output color.

houdinifx_2018-04-01_20-53-17.thumb.png.6bb514857dbf9d95f0ba34d93e198df5.png

 

Screenshot from your method

houdinifx_2018-04-01_20-52-30.png.f9067d5da5566c2976dfea36502c4bd6.png

Screenshot from my VOP

houdinifx_2018-04-01_20-52-59.png.6197377a9d5ca3979bf12282240899c3.png

 

ripple_example_4.hipnc

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