Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture drawing artifacts #1597

Open
akovalov opened this issue Sep 18, 2023 · 1 comment
Open

Texture drawing artifacts #1597

akovalov opened this issue Sep 18, 2023 · 1 comment

Comments

@akovalov
Copy link
Contributor

The texture is drawn in a different way in some areas which looks like on "joining" of the texture image. The texture in those small areas looks like zoomed a bit and rotated.

The texture image is 1000x1000 px and added as

let texture = maplyVC.addTexture(image, desc: [
                kMaplyTexWrapX: true,
                kMaplyTexWrapY: true
            ], mode: .any)

and the polygons are added as

var styleDesc: [AnyHashable: Any] = [
            kMaplyFilled: true,
            kMaplySelectable: false,
            kMaplyVecWidth: 1,
            kMaplyEnable: false,
            kMaplyVecTexScaleX: 20,
            kMaplyVecTexScaleY: 20,
            kMaplyVecTexture: texture
        ]
viewC.addVectors(vecObjs, desc: styleDesc, mode: .current)

Do you have an idea why those artifacts appear and how can be fixed? Anything in AutoTester that can be related (except TextureVectorTestCase)?

Simulator Screenshot - iPad Air (5th generation) - 2023-09-18 at 14 01 57

@sjg-wdw
Copy link
Collaborator

sjg-wdw commented Oct 18, 2023

Hard to say why that's happening. I'd suggest looking at at the geometry in the Metal debugging tools to se ehow it's tessellated and check the texture coordinates to see if they're getting too large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants