# Search the Community

Showing results for tags 'procedural texture'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• Affinity Support
• News and Information
• Affinity Support & Questions
• Feature Requests & Suggestions
• Learn and Share
• Tutorials (Serif and Customer Created Tutorials)
• Resources
• Bug Reporting
• Report a Bug in Affinity Designer
• Report a Bug in Affinity Photo
• Report a Bug in Affinity Publisher
• (Pre 1.7) Affinity Range Bugs Forums
• Beta Software Forums
• Affinity Designer Beta Forums
• Affinity Photo Beta Forums
• Affinity Publisher Beta Forums

• 0 Replies

• 0 Views

Found 15 results

1. ## Procedural Texture funny

Here's a funny thing. Load the attached RGB....jpg file. Procedural Texture. Add variable 0..1 called 'xx'. Put the following code (a snippet from some HSL tinkering) into R, G and B channels. var mx=max(R,G,B);var mn=min(R,G,B);var mr=mx-mn;var ms=mx+mn;var ifmo=roundup(mr-.001);var ll1=ifmo*ms/2;var iflo=roundup(.5-ll1);var ss1=ifmo*(iflo*mr/ms+(1-iflo)*mr/(2-ms+.001));var ifrx=1-roundup(mx-R-.001);var ifgx=1-roundup(mx-G-.001);var ifbx=1-roundup(mx-B-.001);var hr=ifrx*(1-ifgx)*(6*roundup(B-G)+(G-B)/mr);var hg=ifgx*(1-ifbx)*(2+(B-R)/mr);var hb=ifbx*(1-ifrx)*(4+(R-G)/mr);var hh1=ifmo*(hr+hg+hb)/6;xx You should see the value which is in the xx variable (0 to 1, black to white) as the rest are vars. But what I'm getting is the variable acting on the colours within the image, but not the mono. Just to confuse things further, if you remove the last var statement (var hh1=ifmo*(hr+hg+hb)/6;) it works as it should. Don't know if its significant, but I created the image using shapes and no (white) background and exported it to jpg. I re-did this export and same effect. I then tried it with another exported file and had a similar effect. Something to do with exporting of files with no background to jpg? Still odd about the PT code effect. EDIT: Hmm. More tinkering. Don't think it's export. Happening also on fresh pixel image.
2. ## Affinity Photo: Sample color at (x, y) in Procedural Texture Filter

Hello, I want to get a color value of a pixel at (x, y) coordinates. Is there a color sampler function in Procedural Texture Filter similar to texture2D in GLSL? Thanks!
3. ## Crash on copy a group that has a procedural texture

Ctrl+C cause crash when a group has a procedural texture live filter. It seems that this happens when a group has a vector or an image layer together. Group that has only procedural texture or a pixel layer together is ok.
4. ## [Affinity Photo] Procedural Texture beginner formula info

