Jump to content

setdetailattrib "min" issue


beliveau.maxime

Recommended Posts

Hi everyone,

Simple question for ya'll this morning. I've just found out that the setdetailattrib has modes which can apparently return min/max and more.

The max seems to work fine, but the min not so much. Always returns 0 in my case. Just add this in a wrangle of some scattered points or anything.

f@noise = anoise(v@P, chi("turbulence"), chf("roughness"), chf("attenuation")) + chf("offset_min");

setdetailattrib(0,"min",@noise,"min");
setdetailattrib(0,"max",@noise,"max");

Is this a bug?

Thanks
 

Link to comment
Share on other sites

I wouldn't call it a bug as "min" and "max" modes are comparing your @noise values to 0.0 since neither min nor max detail attributes have been created yet and it needs some value to compare it to. For example if your @noise values are below 0.0, your min detailattrib will have the correct negative value. If all your values are below 0 you will have the same problem with the "max" mode.

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