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

ktx2 texture with mipmap has Jagged Edge in Cesium'Primitive #12413

Open
hujiaxu opened this issue Jan 6, 2025 · 6 comments
Open

ktx2 texture with mipmap has Jagged Edge in Cesium'Primitive #12413

hujiaxu opened this issue Jan 6, 2025 · 6 comments
Labels

Comments

@hujiaxu
Copy link

hujiaxu commented Jan 6, 2025

What happened?

mipmap.zip
there is Jagged Edge when i use this ktx2 texture a primitive box.
Is there some solution to prevent this problem?

Reproduction steps

...

Sandcastle example

https://sandcastle.cesium.com/#c=vRjbahtH9FcGv3gF65VWdmyQL1SxpWCwHTeWQyEOYbwaWUP2xuysLw2CUlIScN9KStvQNH4ovQTal7RNUuL8jBTbf9Ezu97VzGptWbTpIlYz5z5zrpLluQFHu5TsEYbmkUv20CIJaOgYtyOYtjVmRftFz+WYuoRtjRVmt9wtF8FTLKLe46e9v9+cvDh8//Xr7tuveo+ed98+gUVM0Apdi1PPRRYjmJPFcJvcIJ5DODvQAvopKaAHMSFCVmRJG9utDUCALQKPiqg8q1Jse6HbpO7Oht8mTNCd23tdgRst5jm3CeMUzNfuJCIQmkg06PIyXfUJR6e7lGxidLrc5RADJ65o4cRVTUyBCd3dguoP+Mwj6YJLRkmPXyI8zo7+PPn8NSr18WYe3szgzQy+nJGfxU8O0T81RP+1IfqnB/UjGT+T3k4arYAUF+TZxLC9HW1cjdsKGtczoZzeq0042jnPEjUn09x50LcHc87odshJUEESGCHfC6jIvUqehGrCpSk8wqmO77nE5UuYY37gg6XnrItZjLF0c/P6Sk2/QECwTliqpoImM3S72A6FzcK4uu1hPj1VZQwfyMk6YsqOlrgjpe9oSTxqKo+Y0KOl9SjJnU1x8XQKelLv4yfgHy6k6is3q40rRlR5WERNluOICvjggfpbSFTXYw62RzkVMP3bg6kiLs2WiPTC490ZIIUqpY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wg0rCJLxYK4os8416S6izfmc/4iQZeMgAEwrtO3oF8bYwlwR6AdYhdEwj9zcJczGB4KsbS6sxEDDMOaKsM3n5J5nb2OWkfwP

Environment

Browser:
CesiumJS Version: 1.121
Operating System: Google

@hujiaxu
Copy link
Author

hujiaxu commented Jan 6, 2025

ktx2.mipmap.jagged.edge.mp4

@ggetz
Copy link
Contributor

ggetz commented Jan 6, 2025

Hi @hujiaxu. I'm not sure I'm clear on the issue you are looking to solve. Can you explain a bit more about the jagged edge? Are you referring to the aliasing?

@ggetz ggetz added the needs feedback On hold until additional info is supplied label Jan 6, 2025
@hujiaxu
Copy link
Author

hujiaxu commented Jan 7, 2025

Hi @hujiaxu. I'm not sure I'm clear on the issue you are looking to solve. Can you explain a bit more about the jagged edge? Are you referring to the aliasing?

OK, i'm not sure it is the aliasing.
problem
like red box in this picture.
And it's very abvious as i move camera, like in this video.

ktx2.mipmap.jagged.edge2.mp4

And then i use Model to load a gltf with this ktx2 texture, this phenomenon is not appear. I guess it's MaterialAppearance bug.

@hujiaxu
Copy link
Author

hujiaxu commented Jan 7, 2025

Hi @hujiaxu. I'm not sure I'm clear on the issue you are looking to solve. Can you explain a bit more about the jagged edge? Are you referring to the aliasing?

it's similar to #9746

@ggetz
Copy link
Contributor

ggetz commented Jan 7, 2025

Thanks @hujiaxu,

Yes, I think that is definitely aliasing. Since this is happening on non-model geometries, the fix will likely be the same as #9876, but applied to the MaterialAppearance as you mentioned.

@ggetz ggetz added category - graphics good first issue An opportunity for first time contributors onramping and removed needs feedback On hold until additional info is supplied needs triage labels Jan 7, 2025
@hujiaxu
Copy link
Author

hujiaxu commented Jan 8, 2025

Thanks @hujiaxu,

Yes, I think that is definitely aliasing. Since this is happening on non-model geometries, the fix will likely be the same as #9876, but applied to the MaterialAppearance as you mentioned.

OK, thank you

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

No branches or pull requests

2 participants