Three.js: vertexAttributePointer: without ARRAY_BUFFER binding (after switching to r69)

After moving from three .js r68 to 69 to repeat a couple of these errors:

WebGL: INVALID_OPERATION: vertexAttribPointer: no bound ARRAY_BUFFER
[.WebGLRenderingContext]GL ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to access out of range vertices in attribute 0

It appears in WebGLRenderer in setupVertexAttributes () on this particular line:

_gl.vertexAttribPointer( programAttribute, size, _gl.FLOAT, false, 0, startIndex * size * 4 ); // 4 bytes per Float32

I am using BufferGeometry but don’t know what happened. I checked the release notes, but could not get the glue. Help rate!

+4
source share
3 answers

I found a problem in my code. I had to adapt my code to reflect the movement of the fromGeometry () function from the BufferGeometryUtils class to the BufferGeometry class. So my problem is fixed:

var geo = new THREE.BufferGeometry();
geo.fromGeometry(otherGeo);

Anyway thanks for all the answers.

+2
source

.

, , . ,

  • , .

, 2 . , .

+1

This is fixed in the dev version.

https://github.com/mrdoob/three.js/issues/5293

0
source

All Articles