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

Is it possible to change the rule direction


Recommended Posts

2 hours ago, duncang said:

0,0 is usually bottom left.

Not where I come from. ;) You can drag the ruler to the origin you want manually or use View > Guides Manager. Unfortunately there is no option to makes this a fixed setting, but you can export your document as a template for later re-use and 0,0 bottom left.

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Link to comment
Share on other sites

10 minutes ago, Joachim_L said:

You can drag the ruler to the origin you want manually or use View > Guides Manager.

Moving the origin doesn’t alter the fact that down is positive and up is negative (as in every other computer graphics application but unlike graphs in mathematics).

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

13 minutes ago, Alfred said:

as in every other computer graphics application

... let me just add that this is because all standards (both for vector and raster graphics) respect this direction of the y-axis. So it's not a flaw/illogicality of these applications, but a necessity, which comes from the wooden days of computer beginnings, when it was displayed using terminals, whose characters output goes from left to right and from top to bottom.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

5 hours ago, Alfred said:

Moving the origin doesn’t alter the fact that down is positive and up is negative (as in every other computer graphics application but unlike graphs in mathematics).

4 hours ago, Pšenda said:

So it's not a flaw/illogicality of these applications, but a necessity,

Not every other computer graphics application, and not a necessity. CorelDRAW still uses Cartesian coordinate system (Y increases upwards from bottom left):

ruler_corel.jpg.ca311386c661a3a7cfad674f018f1a5a.jpg

Older versions of Adobe Illustrator did, too, and still use it internally in DOM as document origin so when scripting, you need to use this system:

ruler_ai_internal.jpg.2acbcbf9111614e23bb85cfa0730e85e.jpg

Xara Designer Pro lets you choose the behavior freely:

ruler_xara.jpg.70dafd698dba1061734025bafa7b77af.jpg

Windows 2D GDI uses top-left Y increasing downwards system, as does iOS. macOS however uses Cartesian system:

ruler_macos_ios.jpg.de221dab7722fdb1fef458976d2faac8.jpg

And 3D apps typically use (left or right-hand) Cartesian system.

Link to comment
Share on other sites

3 hours ago, Lagarto said:

and not a necessity

If, in your opinion, compliance with the standards for exported images is not necessary (including coordinates), what do these exports look like after loading / importing into other applications?

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

2 hours ago, Pšenda said:

If, in your opinion, compliance with the standards for exported images is not necessary

I do not understand what you mean. I was just stating facts rather than expressing my own opinions. The OP asked about a feature in the UI, and I wanted to leave a comment to arguments that gave an impression that such a request is not plausible because it is against a technical "necessity", or even if possible, "not done by anyone". So I showed that different apps can and do use different kinds of coordinate spaces, and may also give the user a possibility to choose the system that best suits them.

All these apps naturally produce output according to specific format specs (to be able to communicate or interchange information at all), which is a different question, but even then, e.g. in PDF, it is possible to describe positions in different coordinates spaces, "device dependently", so "necessity" does not necessarily exist in this respect, either.

For example, when CorelDRAW outputs to PDF it does not need to translate its native coordinate system to create a device-independent PDF user coordinate space (which is Cartesian), which, on the other hand, Affinity apps or Illustrator can read correctly even if they need to translate the coordinates to the 0,0 top left downward increasing Y device coordinate space when they render the objects in the user interface. I suppose that most apps export to PDF using the PDF device-independent Cartesian coordinate space no matter how they natively draw on canvas. On the other hand, CorelDRAW would need to translate the native coordinates when it exports to SVG (which I suppose uses top-left downward Y increasing coordinate space, but might be able to use other systems, as well), while apps not using Cartesian coordinate system natively would not.

Link to comment
Share on other sites

1 hour ago, Lagarto said:

I do not understand what you mean.

I mention the necessity of applications to respect the mentioned coordinate system in connection with format standards,

10 hours ago, Pšenda said:

that this is because all standards (both for vector and raster graphics) respect this direction of the y-axis. So it's not a flaw/illogicality of these applications, but a necessity,

So if you react negatively to this information of mine ("not a necessity"), then I assume that in your opinion it is not necessary to respect these standards in these applications.

 

1 hour ago, Lagarto said:

All these apps naturally produce output according to specific format specs (to be able to communicate or interchange information at all), which is a different question,

No, it's not another question, it's exactly what I'm writing about.
And in my opinion, it is also easier, and for experienced users (these standards/formats familiar) also more natural, if the application respects these coordinate systems. Personally, I have no problem with that - because it's just been like that for decades.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

23 minutes ago, Pšenda said:

No, it's not another question, it's exactly what I'm writing about.

