jmliss Posted April 29, 2021 Share Posted April 29, 2021 In the attached .afphoto I have a procedural texture formula that seems to do something when using round, but seems to fail when using roundup. I have reason to believe the formula works on Windows. I am running 1.9.3 of affinity photo, and latest version of Catalina. Also look at both uploaded images. Thank you, Jonathan Liss for dave hsl selection 2.afphoto Quote Link to comment Share on other sites More sharing options...
Staff Gabe Posted April 30, 2021 Staff Share Posted April 30, 2021 Hi @jmliss, What doesn't seem to work? round != roundup Round will round up if the decimal = > 5 and rounddown otherwise Roundup will round up to the next integer regardless. So it's excepted that you get different results. Quote Link to comment Share on other sites More sharing options...
jmliss Posted April 30, 2021 Author Share Posted April 30, 2021 4 minutes ago, Gabe said: Hi @jmliss, What doesn't seem to work? round != roundup Round will round up if the decimal = > 5 and rounddown otherwise Roundup will round up to the next integer regardless. So it's excepted that you get different results. Gabe, I appreciate your response and I understand the math. I was implementing a formula posted in a video by Dave Straker who often posts on this forum but his examples are using windows. If you looked at my examples, you would see that in the case of roundup, it seems that the equation is completely ignored. I am only asking if there is an issue with roundup on the mac. How can I check if the function is working other than my example ? Quote Link to comment Share on other sites More sharing options...
Staff Gabe Posted April 30, 2021 Staff Share Posted April 30, 2021 You can check it with a shape, basic white to black gradient and a round(channel) affecting channel. Round - equal distribution of green and magenta roundup - green only rounddown - magenta only Quote Link to comment Share on other sites More sharing options...
jmliss Posted April 30, 2021 Author Share Posted April 30, 2021 Gabe, thank you for taking the time to provide these examples. I have verified that they work on MAC, I will need to pursue my problem elsewhere. I appreciate your patience. There is a learning curve obviously with this filter. I need to learn now how to set alpha to 0 when R=G=B. Quote Link to comment Share on other sites More sharing options...
BeauRX Posted May 8, 2021 Share Posted May 8, 2021 @jmliss some of Dave’s later procedural textures also have the ability to filter neutral colors i.e. grays and near grays. 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.