Jump to content

Advecting "gradient" Field of Heightfield?


Recommended Posts

Hey guys wondering if anyone can give me some ideas to tackle this effect on a heightfield: https://twitter.com/Jose_Molfino/status/1669804412569567233 The artist Jose says that it's a heightfield expanding inside a solver and a gradient field based on height is used for advection. Does anyone know how that works? How would you advect calculated values like gradient field vectors?
 
Thank you!
Edited by adamknauer1
Link to comment
Share on other sites

@adamknauer1 Try this ..gradient,divergence, curl, height and water , after when you are done in DOP, just import fields with SOP primitive properties and Play with different fileds, then check your LINK you have Nice tricks .. Have fun



 

dfssss5555.jpg

Link to comment
Share on other sites

@adamknauer1 Basically Yes , just here you have more View(somehow not complicated to see at least for me)  , easy to control and you can adjust height , different PIC and various ways to manipulate fields.

if you search I posted also Espresso  Blend Fluid  that have nice tricks.. so combining those 2 you can make Nice effects .
 

Link to comment
Share on other sites

Hi,

Here is one way:

1. Compute grad using VEX in a Volume Wrangle:

v@grad = volumegradient ( 0, "height", @P );

qLj5I4K.png

2. Advect using Volume VOP SOP inside Solver SOP:

4w0mvNE.png

3. Run the simulation

uToW7sg.png

dye8tr9.png

h1.gif.d4737cfb2498c22de77f2cd86ba28516.gif

 

You can also get different results by playing with the advection vector:

v@grad = volumegradient ( 0, "height", @P );
vector up = { 0, 1, 0 };
vector tangent = cross ( v@grad, up );

v@grad = tangent + v@grad;

RxBzc8E.png

nDVHtdk.png

h2.gif.c28161a31b37fc6a63751c7e54e87810.gif

 

v@grad = volumegradient ( 0, "height", @P );
vector up = { 0, 1, 0 };
vector tangent = cross ( v@grad, up );

v@grad = tangent;

voYMXVL.png

QMHIfhz.png

h3.gif.d6b934397a0ad9665dae1de47c235b56.gif

  • Like 2
Link to comment
Share on other sites

4 hours ago, adamknauer1 said:

@animatrix hmm I'm not getting any advection results. Must be missing something I'm missing. Should I be using any of the inputs into the geometry file inputs?

4w0mvNE.png

Do you have the gradient field and you use the right input in advect by volume VOP?

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