Hi Everyone, I have been on a mission to fill the void in the Macro environment by the lack of gradient support. To this end I was introduced to Procedural Texture and saw some possibilities and started tinkering. The manifestation of this can be found in several working groupings of R,G,B Vignettes and Linear gradient macros uploaded in the Resource section that I will update as interesting developments occur. In this, I will attempt to break down some of the math and show you how I am attempting to work around my limited knowledge of geometry(has been a while since trig) to make this accessible to the beginner who wants to implement some control over the basic examples and give some direction over how to navigate this powerful tool. If you would like some immediate video immersion of outstanding examples, that I may start from or point to, see Graphicxtras.com on youtube. If anyone has anything to add/correct/questions, comments, etc. please jump in...this is only meant as a supplement to the Affinity Photo Procedural Texture help section that can leave the beginner a little overwhelmed. So, here is the first installment of my experiences. And certainly, if anyone wants to use these explanations in video format please feel free...just post a link for everyone to see it. Procedural Texture 101 https://en.wikipedia.org/wiki/Procedural_texture These are some common definitions of elements of an equation w = width of document h = height of document x = horizontal axis y = vertical axis rx = relative x(position) to upper left hand corner expressed as (0,0) horizontal axis (rx,0) ry = relative y(position) to upper left hand corner expressed as (0,0) vertical axis (0,ry) R = red channel G = green channel B = blue channel A = alpha channel Relative x and y (rx,ry) x and y coordinates can also be specified as values relative to any starting point on the screen or any subset of the screen such as an image. On the Web, each clickable area of an image map is specified as a pair of x and y coordinates relative to the upper left-hand corner of the image. https://en.wikipedia.org/wiki/Cartesian_coordinate_system osc(input, parameter) The following syntax follows the typical convention of function(input, parameter) where the function( = osc ) https://en.wikipedia.org/wiki/Wave_function https://en.wikipedia.org/wiki/Wave_equation https://en.wikipedia.org/wiki/Oscillation_(mathematics) osci(input, parameter) This function example represents the oscillation over the set (in this case an interval) of the function( = osci ) https://en.wikipedia.org/wiki/Interval_(mathematics) This example is formula from the Checkered preset osci(rx*c/w,ry*c/w) variable c(Z) produces squares + addition of variable a(Z) to control vertical axis osci(rx*c/w,ry*a/w) c(Z) produces horizontal rows a(Z) produces vertical rows example. c=0 (no horizontal rows) c=1 (1 horizontal row) c=25 (25 horizontal rows) c=5, a=5 (square with the size of 5 rows horiz and 5 rows vert)(effectively enlarging 5x larger than (1x1) c=5, a=1 (rectangle with the size of 5 rows horiz and 1 row vert) etc. See video example of procedural texture squares at Graphicxtras.com I will update with macros of these examples as I go along, or if you want to get started go to procedural texture and find the checkered preset and start experimenting. orig softlight 50 checkered R,G,B enhanced* * enhanced with Dave's Shifter Macros(slight tweeks with all 3) looks like candy. (These are free macros available thru his InAffinity channel on youtube. This one came out today...) Enjoy and Experiment - T V
5. ## [Affinity Photo] T V - LINEAR PT R,G,B V2.0

Hello All, I have been inspired by a thread I started this morning on Basic Procedural Texture Deconstruction to allow beginners to see into the process and the math to be able to create their own Procedural Texture. I thought sharing some of my documentation would be a good place to start and fortunately videos are available at Graphicxtra.com. They are a great resource. Unfortunately, not how I got started, but, I am so happy to have found them that I will start seeing if I can work through an entire video at some point. For now, I am still figuring out that gradient macro workaround and this is a linear variation that introduces another formula in a unique way. I hope you like it as I hope to expand on this one a little. LINEAR V2.0 Formula: smoothosc((c1*rx-d1*ry)*a1/w,b1) smoothosc((c2*rx-d2*ry)*a2/w,b2) smoothosc((c3*rx-d3*ry)*a3/w,b3) Inputs: a1(R),a2(R),a3(R) lines b1(0,1),b2(0,1),b3(0,1) hard edge c1(-1,1),c2(-1,1),c3(-1,1) horiz shift left, right from center d1(-1,1),d2(-1,1),d3(-1,1) vert shift up, down from center For now, this produces linear gradients that shift left or right, up or down, rotate limited( this happens when using the horiz shift and the vertical shift at the same time). The R,G,B creates multi colored gradients. This layer is non destructible and applies at 50 percent grey coverage at 100 percent opacity for choosing color gradient. Set blend mode to overlay or soft light to see image and adjust transparency to taste. T V - LINEAR PT R,G,B V2.0.afmacros Enjoy and Experiment - T V NOTE - I started a new beginners supplement to the Procedural Texture Help section in the tutorial resource section. You will be able to find more examples with free Macros and my attempts to break them down in understandable ways. It should help others become a little more comfortable with this incredible process. Future examples will show up on the tutorial forum page...

7. ## Procedural Texture on iPad

Is there a panel to input / edit the equations for the Procedural Texture filter in Affinity Photo on iPad? I can't figure out how to find it. Thanks.

9. ## Different evaluation of same expression in Procedural Texture vs Apply Image

