zbhoudini Posted January 7, 2009 Share Posted January 7, 2009 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? Quote Link to comment Share on other sites More sharing options...
SpencerL Posted January 7, 2009 Share Posted January 7, 2009 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 Quote Link to comment Share on other sites More sharing options...
Mario Marengo Posted January 7, 2009 Share Posted January 7, 2009 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. Quote Link to comment Share on other sites More sharing options...
zbhoudini Posted January 8, 2009 Author Share Posted January 8, 2009 thank you very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.