Jump to content

Deform Grid with attribute color


Furox

Recommended Posts

By attribute color, you mean a kind of vector displacement ?

If you want to do it in SOP context (not at render time), then using a simple Point Wrangle with the following VEX code should do the trick (provided your Cd attribute is a point attribute):

@P += @Cd ;

If you meant classic displacement of points (along normal - so you need to get normals prior to the Point Wrangle node) with intensity driven by Cd attribute then :

@P += @N * len(@Cd) ; 

Note that len(@Cd) could be replace by only one component of your color attribute (Cd.x for red etc.), or by luminance if you linearly combine each component with proper weights.

If you want to do it through texture, then put an Attribute from Map node prior to the above solutions.

Last but not least, you can displace at render time, but that’s another story.

 

 

Edited by StepbyStepVFX
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...