# T V

Members

38

## Reputation Activity

1. T V reacted to dmstraker in Blend modes notes (52 A4 pages)
Attached is my complete set of notes about blend modes, now spread across 52 pages of A4.
These are significantly updated from the previous revision, with lots more 'recipes' and organisation of these under main topics, hopefully to make them more usable.
Enjoy.
Blend modes notes V5.pdf
2. T V got a reaction from Rehder in [Affinity Photo] Procedural Texture beginner formula info
smoothosc
smoothosc(rx*a1/w,ry*b1/h,c1)
smoothosc(rx*a2/w,ry*b2/h,c2)
smoothosc(rx*a3/w,ry*b3/h,c3)
controllers
a1,a2,a3(R)  r,g,b horizontal shift creates divisions of document width (w)
b1,b2,b3(R) r,g,b vertical shift creates divisions of document height (h)
c1,c2,c3(0,1) r,g,b hard edge shift creates gradation
- notes on controllers
(R)  Real numbers whole and decimal.  Both positive and negative numbers work.  The preset formula was originally set up for (Z)*.
*While searching for hot keys to control the numbers while scrolling over them I found two.  1)  while hovering over (R) number box with mouse, scroll mouse wheel to change the numbers.  2) holding down shift key will shift the whole numbers by increments of 10.  3) holding down control key will shift the decimal by .1.  This is incredibly helpful for fractional increments.  (I can verify this only for Windows).
(0,1) All number between and including 0 to 1.  Represented as a slider.
- notes on formula
This function is a variation of osc and has 3 factors/parameters ( rx, ry, c1 ) separated by commas.
rx  (relative x)  multiplied by a1 (number of horizontal divisions)  divided by w (document width)
ry  (relative y)  multiplied by  b1 (number of  vertical divisions)  divided by  h (document height)  (many times, this will also be divided by document width (w))
c1  this is the smooth portion of the osc formula that creates the gradient (Note that gradient spread shifts equally (+, -) from division edge.)

default                                  r,g,b10x10                              r,g,b10x15                    r10x15,g10x10,b10x10

r10x15,g10x13,b10x10      r10x15,g10x14,b10x13         r15x15,g10x14,b10x13         r20x15,g18x14,b10x13

h r,g,b 10                                h r12,g4,b2                          h r30,g15,b10                         h r79,g61,b21

Here is an example of this in a macro...
T V - SQUARES_BARS PT R,G,B V1.0.afmacros
EXPERIMENT AND ENJOY  -  T V
3.
I had to edit some images for a client, who wanted to embed them into some kind of bank notes. The motives on them used to be classic copperplate engravings. So I created some macros for AP, some of which I want to share with the community.

