Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

I am experiencing some strange behavior with Live Procedural Texture and the "rgbtoi" function. Perhaps I am doing something wrong, but if so, I can't figure out what it is. I'm on a MacBook Pro running Ventura 13.6.4, using AP 2.3.1. I was trying to create a Toning Preset using Procedural Textures, but the display comes out very dark, which stopped me in my tracks. 

Here's the original image. I picked this image because it had a lot of different colors for testing. The below image shows only the base layer (the original pixel layer). The layers above the base layer are hidden.

Original.thumb.png.059f2fb520213d84d1ad45f2a9087c33.png

I added a Channel Mixer Adjustment Layer and set it to grayscale and I get the expected result. It displays the weighted grayscale of the image (using approximately 30% Red, 59% Green, 11% Blue for the conversion to grayscale). Note the sample points in the Info Panel. They look about right to me and agree with the image as displayed on my monitor.

ChannnelMixer.thumb.png.3e619745e6bc3aa0fefb990711c1c2ed.png

Below is a screenshot with the Procedural Texture Layer visible and the Channel Mixer Layer hidden. I used the "rgbtoi" function, which I believe does a similar RGB to weighted grayscale conversion as Channel Mixer (approx 30%R, 59%G, 11%B) and provides the output as grayscale intensity. The image displays extremely dark, but the sample points in the Info Panel are nearly identical to those shown in the Channel Mixer screenshot. The sample points do NOT agree at all with the displayed image. I'm guessing it is a "display issue" because the calculated values in the Info Panel seem to be correct. 

ProTex-rgbtoi.thumb.png.a16f4654f25cfefd04fdfa2b3f5a136f.png

If I change the Layer Blend Mode of the PT layer to Color, Hue or Saturation, the image displays the same as Channel Mixer, but this shouldn't be necessary. And for my purposes, it defeats my intention of building a PT to do Toning. I could put a Channel Mixer Layer (set to Grayscale) below the PT Layer, but that shouldn't be necessary, should it? Seems like a bug to me, unless I am missing something (which is very possible). Any help would be appreciated. 

I'll also attach the afphoto file, created using AP 2.3.1. Thanks.

PT-rgbtoi.afphoto

 

 

 

2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish

Link to comment
Share on other sites

its a bug already fixed in 2.4 beta. PT filter was broken in multiple aspects in 2.3.1 on Mac.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

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

@NotMyFault Thank you. It was driving me crazy, so it's good to know it's a bug and is fixed in 2.4 beta. I'll probably wait for the official v2.4 release.

2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish

Link to comment
Share on other sites

33 minutes ago, Ldina said:

It displays the weighted grayscale of the image (using approximately 30% Red, 59% Green, 11% Blue for the conversion to grayscale).

rgbtoi uses different factors,  

https://en.wikipedia.org/wiki/Grayscale

The sRGB color space is defined in terms of the CIE 1931 linear luminance Ylinear, which is given by[6]

{\displaystyle Y_{\mathrm {linear} }=0.2126R_{\mathrm {linear} }+0.7152G_{\mathrm {linear} }+0.0722B_{\mathrm {linear} }.}

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

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

@NotMyFault Thanks again. 

 

2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish

Link to comment
Share on other sites

@Ldina, as rgbtoi is broken on macOS, why not just use direct percentage calculation on 0 to 1 range?

Another problem of course is that the input sliders have lost their value boxes (a bug that has existed there for years, I think that at some point they were there, at least as tool tips). So you need to be a bit innovative with the rulers to get exact(ish) values (30, 59, 11).

image.thumb.png.b986d0f450b386015468b11352eafea9.png

The attached file has the same traditional grayscale conversion also as a Black and White Adjustment to show that the conversions are equal. 

rgb2gray.afphoto

 

Link to comment
Share on other sites

@lacerto Thank you, Lacerto. That definitely works.

