NotMyFault Posted April 2, 2023 Posted April 2, 2023 (edited) Hi, based on inspiration by @kirk23 I created a template file with a layer structure and some PT filters helping to create 2,5D (almost 3D) construction with Affinity Photo. The basic idea: The layer sequence in layer stack becomes irrelevant for pixel visibility. Instead, the height information is used from layers. For every object use 2 layers: 1 for color data, another with greyscale heigh information (z-axis). Both grouped together (after some pF filters) Now combine both layers in a special way: heigth is multiplied by 256 and added with pixel data. You need to ensure height is always "integer" blend mode "lighten" can be used to always select the layer data which has the greatest height use "item" function to remove height info and extract color info of "winning" layer some constraints: color values 0 and 255 cannot be used to avoid rendering issues. I compress the values to 1..254, this could create some minor banding / deviation of colors. Editing such a file requires discipline, you need to triple-check if the correct layer is selected 2 layers cannot share the same height value. If that happens, colors are mixed and causing rendering artefacts. Use isolation mode when editing color layers (and deactivate PT filters temporary) anti-aliasing must be forced off, otherwise edge pixel get random colors. You can duplicate the grouped layers to use more objects. plan ahead which height values you want to use (e.g. using greyscale swatches) The video shows a CAD-generated 3D spiral, used 2 times. A simple brightness filter can be used to modify the height data, and virtually move objects in real time. For details, see Note the template in this thread (not the linked) is based on RBG/16 and not RGB/32 as visible in the video. 3D z buffer in Photo Screen Recording 2023-04-01 at 11.06.30.mov 25D layers RGB16 tutrial V2.0.4.afphoto Edited April 3, 2023 by NotMyFault Update: File adjusted to be V2.0.4 compatible Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
Twolane Posted April 2, 2023 Posted April 2, 2023 Must have been done with the beta. It won't load in Win v204. Quote 1) MacBook M3 Pro 18/512 - Now my daily driver. 2) I liked it so much I added an M4 Air. Consider me a convert. 2xDell laptops on Win 11 frozen at 23H2. With 2 & 4 hours of battery life, respectively, they're already dead to me.
NotMyFault Posted April 3, 2023 Author Posted April 3, 2023 (edited) 8 hours ago, Twolane said: Must have been done with the beta. It won't load in Win v204. You are right. Will redo in V2.0.4 later today. . Edited April 3, 2023 by NotMyFault Done Quote Mac mini M1 A2348 | MBP M3 Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080 LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K 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. I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.
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.