Wednesday, 18 September 2013

Can't render a texture for WebGL plane

Can't render a texture for WebGL plane

I have already learned how can I add some objects in WebGL, rotate them.
But I have a problem with a texturing process.
The source code of my WebGL app: http://pastebin.com/dgpyMv0j
When I launch Chrome debugger, it gives me such an erros:
PS I've tried to search in web some info, but there isn't much information
for my issue, just few links.
[.WebGLRenderingContext]RENDER WARNING: texture bound to texture unit 0 is
not renderable. It maybe non-power-of-2 and have incompatible texture
filtering or is not 'texture complete' 192.168.1.179/plane/:1
50
WebGL: drawArrays: texture bound to texture unit 0 is not renderable. It
maybe non-power-of-2 and have incompatible texture filtering or is not
'texture complete'. Or the texture is Float or Half Float type with linear
filtering while OES_float_linear or OES_half_float_linear extension is not
enabled. 192.168.1.179/plane/:1
202
WebGL: drawArrays: texture bound to texture unit 0 is not renderable. It
maybe non-power-of-2 and have incompatible texture filtering or is not
'texture complete'. Or the texture is Float or Half Float type with linear
filtering while OES_float_linear or OES_half_float_linear extension is not
enabled. 192.168.1.179/plane/:244
WebGL: too many errors, no more errors will be reported to the console for
this context. 192.168.1.179/plane/:244

No comments:

Post a Comment