I came up with an alternative solution until "rgbtoi" and other PT functions are fixed in v2.4. I hard-coded 30%R, 59%G, 11%B into the formulas for each individual channel. As long as the a,b,c and d variables are set to zero, I get a straight BW conversion, since all three channels are identical. This results in a BW conversion which is indistinguishable from Channel Mixer (with CM set to grayscale). The a,b,c,d variables are for toning and brightness control. They allow me to adjust the color of the individual channels (by eye). The "d" variable allows me to control the overall brightness. I made that brightness adjustment "d*2" in the formula to allow for a much wider brightness range when working on dark images. So, this way, I don't have to worry about the position of the sliders to achieve a neutral tone. 

The slider settings of +17R and +20Y below give a warm yellow-orange tone to the image. I created a bunch of "Value Presets" for different tones. I wanted to use the rgbtoi function, but this works okay for now. 

Thank you!! 

Screenshot2024-02-05at7_21_02PM.thumb.png.5626066cf54ed01ad0f848af4851d8ea.png

2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish

Link to comment
Share on other sites

I downloaded 2.4.0 beta. Perhaps something was done with Live Procedural Texture, but rgbtoi still does not work, and there are still no value boxes for sliders:

 

Is there somewhere a log that describes the alleged fixes in this filter? I cannot see anything mentioned e.g. here:

I have build 2256, which I suppose is the latest? Nothing on the Windows side, either, rgbtoi still works, but no value boxes for sliders.

Link to comment
Share on other sites

Which Mac (CPU)  do you have? Some of the PT filter issues affected M1 (and maybe later) models specifically.

then i see you are using different formulas than the OP.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

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

15 minutes ago, lacerto said:

have build 2256, which I suppose is the latest? Nothing on the Windows side, either, rgbtoi still works, but no value boxes for sliders.

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

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

Well, if Metal computing is turned off, rgbtoi also works with the current release version 2.3.1 (and probably every version before). So nothing seems to have been fixed, at least in respect of rgbtoi.

I have M1, and I have tested this both native and Rosetta. On Windows rgbtoi works at least on 2.3.1 and Windows Pro 11 with hw acceleration on.

I don't hold my breath to see the slider value boxes returned, either.

Link to comment
Share on other sites

  • Staff
3 hours ago, lacerto said:

Well, if Metal computing is turned off, rgbtoi also works with the current release version 2.3.1 (and probably every version before). So nothing seems to have been fixed, at least in respect of rgbtoi.

I'm also seeing this when toggling Metal On/Off with this PT filter in release and the latest .2256 beta, i've now logged this with the developers.

Link to comment
Share on other sites

Very strange. I tested in latest beta and it worked there. But I entered formula from scratch, only copied image layer, not the PT layer. Will redo testing.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

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

7 hours ago, lacerto said:

Well, if Metal computing is turned off, rgbtoi also works with the current release version 2.3.1 (and probably every version before). So nothing seems to have been fixed, at least in respect of rgbtoi.

@lacerto Good catch! Thank you. I'm on a 2017 MBP using an Intel Processor and I found that rgbtoi works for me too if I turn Metal acceleration off. Just wanted to confirm this is the case with Intel Silicon, so the developers have this info. I haven't retried the Voronoi (cellnoise) function yet, but I may do so. 

2017 15" MacBook Pro, 16 MB RAM, Ventura v13.6.6, Affinity Photo/Designer/Publisher v1 & v2, Adobe CS6 Extended, LightRoom v6, Blender, InkScape, Dell 30" Monitor, Canon PRO-100 Printer, i1 Spectrophotometer, i1Publish

Link to comment
Share on other sites

  • 1 month later...
  • Staff

The issue "Procedural Texture- 'rgbtoi' function canvas rendering inconsistent with metal enabled" (REF: AF-1963) has been fixed by the developers in internal build "2.5.0.2317".
This fix should soon be available as a customer beta and is planned for inclusion in the next customer release.
Customer beta builds are announced here and you can participate by following these instructions.
If you still experience this problem once you are using that build version (or later) please reply to this thread including @Affinity Info Bot to notify us.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.