cgidesign Posted April 15, 2022 Share Posted April 15, 2022 I made a procedurale texture following a tutorial from James Ritson. Two issues: A. the PT does not have any effect - meaning it does nothing B. I cannot save it as a preset (I already have a category made with another document). An older PT I made is working and available in the presets. So, I assume there is an issue in the PT I don't see. AP Version 1.10.5.1342 on Windows Quote Link to comment Share on other sites More sharing options...
cgidesign Posted April 15, 2022 Author Share Posted April 15, 2022 Update on the issue: It seems to be caused by using the "0,1" custom inputs on a German system. If I replace the variables mix and br which use a comma on a German system (0,5 instead of 0.5) with fixed values in the equatation, then it works. E.g.: var divided=R/(0.5*tms); var flat=sqrt(divided); lerp(flat, divided, 0.5)*(br*brs) works and allows to save a preset. var divided=R/(0,5*tms); var flat=sqrt(divided); lerp(flat, divided, 0,5)*(br*brs) does not work and cannot be saved. Is there a way to solve this? Edit: The old PT I have, was made and saved as preset with affinity-photo-1.10.4. This one still works in affinity-photo-1.10.5 The new PT I made in affinity-photo-1.10.5 is not working. Quote Link to comment Share on other sites More sharing options...
NotMyFault Posted April 15, 2022 Share Posted April 15, 2022 Probably there is a syntax error. creating presets is blocked unless the formula and input variables are 100% ok. I would advise to copy all formulas to an external text editor (to save clicks / keyboard usage, and avoid manual input errors). Then start from scratch and add one input variable after the other, and always save (replace) the preset. If saving is blocked, you found the error. Do the same with the formula: start with one line, and only the first part (var ..=...), and always return 0 or 1, then add the next part, until you have the formula complete. Quote Mac mini M1 A2348 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 iPad Air Gen 5 (2022) A2589 Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps. Link to comment Share on other sites More sharing options...
cgidesign Posted April 15, 2022 Author Share Posted April 15, 2022 Thanks, did that of course. The conclusion is there is a bug with comma vs. dot locales in version 1.10.5. Even a simple equatation like G*x fails if x is a 0,1 custom input. NotMyFault 1 Quote Link to comment Share on other sites More sharing options...
cgidesign Posted April 20, 2022 Author Share Posted April 20, 2022 Solved now by restarting with a new document. In the old document every equatation with a "0,1" custom input failed. In the new one all of them are working (even the original one I copy / pasted over). Callum 1 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.