I'm working on isolating the maximum value colour in each pixel, so in Apply Image I'm successfully using: DR=SR*rounddown(1-(max(SR,SG,SB)-SR)) DG=SG*rounddown(1-(max(SR,SG,SB)-SG)) DB=SB*rounddown(1-(max(SR,SG,SB)-SB)) rounddown is effectively a boolean operator that reduces this expression to 1 or 0, which happens when the R, G or B value is the same as the maximum value. Implementing this in Procedural Texture I'm getting an illogical and different result. R: R*rounddown(1-(max(R,G,B)-R)) G: G*rounddown(1-(max(R,G,B)-G)) B: B*rounddown(1-(max(R,G,B)-B)) In a test case using B to check out differences, the evalution of B differs *sometimes* when Blue is the maximum. I suspect a rounding or clamping effect, so (max(R,G,B)-B) is not sometimes wholly zero when B is maximum. An example where this evaluation fails is RGB of 102, 109, 135. This seems to be happening more when the value of Blue is higher. A fix is clamping the max calculation, B*rounddown(1-clamp((max(R,G,B)-B),0,1)), but is a kludge that shouldn't happen (and, I'd suspect, most users would not find). Procedural Texture, for some reason, seems to calculate much faster than Apply Image. Not sure why this is. When PT calculations don't need kludges I'll move over a number of macros I offer in my InAffinity YouTube channel (which currently take several minutes to calculate in Apply Image). APh version is 1.8.0.585
10. ## [Affinity Photo] T V - VIGNETTE PROCEDURAL TEXTURE R,G,B.afmacros

Today, I was on a search for Procedural Texture formulas and I found one in the help menu, thanks Affinity! Instead of giving you a macro based on that alone, I added (0,1) controls for red, green, blue. This expands the versatility of the radial vignette to create color toning, blends, etc., as well, all in one. The controls are set up for a black round gradient vignette. When applied, the gradient is sized and centered to the image and will add a non-destructive layer above the layer stack. This can be applied from any selected layer or not. Double click on the Procedural Texture layer to open the Procedural Texture dialog box. With the Procedural Texture box open, select any point on the image area to move the center of gradation. The first (3) controls change the size and depth of gradient. The second (3) R,G,B(0,1) controls offset the black gradient to color, just as normal R,G,B control sliders. +++ After further testing, the settings of the macro set this up perfectly on square and vertical images. For horizontal images try changing the 1st control to 25%, 2nd control to 50%, and 3rd to 2. Experiment and Enjoy! - T V My hope is to learn how to replicate this in a linear fashion, amongst others, which, will fill a current need in the macro environment to be able to produce a variety of color gradients options. ***Any help will be rewarded with more macros ✌️ ...I just finished another (divided) version which produced interesting results...also, another gradient vignette version controlling EVERYTHING completely differently... T V - VIGNETTE PROCEDURAL TEXTURE R,G,B.afmacros
11. ## Procedural Texture variables in Macros, please

It would be great if variables/custom inputs in Procedural Texture were selectable in macros, rather than just Opacity. Thanks!
12. ## Procedural Texture Lab Preset

Hi, I start with with the procedural texture ( Filters> Colours> Procedural texture) It 's in Lab mode , ( I wanted see LCH if s the easiest way to " move" w color ), Before, I made an simple test. in 1.8 beta, play with channel save as a preset, close the file An reload with another test file BUT By default we have RVB option, sometimes very difficult to reload it , and impossible with live filter option I can export the preset, but I want re import, photo (beta and release) say me Sometimes I have difficulties for found Lab option, perhaps by bad understanding of the structure Preset manager can you say me labcolor1.aftoolpresets
13. ## Procedural Texture not sticking

In the latest release, when creating a procedural, what you type in the equations field doesn't stay. For example: Open up an image Open up the procedural texture filter You should have no equation lines yet Click on the + to create a new equation line. It will just show a 0 in the field now. Change that 0 to x and hit enter or tab. Notice how the display goes back to 0 but the filter actually took effect? If you click back in the field it will show what the equation actually is (in this case just x). If you create another equation line by clicking the + button then the original line will now show the equation that was in there and the new line will show 0.
14. ## Edit Procedural Texture

Hi all, I'm trying to figure out how to add new parameters to the Live Procedural Texture but I can't get my head around it. Basically I would like to use the Smoothed bars preset and add a rotation parameter and a way to control the thickness of the black bars and white bars independently, is this possible? Thanks in advance, Juan
15. ## Procedural Texture Presets

Hi, would you be so kind and make Procedural Textures' Presets -> Live?
×

• #### Affinity

×
• Create New...