Jump to content

Stretchmap


peship

Recommended Posts

I spent some time in the last two days to write a stretchmap OP.

While this is not exactly a shader, it's main purpose is on the shading side, so i am posting inside the "Shaders" area.

You can download the OTL file from here:

http://www.petershipkov.com/development/st.../stretchMap.otl

and can check a flipbooked test here:

http://www.petershipkov.com/development/st.../stretchmap.mov

If you still think this is sort of interesting for you the workflow is this:

load the asset in your Houdini session, in SOP level create stretchMap OP,

connect to it's first input the deforming geometry, connect to the second input the rest position geometry.

The stretchMap thingie has few control attributes:

attribute - you can define the name of the point attribute where the stretchMap data will be stored;

multiply, offset, min, max attributes are self explanatory, so i assume they dont need an explanation.

The idea behind putting this on SOP level is that many times we need to correct the stretchMap values in some areas before sending them to the shader - point/paint/attribTransfer/attribComposite SOPs, etc - the regular stuff.

EDIT:

Oh, and thanks to sibbarik for pointing me in the right direction.

The whole VEX thing is somehow poorly documented.

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