beliveau.maxime Posted December 27, 2020 Share Posted December 27, 2020 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 Quote Link to comment Share on other sites More sharing options...
Gorrod Posted December 27, 2020 Share Posted December 27, 2020 (edited) 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 December 27, 2020 by Gorrod Quote Link to comment Share on other sites More sharing options...
beliveau.maxime Posted December 28, 2020 Author Share Posted December 28, 2020 That makes sense. Thanks for the explanation! 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.