Jurgen Posted December 17, 2017 Share Posted December 17, 2017 Hello there, in the tutorials equations are mentioned a few times, like in the Macros videos. But there is no general overview of the functions that I am aware of - for instance, relative to noise the video mentions that there are 4 different noise generators but I didn't find specific explanations as to possibilities using equations. Is there anything? I'd be glad to go through it... John Rostron 1 Quote Link to comment Share on other sites More sharing options...
John Rostron Posted December 17, 2017 Share Posted December 17, 2017 Plus to that. When I was writing my resize macros I had trouble finding the right information. I found it under Field Entries! I found that the only circumstance where Equations work reliably is in Filter > Distort > Equations. In the Transform panel, you can appy an equation in the fields, but the resulting value is then fixed. This means that if you enter an Equation in the Width field, then if you wish to refer to the Width in the Height field, it uses the new width, not the original width! I aim to have a little project to explore the Equations faciity in Affinity and report back in the Tutorials forum. Perhaps the Mods could confirm that Equations are on their to-do list for Transform and for Document > Resize. Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Jurgen Posted December 17, 2017 Author Share Posted December 17, 2017 In the tutorial "Macros: Equations" there is mention of different noise algorithms available in the equations - I would be glad if these (and everything else possible with equations) could be subject to a tutorial or online paper sometime. :-) Quote Link to comment Share on other sites More sharing options...
v_kyr Posted December 17, 2017 Share Posted December 17, 2017 6 hours ago, Jurgen said: But there is no general overview of the functions that I am aware of ... See: Expressions for field input Quote ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2 Link to comment Share on other sites More sharing options...
Jurgen Posted December 17, 2017 Author Share Posted December 17, 2017 Now isn't that a complete list... Thanks a lot! I was fixed on the video tutorials. Quote Link to comment Share on other sites More sharing options...
John Rostron Posted December 17, 2017 Share Posted December 17, 2017 It is a complete list, but it is lacking in how to to use them effectively. I have been focussing on the mathematical expressions at the end, for which it says: For general use throughout the user interface! As I mentioned above, these seem to work only in the Distort > Equations filter. My first exploration of these has been the sine function sin(x). So far, I have got it to work, but with unexpected scaling effects. I will be reporting further on this. BTW, I tried the Noise function, and it appears to have no effect whatsoever! Perhaps it would help if there were some documentation. Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
R C-R Posted December 17, 2017 Share Posted December 17, 2017 8 hours ago, Jurgen said: ... for instance, relative to noise the video mentions that there are 4 different noise generators but I didn't find specific explanations as to possibilities using equations. Is it just something I am doing wrong or has anyone else noticed that the Noise2 expression always is displayed in red & does not work in Filters > Distort > Expressions, while the other 3 do? 11 minutes ago, John Rostron said: BTW, I tried the Noise function, and it appears to have no effect whatsoever! Assuming there are pixels present in the targeted layer, all but Noise2 have some effect when I try them, although the results are hard for me to predict. Some (not particularly useful) expressions to try: x= x*noise(w,y) y= y*noise(h,x) x= x y= y*noise(y*a) Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
carl123 Posted December 17, 2017 Share Posted December 17, 2017 Try this one. (see image) Use the slider to adjust the effect from 0 - 100 @R C-R noise2 does not appear to work but more surprisingly noise5, noise6, and noise7 all work Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
R C-R Posted December 17, 2017 Share Posted December 17, 2017 1 minute ago, carl123 said: noise2 does not appear to work but more surprisingly noise5, noise6, and noise7 all work Because I am too lazy to find out for myself, do Noise5, etc. do anything different visually from (for example) Noise1 or Noise4? Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
carl123 Posted December 17, 2017 Share Posted December 17, 2017 5 minutes ago, R C-R said: Because I am too lazy to find out for myself, do Noise5, etc. do anything different visually from (for example) Noise1 or Noise4? There is no Noise1 and I don't cater for lazy, you need to do your own testing Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
R C-R Posted December 17, 2017 Share Posted December 17, 2017 12 minutes ago, carl123 said: There is no Noise1 and I don't cater for lazy, you need to do your own testing One of the reasons I asked (besides being lazy, of course) is Noise7 does not work for me -- like with Noise2, it shows up in red & has no effect. A related reason is I do not know if this might have anything to do with the other terms in an expression you have tested but I have not. Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
carl123 Posted December 17, 2017 Share Posted December 17, 2017 15 minutes ago, R C-R said: One of the reasons I asked (besides being lazy, of course) is Noise7 does not work for me Brilliant, you see what happens when you test for yourself, you discover an error in my previous post. Now you only need to test noise5 and noise6 to see what they do differently (if anything?) Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time. Link to comment Share on other sites More sharing options...
John Rostron Posted December 17, 2017 Share Posted December 17, 2017 @carl123, this is an interesting artistic effect. It should be worth while exploring the possibilities and documenting them in a Tutorial. 2 hours ago, John Rostron said: My first exploration of these has been the sine function sin(x). So far, I have got it to work, but with unexpected scaling effects. I will be reporting further on this. I have found that the unexpected scaling effect is because Equations expects the parameter in degrees, and I was using radians! Again, there is no documentation on this. I will post a couple of images shortly. Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
John Rostron Posted December 17, 2017 Share Posted December 17, 2017 Here are a couple of applications of SIn to the Severn Bridge in the Mist: The first is the original image. The second has the y-coordinate set as y+30*sin(2*360*x/w) The third has the y-coordinate set as y+20*sin(9*360*y/h) carl123 1 Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
R C-R Posted December 17, 2017 Share Posted December 17, 2017 34 minutes ago, carl123 said: Now you only need to test noise5 and noise6 to see what they do differently (if anything?) But even if I take considerable time to do that, I can't be sure if the results are different enough to notice. As it is, even for some of the simpler expressions there are no noticeable differences when I change from one of the noise expressions to another one, or the differences only are apparent on some document sizes and/or ones with different pixel content. As John said, the expressions documentation is inadequate, particularly for the distortion filters. That should be obvious, if from nothing else than what you have discovered about higher dimension noise expressions or what I did about Noise2 not working at all. Quote All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 Affinity Photo 1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
John Rostron Posted December 22, 2017 Share Posted December 22, 2017 I have posted a more extensive tutorial on using trig functions in the Tutorials section. So far I only include using sines, but I will add more. John Wikinger 1 Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Jurgen Posted December 22, 2017 Author Share Posted December 22, 2017 wow that is very nice - thanks a lot! Quote Link to comment Share on other sites More sharing options...
Wikinger Posted December 22, 2017 Share Posted December 22, 2017 Merci infiniment John Rostron pour ce beau partage, gratuit dans sa forme. J'ai fait un essai sur un lac, en variant les paramètres de base ... Bluffant. Merci encore. Quote Link to comment Share on other sites More sharing options...
RevTim Posted June 18, 2021 Share Posted June 18, 2021 Tweaking John Rostron's warping equation above, I been able to produce a Warped Glass Texture which has potential for artistic and graphic design purposes. Cartesian Radians x+(200*c)*sin(360*x/w)*a y+(200*c)*sin(360*y/h)*b Extend=mirror C paramater controls the warp complexity. I have attached a macro of the 360 version of the filter Reduce 360 parameter to 270, 180, 90, 45 gives increasingly larger areas of warping, each of which could be saved as a macro. You can also use higher number than 360 to get increasingly dense textures. When using as a macro the a, b & c parameters are only adjustable (click on the cog icon) BEFORE clicking the play macro arrow. Warped Glass Filter.afmacro John Rostron, Alfred, sfriedberg and 1 other 4 Quote Link to comment Share on other sites More sharing options...
John Rostron Posted June 18, 2021 Share Posted June 18, 2021 I did something along those lines here and here. John Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
RevTim Posted June 19, 2021 Share Posted June 19, 2021 John, everything you do here is awesome! Now, if only you could teach me trigonometry and the coding needed I might know what I was doing (and you'd have achieved something my maths teacher was never able to do, in spite of numerous detentions 🙂. John Rostron 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.