Your reply is off-topic (not user-interface related), and opinionated, which you are of course fully entitled to. I much share your opinion, but that is another thing. CorelDRAW alone shows that this question is not "absurd" (or "obsolete", "non-standard", etc.; the native coordinate system of PostScript and PDF is Cartesian).

Link to comment
Share on other sites

Hey, @Lagarto I give up. In "OS X" (or more properly these days in macOS) how do you "flip" a view's coordinate system?

Is this a system or application level thing?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

21 minutes ago, R C-R said:

Is this a system or application level thing?

In code, you can just define that all coordinates (of the app or just a sub routine) are given "iowise" (rather than "natively").

https://stackoverflow.com/questions/763867/how-do-you-flip-the-coordinate-system-of-an-nsview

It basically just makes the life a bit easier not needing to translate coordinates depending on the platform. Often coordinates need translation anyway so it is not a problem to have them (or the largest involved object group) be handled via some kind of a helper routine, anyway.

Link to comment
Share on other sites

3 minutes ago, Lagarto said:

In code, you can just define that all coordinates (of the app or just a sub routine) are given "iowise" (rather than "natively").

So you are talking about using Interface Builder or the equivalent when creating an app, not something users can do in whatever app they happen to be using?

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

In all the computer code the coordinates are top left of the monitor screen as 0, 0 and then positive integers for pixels to the right for the x axis and positive integers for the y axis pixels going down.

In an application's window the code is the same but then we could make a situation where there is an artboard of 100 pixels x 100 pixels and the displayed coordinates are set to be (in this 100 x100 case) x and the absolute value of (y - 100). So we wind up with the display of 0 at the lowest part of the artboard for y and 100 for the uppermost part of the artboard. Absolute value of (100 - 100) and Absolute value of (0 - 100).

It is just a displayed value thing. The coordinates are the same.   

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

21 minutes ago, Lagarto said:

A device.

Yes, it is one part of a complex device where my applications' document windows and their artboards live.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

31 minutes ago, Old Bruce said:

In all the computer code the coordinates are top left of the monitor screen as 0, 0 and then positive integers for pixels to the right for the x axis and positive integers for the y axis pixels going down.

Hasn't @Lagarto shown application examples where this is not true, like for CorelDRAW & optionally for Xara Designer Pro?

I think the short version is there is more than one standard, & not all apps use the same one.

What would be nice is if Affinity offered a choice; thus the feature requests @GarryP cited above.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

10 minutes ago, Lagarto said:

"A device" and this statement are in contradiction.

How are the two in contradiction? Is a computer and its peripheral parts not reliant on code? 

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

6 minutes ago, Old Bruce said:

How are the two in contradiction?

You state that ALL computer positioning code is given in a specific coordinate system, which is simply just untrue. It is a bit same as stating that RGB 255, 0, 0 always produces the same color (not depending on the device).

Link to comment
Share on other sites

2 minutes ago, R C-R said:

Hasn't @Lagarto shown application examples where this is not true, like for CorelDRAW & optionally for Xara Designer Pro?

 

Yes Lagarto did. All I did was explain how that is achieve. Just some integer arithmetic and getting the absolute value of the result. Again, it is just the displayed values.

Don't get me wrong this 0, 0 at the upper left with positive y values going down has been bugging me since the 80's. I too grew up with the Cartesian plane.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

13 minutes ago, Old Bruce said:

How are the two in contradiction? Is a computer and its peripheral parts not reliant on code? 

They do not all use the same code for specifying coordinates in every application that runs on the computer. That's what the feature request for Affinity is all about.

All 3 1.10.8, & all 3 V2.4.1 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
Affinity Photo 
1.10.8; Affinity Designer 1.108; & all 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

5 minutes ago, Lagarto said:

You state that ALL computer positioning code is given in a specific coordinate system, which is simply just untrue. It is a bit same as stating that RGB 255, 0, 0 always produces the same color (not depending on the device).

I was speaking generally of the coordinate system Windows and Macs use. Cannot say anything about Linux because I didn't spend too much time with it back in the 90's. There may well be a computer OS that has a coordinates system that employs the Cartesian plane (and let us face it, that is far more logical. Higher numbers going up) but I have never come across one.

Your code has to take into account that 0, 0 is at the upper left, not the lower left, and increasing positive y values are farther down on the screen. How you choose to have your application display those coordinates is up to you. Toss in a routine to take your applications drawing area and invert the values for the y axis, just a bit of runtime integer math every time you want to draw something to the screen.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

I am not sure if we are discussing the same topic, but perhaps this clarifies something:

https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CocoaDrawingGuide/Transforms/Transforms.html

But returning to OP's topic: no, an alternative coordinate system is not available in Affinity apps (and in most apps, it is not, even if they need to internally translate between different systems when reading in and writing out positioning coordinates in different systems and units).

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.