Requirements:
The image needs to be square format (it will get resized to 3000 x 3000 px) The image needs to be flat (only 1 layer) The styles provided in this post need to be added prior to starting the macro I got an error message when trying to upload the files (probably due to their size, hence some google cloud links:
Engraving Styles (2.2 MB) - https://drive.google.com/file/d/1aHP4golVVLoidsw_aLs_EcMltfsM3oIu/view?usp=sharing
Engraving Macros (1.8 MB) - https://drive.google.com/file/d/1mMbZFTd-fLDuACyRCa7bne7cd0wksYUu/view?usp=sharing

4. T V reacted to StuartRc in Crazy Brush and Assets Library
Catalogue of free resources added to the Forum
1. Brush Library | 2. Asset Library | 3. Styles | 4. Information

Brush Library Sample sets from personal 'Affinity Brush Project'
1. Current uploaded Samples from Brush Library (Forum Sets are not full library versions!)
2. Placed into categories for reference.
3. Ignored older sets/threads (4)...as have been updated by newer an better versions (Mostly relating to Texture Brushes/hatching and Dots)
Texture Brushes
Texture Brush Packs x12 [Organics] [120]
Texture Brush Packs [Organics #2] [6 sets of 120 (720)]
Organic Set #1 | Organic Set #2 | Organic Set #3

Texture Brush Pack Fur Set 1 [120]
Texture Brush Packs (Hatching Version 3) [60] {There are 120 in total}
Updated to latest brush engine, multiple changes to nozzles including making use of rotation option in sub-brush
Version 2 has been archived!

Texture Brush Packs [Dots] [120]

Texture Brush Dot Patterns [120]

Texture Paint [Mixed Nozzle Raster Brushes] [Sample Set]
Texture Paint [Mixed Nozzle Raster Brushes [Sample Set] [AD version 1.7]
Test version of Sample set using 1.7 Brush Engine
Texture Paint Effects [combined Brush Set] [AD version 1.7]
Test version of Sample set using 1.7 Brush Engine | Combination set using Texture Paint 08 and Project Set 08 (Organics) Brush sets.

Texture Painter
The largest combined set consisting of:
6 groups of 120 brushes arranged as 4 x 120 brush sets [520]
2 groups of 120 small (textured pencils/brushes) [240]
Also 1 sample set, Special sample set AD 1.7, Effects set
Texture Paint Set #1 |  Texture Paint Set #2 | Texture Paint Set #3 | Texture Paint Set #4 | Texture Paint Set #5 | Texture Paint Set #6 | Sample Sets (2) | Special (AD 1.7)

Released:
Texture Paint Brushes [Group 1-4)] [120 texture brushes]
30 sample brushes from each of groups 1-4
120 Texture Paint Brushes and 30 small textured sketching brushes
Paint Brushes Set 1

Paint Brush Texture Sets 1 & 2
Nozzles
Added some nozzles so you can make your own brushes or patterns! (There are 1000's of these)
Nozzles:Texture Paint Brush Asset Library 01 [Nozzle Set]
Pattern Brushes
Pattern Brush Packs [120 Brushes]
Set #1

Pattern Brushes Sample Set 2 [A] & Set 3 [A] [240 Brushes]
Set #2 | Set #3

Pattern Brush Packs [Isometric] [60 Brushes]
Environment Brushes
Vegetation Brushes Set #1 [120 Brushes]

Vegetation Brushes Set #2 [120 Brushes]
Vegetation Brushes Set #3 [Version 1.7 only] [30 Brushes]
Added experimental brush set for 1.7 brush dynamics
Added second brush set that includes 'Sub-Brush Synchronisation' (Fixes visual appearance of brush panel and allows all brush nozzles to scale uniformly). Added suffix to brush set name
Vegetation Brushes Set #4 [1.7 Brush Engine] [30 Brushes]

Project Brushes
1. Project brushes added as library became a bit large!
...and easier to work with....
2. Contains some reworked brushes but also 100's of new ones. (Set six for Poison is all new and the largest of the project sets [300 brushes;150 Raster, 150 Vector])
3. Includes some vector sets...but not yet complete.....eek!

01 Project Brush Assets Hungry [Mixed Source]1[30 Raster]

02 Project Brush Assets Crazy Tree [Mixed Source]2  [30 Raster | 30 Vector]

03 Project Brush Assets Big-T [Mixed Source]3 [30 Raster | 30 Vector]
Updated with new collection of nozzles (not on Forum)

04 Project Brush Assets Ammonite [Mixed Source]4 [30 Raster | 30 Vector]
Updated to latest brush engine, multiple changes to nozzles and enhanced visibility
Version 1.0 has been archived! Available through same links

05 Project Brush Assets Monster Club [Mixed Source]5 [30 Raster]
Updated with new collection of nozzles (not on Forum)

06 Project Brush Assets Poison Set 6 [150 Raster | 150 Vector]
Renamed 'Undergrowth' and updated to 1.7 + Brush engine. All nozzles now vector. Re-factored all vector and raster brushes with new nozzles and adjusted brush dynamics. Scrapped original vector brushes and a completely new set.

Extended the original set with a new base vector brush set; Monochrome Pattern Styles; Vector Grunge assets: and seamless vector patterns based upon those styles
Undergrowth Base Vector Brushes 30 Vector base brushes  similar to Render I. Used as the basis for all 'Undergrowth' vector brushes
Monochrome Styles based on Base Texture Seamless Patterns
Assets:
Compound Grunge Vectors for adding texture to objects
30 Seamless Vector Patterns that can be stacked, re-coloured, scaled or extracted as compound objects. Samples can be seen here
07 Project Brush Set Ink. (tutorial based on inkBrush Project can be found here: Creating Vector Brushes)
Work in Progress sample sheets for inkBrush Project

The largest of the Project sets Consisting of a 900 brush set collection with 350 supporting vector elements:
300 'Vector' based brushes
600 'Raster' based brushes (inc 30 stamp brushes)
350 Vector Assets for texturing objects
100+ Seamless Patterns

10 vector sets (Inking [30], Paint [30], Texture [30], Effects  [30], Granular [30], Render [30] , Linear [30] ; Render [Texture] [30]), Render II, Linear II;
13 Raster Sets (Texture [60], Pattern (geometric) [60], Pattern (Organic) [30], Sketch [60], Draw [30], Hatch [60], Bristle [60], Stipple [60], Effects [60], Paint [60], Stamps (vegetation) [30], Splatter, Grunge) [30]

3 sub-Project Brush sets: Muddy, Prickly, Chop [not-completed]

Supporting Vector Assets:
Additional Vector Assets for Pattern (Geometric), Texture Brush [50], Texture [200], Grunge [50], Patterns[50]

Released:
Vector
A. InkBrush - Vector - Render [30 Vector Brushes]
B. InkBrush - Vector - Linear [30 Vector Brushes]
C. InkBrush - Vector - RenderTexture [30 Vector Brushes]
Raster
A. InkBrush - Raster - Grunge (under project set 09)
Vector Patterns
A. InkBrush - Vector Patterns (compound paths) [50]
B. InkBrush - Vector Textures (compound paths and placement textures) [50]
08 Project Brush Organics Set 8 [30 Raster Brushes] [Version 1.7 only]
Project Brush set with 30 additional raster Nozzles;20 Brush Templates (Version 1.7) and 30 single nozzle raster brushes
09 Project Brush Grunge Set 09 (60 Raster Brushes)
Added Set 09: 30 Raster Brushes
Added Set 09 [INK]: 30 Raster Brushes; modified version of the inktober 2018 Project Set (modified brush dynamics) [Version 1.7 only]
10 Project Brush Assets Shy [30 Raster Brushes]
30 additional vegetation raster brushes (leaves)
11 Project Brush Assets Camouflage [180 Raster Brushes]
Experimental set based on Camouflage assets with released sample set [30] and Paint [30]
Project Brush Set with 6 Categories (Texture [30] | Bark Grunge [30]  Leaves [30] | Canopy [30] | Effects | Paint [30])
Released:
Raster
A. Camouflage (Mixed Samples) [30]
Set consists of 30 Brushes in total with 8 brushes from Leaves; Grunge Bark; Textures plus 6 from Canopy
B. Camouflage:Paint Textures [30]
Set of 30 Paint Brushes based on Camouflage Assets
12 Project Brush Vector Paint [60 Vector Textured Brushes]
Vector Paint 01 | Vector Paint 02 | Vector Paint 03
60 shape masks with textured overlays partially based on inkBrush Render

Released:
Vector
Set of 30 Vector Brushes compiled from 5 separate brush sets:Render II | Linear II  and Vector Texture 01, 02, 03

13. Project Brush Ink Painter
Ink [30] | Paint [30] | Shader [30] | Texture [30] | Mesh [30] | Sketcher [35] | Micro Pattern [30] | Linear [30] Grunge [30]
Group set of raster brushes
Released:
Ink Sketching set to supplement Pencil Brushes
inkPainter Sketcher [35]

14. Project Brush Organic Pattern
Brush set to develop organic patterns and graphic styles using seamless patterns
Organic Pattern 01 | Organic Pattern 02 | Organic Pattern 03 Organic pattern 04 | Organic Pattern 05 | Organic Pattern 06
180 Raster Brushes | >200 seamless patterns
Released:
Organic Brush Special Set
An Experiment with variation on single base texture (30 Brushes) using limited nozzles and settings
There is a small sample set for organic brushes Organic Brush Test

Organic pattern Brush Set 01
30 raster Brushes with >15 vector based seamless patterns
15. Project Brush: Texture Pencils [30]
30 Raster brushes to mimic pencils for sketching with blend mode 'mostly' set to average
16. Project Brush Painter [60]
60 Raster Brushes defined in 2 sets: Painter | Grunge Painter
These are based on InkPainter Grunge and inkPainter Paint but with adjusted Brush Dynamics for painting

30 Vector Brushes (Grunge Painter)
Collection of vector based brushes build from vector textures used in original raster set
Standard naming convention (mostly!) [vector and raster brushes share name]
1. Using the same nozzle structure (easy now as all vectors!)
2. Balanced naming for easier reference - so vector/raster brushes have same name (well mostly!)

17 Project Brush: Concept Brushes
Set of 30 raster concept brushes extracted and edited from previous brush sets (Organic | ink | InkPainter | Ammonite V2 )
18. Project Brush: Monster Brushes [30]
Set of 30 raster brushes based on a limited number of vector shapes used in backgrounds
19. Project Brush: #Inktober Inker
Set of 60 Inking Brushes and includes:
21new inking brushes with large nozzles and manipulated through dynamics to create a ink pen/brush effect for line art (Grunge up your artwork!) and create a set that can be used as default for inking!
Mix of Grunge | Texture Painters | Micro Pattern I Organics Textures and basic comic patterns
Re-worked hatching and stipple brushes

Asset Library
Vector assets created and available in Resources section of Forum
Free assets based on drawings saved into asset panel with supplementary explanation PDF (mostly!)

Inktober 2017
1. Screech
2. Juicy
3. Poison Updated with Full set of Vector objects. Samples can be seen here
4. Shy
5. Filthy

InkBrush Project Vector Assets
Vector textures to supplement InkBrush Project
1. Geometric and organic pattern textures
2. Compound and placement textures
3. Nozzles

Snowflakes
1. Snowflakes and construction assets

Camouflage Project
1. Camouflage I
2. Camouflage II

Rock Monster Project
1. Vector Texture Toolkit
A vector toolkit for creating vector backgrounds without painting using raster brushes. Used in the Rock Monster Project. Consists of Styles | Vectors and construction layers.
2. Rock Monster Kit
A vector toolkit (Version 1.0) for creating little Monsters! Contains textures and shapes for 10 pre-built designs but you can pick and mix..2 samples included.
3. Monster World Plants
Vector Assets including Plant Shapes, Textures and Grunge

Style Library
Style assets created and available in Resources section of Forum

Inktober 2017
1. United
2. Screech
3. Poison
4. Long

Camouflage II
1. Pattern Styles I
Set of 30 coloured patterns based on base textures for brush nozzles
2. Pattern Styles 2
Set of 30 coloured patterns based on base textures for brush nozzles

Information
1. Pulled this from another thread...may find useful.....
Issues relating to installing iPad Brushes:

These fantastic tutorials also very useful if you wish to explore creating your own..and have some fun at the same time.
Managing Raster Brushes
Managing Assets: @Frankentoon kindly created a video tutorial for installing AD assets including Brushes on YouTube. Brushes available here
Creating your own brushes for iPad at: Affinity Spotlight by @paolo.limoncelli: Paolo's Daub Brush Techniques acquire them here
Creating your own Bristle Brush: Tutorial
Creating and individual Vector Brush from @Mensch Mesch: Ivy Brush
Creating Vector Brushes by @IsabelAracama: Custom Vector Brushes
Creating vector (intensity and image brushes) Custom Vector Brush

General process of creating Vector Brushes by Envato Tuts+: Everything You Need to Know About Affinity Designer Brushes
Introduction to creating Vector brushes including method to extract vector based brushes from illustrator and convert to AD Vector (raster) equivalents

Spoongraphics List of Affinity Brushes: Best Brushes for Affinity Designer
Envato Tuts+ 25 of the Best Affinity Designer Brushes

Installing Assets
Help page to install assets into Affinity Suite
https://affinity.serif.com/en-gb/store/resources-install-guide/
Others
Custom Smoke Brushes
Texture Brushes and Blend Modes
Creating Vector Brushes (includes assets and 10 sample brushes)
Creating Base Textures for Brushes
Added a process information sheet outlining methods of seamless pattern creation that can be used for brush base textures and graphic styles

5. T V got a reaction from darkwark in Affinity Photo: Sample color at (x, y) in Procedural Texture Filter
Unfortunately, I am at a loss on this as a procedural texture function.  As @v_kyr said, there are many things lurking behind the face of the app that we are just scratching the surface of.  Macros most likely would have to be incorporated.
6. T V got a reaction from John Rostron in Macro to wrap an Image around a Bottle or Mug - revisited
John,  Dido on the Merge Visible.  Clip Canvas worked like a live layer for me, but,  I do have to wait for the processing to catch up between changing settings as it is not instant.  Creating a larger canvas also seems to add to the bog at the beginning.  This is why I kept it lean and avoided the Merge.  It is completely possible to turn off visibility of layers in macros, but, how many and which ones...  - T V
7.
I have decided against providing these additional macros.
Adding Merge Visible at the beginning creates a suitable target layer on top of the stack, but the original layers are still visible below, which somewhat defeats the purpose.
Adding Clip Canvas at the end of the macro does not work. It does indeed clip the canvas, but it does so before I have a chance to  adjust the parameters. I will explore this further and make a bug report if I feel that it needs it.
John
8. T V got a reaction from John Rostron in Macro to wrap an Image around a Bottle or Mug - revisited
Clipping Macros
I haven't been making macros everyday lately, so, I thought I would try some new things to get confidence with these equation anomalies...tested on horiz & vert format images and working great.  - notes : larger canvas - 10,000 px  x 10,000 px , clip canvas crops to image size leaving curved edges exposed , controls modified in equation...    👽 - T V
S-curve CLIP.afmacros
larger canvas - rasterize - S-curve equation - clip canvas
larger canvas - rasterize - S-curve Radial equation - clip canvas
Curve-warp CLIP.afmacros
larger canvas - rasterize - Curve-warp equation - clip canvas
rasterize - Horizontal Curvature Shift equation - clip canvas

9. T V got a reaction from John Rostron in Macro to wrap an Image around a Bottle or Mug - revisited
John, looks good.  Personally, I prefer to see the edges.  Clipping the canvas would be good for saving file size.  Are you starting a 'Heavenly Brew'?  Cheers - T V
10. T V got a reaction from John Rostron in Macro to wrap an Image around a Bottle or Mug - revisited
catlover,  ran into same problem on vertical oriented photos.  Horiz no problems...John fixed this problem in last macro with rasterize.  I have tested this and it works no problem, just rasterize and it should work for you too!  PS. John,  while it is good form to add unlock as a macro step, rasterize seems to unlock the images without that step.  So far, I have only run into this issue with distortion related commands on Vertical oriented images.  Keep up the good work!  - T V    Update...this is flipping the image horizontally for me.  Without rasterize, it flips horizontally and vertically.
11.
In a recent posting, @MaximusNZhad been creating panoramas, but had found that the upper and lower parts of the image were compressed with respect to the more central parts. He posted a message in my thread on Wrapping a label round a bottle since this also involved such stretching and squeezing. I posed a temporary solution to his/her problem, but I present here a more general solution. This is based on the S-curve, familiar to those using the Curves tool. The default shape for the curve is a straight line between the origin and the (w, h) position at the top right. The parameters of the macro will distort this linear relationship. I will elaborate on the mathematical aspects in a later posing in this thread.
Consider a simple grid:

By varying a parameter a, the image can be distorted horizontally. Values of a larger than 0.5 will stretch the left and right whilst compressing the centre; values less than half will stretch the centre whilst stretching the left and right. See the image below:

By varying a parameter b, the image can be distorted vertically. Values of b larger than 0.5 will stretch the top  and bottom whilst compressing the centre; values less than half will stretch the centre whilst stretching the top and bottom. See the image below:

Here is the macro as a single macro and as a library:
S-curve.afmacro
S-curve.afmacros
John
12.
I wonder if you cropped your image to the vertical format.  If you apply Layer > Rasterise and trim, then it should work OK.
John
13.
Use the Channels Panel to switch the channels you don’t want to affect OFF, then perform the Equation Distort.
See my attached image where the Red channel has been moved by 100 pixels to the right (Channels Panel settings shown bottom-right).

14. T V got a reaction from John Rostron in A Macro to perform Affine Transformations
Hi John,   Try this:  fixes the wrap...thanks for introducing me to Affine!  - T V
x = irem(x+a*h,h)
y = irem(y+b*w,w)

⛔ correction...this only works on vertical document format...
15.
In a recent posting @skitchy  enquired about shifting pixels using Procedural Textures. I was not able to help, but I realised that you could perform an Affine Transformation (Filters > Distort > Affine) using Equations (Filters > Distort > Equations) instead. I used two parameters which control the horizontal shift and the vertical shift.
Here is a photo before applying the macro:

and after applying the macro:

The horizontal shift was around a half, and the vertical shift about 0.8.
Here are the equations:

x=   irem(x+a*w,w)
y=   irem(y+b*h,h)
As I said, they do not do anything that the Affine Transformation would not do (in a macro), but I offer them here as an alternative which might be more convenient within the context of a  more extended procedure. Here is the macro, and the macro library:
Macro: Affine Transform.afmacro
Library: Affine Transform.afmacros
John
16.
Thanks, @T V. This has gone some way to improve my understanding of procedural functions. I might even have another go at using them. Keep up the good work, but I may come back to you for further clarification.
However, I think that this thread really belongs in the Tutorials forum.   I would suggest that a moderator move it.
John
17.
Helpful. Thanks. I've yet to get properly into oscillators, etc. Mostly doing RGB algebra of late.
It would be great if there was more definitive help available on the PT functions.
18.
@T V I'm out of likes and thanks to spend on this forum, so like this: great hints, thanks! 😀
19.
Thanks from me as well. I think that I may actually be able to create one of these textures myself before too long!
John
20. T V got a reaction from John Rostron in [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...

21. T V got a reaction from John Rostron in [Affinity Photo] Procedural Texture beginner formula info
Urban Camoflage
var v1=vec2(rx,ry)*(a1/w); noisei(v1+(dirsc(v1)*b1*4))
var v2=vec2(rx,ry)*(a2/w); noisei(v2+(dirsc(v2)*b2*4))
var v3=vec2(rx,ry)*(a3/w); noisei(v3+(dirsc(v3)*b3*4))
controllers
a1,a2,a3(Z) square count                default set to 10
b1,b2,b3(0,1) turbulence                  default set to 0
- notes on formula
variable var v1=vec2(rx,ry)*(a1/w);
var creates variable v1
vec2 creates vector at relative (x,y)
multiplied by a1(Z) divided by document width sets divisions by document width, separated by a semicolon;
- notes on function
noisei(v1+(dirsc(v1)*b1*4))
noisei noise function interval with 1 factor/parameter
uses variable v1 plus
dirsc directional noise s curve with 1 factor/parameter (v1)
multiplied by b1(0,1) turbulence percentage multiplied by 4
default                         sc = 10 rt.25, gt.13            sc = 10 rt.25,gt.5,bt.75        sc20,15,10 turb .25,.5,75        scr20,g15,b10 turb = 1

Here is an example of this in a macro...
T V - URBAN CAMO PT R,G,B V1.0.afmacros
ENJOY AND EXPERIMENT - T V
22. T V got a reaction from John Rostron in [Affinity Photo] Procedural Texture beginner formula info
Droplets
var v1=vec2(rx,ry)*(a1/w); smoothstepn(c1-(b1*0.1), c1+(b1*0.1), osc(v1+(udirsc(v1)*d1*2)))
var v2=vec2(rx,ry)*(a2/w); smoothstepn(c2-(b2*0.1), c2+(b2*0.1), osc(v2+(udirsc(v2)*d2*2)))
var v3=vec2(rx,ry)*(a3/w); smoothstepn(c3-(b3*0.1), c3+(b3*0.1), osc(v3+(udirsc(v3)*d3*2)))

controllers
a1,a2,a3 (Z)  r,g,b square count          default to 10
b1,b2,b3 (0,1)  r,g,b smoothing           default to 0
c1,c2,c3,c4 (0,1) r,g,b offset                default to .5
d1,d2,d3,d4 (-1,1) r,g,b turbulence      default to 0
- notes on formula
var v1=vec2(rx,ry)*(a1/w);
vec2 creates vector at relative (x,y) multiplied by input a1 divisions divided by doc width, separated by a semicolon;
- notes on function
smoothstepn(c1-(b1*0.1), c1+(b1*0.1), osc(v1+(udirsc(v1)*d1*2))
smoothstepn is a stepping function and has 3 factor/ parameters
(c1-(b1*0.1),
input offset c1(0,1) minus ( smoothing b1(0,1) multiplied by 10 percent )

c1+(b1*0.1),
input offset c1(0,1) plus ( smoothing b1(0,1) multiplied by 10 percent )
osc(v1+(udirsc(v1)*d1*2))
oscillation osc function with 1 factor/ parameter
( variable v1 plus( udirsc ( variable v1 ) multiplied by input d1 (-1,1) multiplied by 2))  udirsc is directional noise s curve with 1 factor/parameter
default                               scr12,g11,b10                         scr30,g15,b5                          rt-1, gt-.5, bt0           sc45,15,10 smooth=1 turb-.5,.5,1

Here is an example of this in a macro...
T V - DROPLETS PT R,G,B V1.0 .afmacros
ENJOY AND EXPERIMENT - T V
23. T V got a reaction from John Rostron in [Affinity Photo] Procedural Texture beginner formula info
noise 3
var v=vec2(rx,ry)*(a1/w); noisesc(v+(udirsc(v)*b1))
var v=vec2(rx,ry)*(a2/w); noisesc(v+(udirsc(v)*b2))
var v=vec2(rx,ry)*(a3/w); noisesc(v+(udirsc(v)*b3))
controllers
a1,a2,a3 (Z)  r,g,b square count             default to 10
b1,b2,b3 (-1,1)  r,g,b turbulence            default to 0
- notes on formula
var v=vec2(rx,ry)*(a1/w);
variable v=vec2 creates vector at (rx,ry)
multiplied by ( a1(Z) square count divided by document width ) separated by a semi colon; creates divisions of document width
- notes on function
noisesc(v+(udirsc(v)*b1))
noise s curve ( with 1 factor/parameter )
( variable v + ( udirsc ( variable v ) multiplied by turbulence input b1(-1,1) )
udirsc  directional noise s curve ( with 1 factor/parameter )
default rgb10                          r12,g11,b10                             r20,g15,b10                r20,g15,b10 rt-1,gt0,bt1            rgb10,rt-1,gt0,bt1

Here is an example of this in a macro...
T V - NOISE 3 PT R,G,B V1.0.afmacros
EXPERIMENT AND ENJOY - T V

24. T V got a reaction from John Rostron in [Affinity Photo] Procedural Texture beginner formula info
noise 2
var v1=vec2(rx,ry)*cells1/w; tocui(perlinhsc(v1,oct1,pers1)*cont1)+br1
var v2=vec2(rx,ry)*cells2/w; tocui(perlinhsc(v2,oct2,pers2)*cont2)+br2
var v3=vec2(rx,ry)*cells3/w; tocui(perlinhsc(v3,oct3,pers3)*cont3)+br3

controllers
oct1,oct2,oct3(Z) r,g,b octaves                               default to 5
pers1,pers2,pers3(0,1) r,g,b persistence               default to .5
cont1,cont2,cont3(0,1) r,g,b contrast                     default to 1
br1,br2,br3(-1,1) r,g,b brightness                             default to 0
cells1,cells2,cells3(Z) r,g,b cell count                     default to 10
- notes on formula
variable  var (defines the variable v1)
v1=vec2(rx,ry)*cells1/w;
vec2 creates a vector at relative (x,y) position
multiplied by cells1 divided by document width creates size or scale in relation to width, separated by a semicolon;
the variable v1 can then be used in the function.
- notes on function
tocui(perlinhsc(v1,oct1,pers1)*cont1)+br1
tocui is a numeric range conversion between 0 and 1

tocui controls (perlinhsc function multiplied by contrast)
perlinhsc (harmonic s curve) function with 3 factors/ parameters (v1,oct1,pers1)
multiplied by contrast (cont1) effects hue/intensity of color
addition of brightness (br1) effects light to dark
default                           persistence r,g,b=1             persistence r0,g.5,b1                      red cell 9                     red cell 9 green cell 8

Here is an example of this in a macro...
T V - NOISE 2 PT R,G,B V1.0.afmacros
ENJOY AND EXPERIMENT - T V
25. T V got a reaction from John Rostron in [Affinity Photo] Procedural Texture beginner formula info
While this may be better explained by a math professor or an Affinity developer, I will try to do my best to dissect these into digestible bite sized portions.  Soon I plan on posting some basics on rx,ry math.  May be easier to understand in a video(not my thing...yet...) due to having a visual reference.  I will include simple macros of movement examples.  I think that seeing it and being able to play with it at the same time helps reinforce the connection.
Right now I am about 8 macros ahead of myself of R,G,B variations of the standard presets.  It has increased my appreciation for these formulas beyond belief.  They are all usable by the beginner to create multi colored gradients or use as a starting point and just have exponential fun.  Looking forward to your and everyone's contribution to this. - T V
×

• #### Affinity

×
• Create New...