Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I don't understand the low-level details well enough to completely answer your question, but here are some things I found:</p> <p><a href="http://learningwebgl.com/blog/?p=2606" rel="nofollow">This post</a> is not encouraging:</p> <blockquote> <p>Texture handling has been updated in Minefield so that [it] better matches the specification; previously it was quite forgiving [...] and allowed you to use textures that weren’t really valid from a WebGL viewpoint. Now it doesn’t [...] you’ll see an error message saying “A texture is going to be rendered as if it were black, as per the OpenGL ES 2.0.24 spec section 3.8.2, because it is a 2D texture, with a minification filter not requiring a mipmap, with its width or height not a power of two, and with a wrap mode different from CLAMP_TO_EDGE.”</p> </blockquote> <p>I don't know if those extra conditions apply to your app. See also the <a href="http://www.khronos.org/registry/gles/specs/2.0/es_full_spec_2.0.24.pdf" rel="nofollow">OpenGL ES spec</a>.</p> <p><a href="https://www.khronos.org/webgl/public-mailing-list/archives/1001/msg00158.html" rel="nofollow">This thread</a> goes fairly in-depth on support for "NPOT":</p> <blockquote> <blockquote> <blockquote> <blockquote> <p>OpenGL supports NPOT textures in two ways. The first is called "Rectangle Textures" (RT), which can be any size, but can't be repeating, mip-mapped or have borders. And rather than using 0-1 texture coordinates, they use 0-w, 0-h. OpenGL Also supports true NPOT textures, which have similar constraints to RT, but which use the normal 0-1 texture coordinates.</p> <p>The issue is that some older hardware (and when I say "older" I mean hardware from 2005) only supports RT, not true NPOT. It's not possible to emulate NPOT when you just have RT support because in GLSL you use a different sampler for RT (sampler2DRect vs sampler2D).</p> <p>OpenGL ES only supports NPOT, not RT.</p> </blockquote> </blockquote> </blockquote> </blockquote> <p>...</p> <blockquote> <blockquote> <blockquote> <p>A WebGL implementation can scale up NPOT texture data to the next highest power of two dimension during texImage2D and texSubImage2D calls. This wouldn't involve any API changes. O3D does this in some cases as proof that the technique can work without the end user knowing. I think it would be a bad idea to expose rectangular textures in the WebGL API; they are definitely not the path forward.</p> </blockquote> </blockquote> </blockquote> <p>So, take that FWIW...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload