mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.15k stars 710 forks source link

Image anti-aliasing? #1202

Open TodayCG opened 5 months ago

TodayCG commented 5 months ago

https://github.com/mpetroff/pannellum/assets/40811490/9572fd3c-d161-4c71-a632-3ef5a0a430f4

Hello, it looks like aliasing by default. It will be better after zooming in. How can I deal with this?

mpetroff commented 5 months ago

There's no antialiasing, since WebGL 1 only supports mipmapping for power-of-two images.

Safari added support for WebGL 2 more than two years ago at this point, and was the last major browser to do so, so I should revisit switching to WebGL 2 and enabling mipmapping at some point.

How can I deal with this?

Aliasing is less of an issue if you use Pannellum's multires format, since its tiles are scaled less.

TodayCG commented 5 months ago

OK, thanks