VectorStyler
    • Categories
    • Unread
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Antialiasing origin

    Scheduled Pinned Locked Moved Questions and Support
    12 Posts 2 Posters 13 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      message
      last edited by message

      I am working on an interface and I'd like to control antialiasing for, among other things, some rectangles. These rectangles should be rendered without antialiasing, so that's how I made them. But, when I export the artboard to a png, they still have a very visible antialiasing applied to them! (and it's not even symmetrical)

      So I checked and confirmed:
      the dimensions are integers
      the coordinates are integers
      there is no funny stroke applied to rectangles
      the artboard dimensions are integers
      the artboard itself is on integer coordinates
      the exported bitmap size matches the artboard size

      …so the only thing left to check is whether the antialiasing is calculated from a float coordinate. In Illustrator, I never bothered to even check it but would just reset the origin of the ruler to the current artboard (since that is used as the starting point of calculating antialiasing), and there was even a handy shortcut for that. Am I supposed to do that here too? And how? Or am I supposed to do something else in order to control the antialiasing?

      VectorStylerV 1 Reply Last reply Reply Quote 1
      • VectorStylerV Offline
        VectorStyler @message
        last edited by

        @message The origin is the document display area bottom/left corner.
        And coordinates are always float (double) and AA is always used when enabled.

        You may want to disable it with View -> Subpixel -> None

        1 Reply Last reply Reply Quote 0
        • M Offline
          message
          last edited by message

          Yes, I assume the coordinates are always double, but I'm just talking about how I entered them (in other words, I typed them in to make sure, I didn't just rely on precise dragging).

          I know I can turn AA off on screen, but I don't want to disable it, I want to see the antialiasing as it will look like when exported because some of the elements of interface must stay sharp (button frames for example) while other elements use AA (various art etc).

          Basically like this, where the big rectangle is on the grid and I made a random badly placed black rectangle just to illustrate the point (this is recreated in Amadine but it works the same in Illustrator, Affinity, Amadine and anywhere else I ever tried):
          VectorStyler 03 example.gif.zip

          And the problem is that I also can't use Pixel Preview becaue GPU rendering has some issues, but CPU rendering makes everything blurry:
          931c7355-79fc-4e40-8e33-0b2ea2595066-image.png

          VectorStylerV 1 Reply Last reply Reply Quote 1
          • VectorStylerV Offline
            VectorStyler @message
            last edited by

            @message

            It is not possible to disable AA per object.

            I will try to replicate the CPU rendering issue, it should redraw the image when zooming.

            The VectorStyler environment is stored in the "~/Library/Application Support/NumericPath/VectorStyler1.4/vector/data/resources/" folder.

            This contains settings and workspace (no other private info).

            If you can send me these files by email, I can have the same VectorStyler workspace here and try to replicate it.

            M 2 Replies Last reply Reply Quote 0
            • M Offline
              message @VectorStyler
              last edited by

              @VectorStyler I am not saying that I want to disable AA per object, but objects that are rendered on "integer" coordinates should not have AA, at least from my (decades of working as an artist) experience.

              In fact, after randomly punching in the coordinates for my rectangle, I managed to make VectorStyler export it almost exactly as it'd render in any other vector editing software, note that it's nice and sharp except for the barely visible artifacting on the far right edge:
              156cb8bf-c50b-4af0-a3f6-561a5c4b500c-image.png

              Please don't think I'm here pointlessly nitpicking and making a fuss about barely visible color changes, but the thing with interface is that if things are off by a few pixels (especially around the edges of objects), the textures can bleed into other objects and look like glitches, or things can get blurry.

              VectorStylerV 1 Reply Last reply Reply Quote 1
              • VectorStylerV Offline
                VectorStyler @message
                last edited by

                @message I will try to find a solution for this anti-aliasing issue.

                1 Reply Last reply Reply Quote 1
                • M Offline
                  message @VectorStyler
                  last edited by

                  @VectorStyler I have just checked my Application Support foler in Library, there is no NumericPath directory:
                  fa11852e-91c7-4e64-8490-89c5ab313e5f-image.png

                  VectorStylerV 1 Reply Last reply Reply Quote 0
                  • VectorStylerV Offline
                    VectorStyler @message
                    last edited by

                    @message Are you using the AppStore version?

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      message @VectorStyler
                      last edited by

                      @VectorStyler Yes, that's where I bought it!

                      VectorStylerV 1 Reply Last reply Reply Quote 0
                      • M Offline
                        message
                        last edited by message

                        Just to illustrate what I'm trying to achieve and to emphasize I'm not trying to set AA per object through some setting (that'd be crazy anyway), here is an example of objects where I'm controlling how they're rendered by controlling their attributes like position and size and simply exporting them from VectorStyler:
                        46b12186-80fe-46a5-8362-e6fd05954cae-image.png

                        The upper part of the image contains regular vector art and a regular font, and the lower aprt contains objects that are meant to stay sharp.

                        The font with which "03: Context" is written is an ordinary vector font, but as you can see it is rendered perfectly without any AA due to how the font is made and how I applied it, compared to the same font with a funny offset shift down-right:
                        https://fonts.google.com/specimen/Press+Start+2P?categoryFilters=Appearance:%2FTheme%2FPixel&preview.text=01: Nouns&specimen.preview.text=01:+Nouns

                        And the problem is, I managed to somehow do it in this instance, but now I have to make one other part of the interface and I can't make it work, so i guess I'll have to resort to punching in random numbers again until it works.

                        1 Reply Last reply Reply Quote 1
                        • VectorStylerV Offline
                          VectorStyler @message
                          last edited by

                          @message The resources folder can be found with help -> Reveal Workspace Folder

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            message
                            last edited by

                            I think I figured out what is causing the problems with exporting! I'll investigate further and send the files today evening when I get back in front of my computer, have to go now 💨

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post