Jump to content

about "du,dv" in houdini!


zbhoudini

Recommended Posts

there are parameters "du,dv" to represent an estimate of the amount that the surface parameter u ,v change from sample to sample.for example:

#define MINFILTERWIDTH  1e-7
#define MINDERIV        0.0003    /* sqrt(MINFILTERWIDTH) */

#define filterwidth(x) (max(abs(Du(x) * (du)) + (Dv(x) * (dv)),MINFILTERWIDTH))

;are there some parameters like that to substitute for "du,dv" in houdini?

Link to comment
Share on other sites

there are parameters "du,dv" to represent an estimate of the amount that the surface parameter u ,v change from sample to sample.for example:

#define MINFILTERWIDTH  1e-7
#define MINDERIV        0.0003    /* sqrt(MINFILTERWIDTH) */

#define filterwidth(x) (max(abs(Du(x) * (du)) + (Dv(x) * (dv)),MINFILTERWIDTH))

;are there some parameters like that to substitute for "du,dv" in houdini?

check out the "primduv" expression

Link to comment
Share on other sites

Have a look at this wiki page. Following the mappings in that table, your RSL fragment would become:

#define filterwidth(x) (max(abs(Du(x)) + abs(Dv(x)),MINFILTERWIDTH))

BTW, note that I added another abs() to your expression as it wouldn't make much sense otherwise... perhaps a typo when copy-pasting?

Cheers.

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