0

I am trying to optimize my code using buffered geometry (three.js).I was going through Is there a limit of vertices in WebGL?. It seems I cannot comment on that question. My question is on the 65k limit. Is this limit is on number of vertex indexes?? Or it is about each vertex index being smaller than 65k and the array can have more than 65k vertex indexes.

And need some good documentation on buffered geometry.

Community
  • 1
  • 1
sinshiva
  • 407
  • 6
  • 16

1 Answers1

0

The limitation is also there. You need to work with offsets to get around it with buffer geometry. see http://threejs.org/docs/#Reference/Core/BufferGeometry.

I also gave a small explanation of how offsets work in https://github.com/mrdoob/three.js/issues/4886#issuecomment-47198394

Gero3
  • 2,817
  • 1
  • 22
  • 21
  • Thanks. And one more thing is it possible to implement selecting a geometry while using buffered approach (buffer with information of more than one geometry). – sinshiva Jun 27 '14 at 05:17
  • Their is no limitation on number of items in a uint16Array. It can store any number of face indexes. But each face index must be smaller than 65535. – sinshiva Jul 12 '14 at 20:03