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

Potential roundig bug with procedural texture filter


Recommended Posts

Hi,

in RGB color mode, document size 256x256, procedural texture filter gets wrong value for x=0:

The first column (x=0) gets value 0.5 / 127 (measured) instead of 0 (expected).

1.10.1.1142 (retail)

Update 1:

Seems to affect all color modes (GREY, LAB, CMYK) and all bit length /8 /16 /32

 

Update 2:

This might be by design that it is required to shift x by 1/2. If yes, this should be documented as it potentially breaks procedural filters potentially by rounding issues.

Question

So can you please confirm or disprove the following statement:

  • In procedural texture filters, the pixel within the document of size w are counted
  • x-axis: x from 0.5 to w-0.5 in increments of 1.0
  • y-axis: y from 0.5 to h-0.5 in increments of 1.0

Example: size 1x1

1 pixel x 0.5, y 0.5

Example: size 10x10

100 pixels, x from 0.5 to 9.5, y from 0.5 to 9.5

 

 

image.thumb.png.eedd61020219882306926d86ffc20935.png

rgb16 PT filter rounding issue for x equals zero.afphoto

Edited by NotMyFault
Added updates (marked as such)

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

  • 1 year later...

Assume this is not a bug but by design. Unfortunately Affinity (moderators) never answered the question.

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

And if affinity would change the function, it could break many existing documents.

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

1 minute ago, NotMyFault said:

And if affinity would change the function, it could break many existing documents.

That is an interesting problem, I guess there could be a conditional case based on what version the document was created in, but that would just result in messy code in the long run ._.

Link to comment
Share on other sites

  • 3 weeks later...
  • Staff
On 7/8/2023 at 5:54 PM, NotMyFault said:

Assume this is not a bug but by design. Unfortunately Affinity (moderators) never answered the question.

Sorry, not sure why you initial post wasn't answered. I've spoke to our developers and they've confirmed it's by design. I will see if we can get something added to the help to briefly mention this to avoid further confusion.

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.