Jump to content
Sign in to follow this  
beliveau.maxime

setdetailattrib "min" issue

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
 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×