Jump to content

Use color information to deform a geometry ??? [attribfromvolume] > [peak]


NodeBrain

Recommended Posts

If you want to store the displacement between two objects with the same topology, use

v@Cd = v@opinput1_P - v@P;

Apply the displacement with

v@P += v@Cd;

 

In case the topology differs, shoot rays:

vector pos_hit;
vector st_hit;
int prim = intersect(1, v@P, v@N * 5.0, pos_hit, st_hit);
vector dir = pos_hit - v@P;

v@Cd = dir;

You will loose high frequency surface details, though.

displacement.hipnc

Edited by konstantin magnus
Link to comment
Share on other sites

Thanks a lot for your help!

It's only been 4 days that I try to learn the software.
I did not start to learn the code and I did not know what to do to make it worked.

Thank you Drughi for your line of code ... It would be necessary to change what we call the OutPut of the "Attribfromvolume1"?

(And thank you very much Konstantin Magnus for your help. As soon as I have a more advanced level, I try to do your method).

As I explained, I've just started on this software (hard to learn) and I did not find the tutorials that really explain the philosophy of this software.
If you have links to tutorials.
I had worked a lot with the hypershade of maya (almost 20 years ago), and I did not find the same logic of connection ...

Thanks

TEST_COLOR_MASK_PAS_COMPRIS.PNG

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