Giter Site home page Giter Site logo

Comments (5)

mpetroff avatar mpetroff commented on August 25, 2024

After doing some testing in a VM, this seems to be a bug in IE's WebGL support; specifically, IE 11 doesn't support non-power-of-two cube map textures (I was able to find another reference to this IE bug). What's even more troubling is that IE 11 doesn't report the error through the JavaScript API, so Pannellum can't display an error message. The new Edge engine in the Windows 10 Technical Preview engine still doesn't support the NPOT textures, but it at least reports the error to Pannellum.

from pannellum.

mpetroff avatar mpetroff commented on August 25, 2024

Safari under iOS has a similar issue with NPOT cubemaps not working but no error being generated (tested on iPhone 5c / iOS 8.1.3).

from pannellum.

mpetroff avatar mpetroff commented on August 25, 2024

I just added a user agent check to display an error for NPOT cubemaps in IE 11. While this is generally bad practice as one should check for features instead, IE 11 claims to have the feature, but it doesn't actually work. The only other way to check for this would be to build in a WebGL conformance check to see if it actually worked, but that's much too complex for something like this, in my opinion.

from pannellum.

umbreak avatar umbreak commented on August 25, 2024

What about this: https://www.khronos.org/webgl/wiki/WebGL_and_OpenGL_Differences#Non-Power_of_Two_Texture_Support

Some other players support cubemaps and WebGL, so there may be some workarround.

Thanks!

from pannellum.

mpetroff avatar mpetroff commented on August 25, 2024

To be standards compliant with WebGL, NPOT textures without mipmaps need to be supported. Firefox and Chrome support this, but IE 11 and Safari on iOS both don't support any NPOT cubemap textures. Additionally, they don't throw an error.

from pannellum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.