2

I am developing a rotating cube in 3D using stage3D.

I can see the result perfectly in Firefox but in Chrome I cannot se nothing. When I set:

context.enableErrorChecking = true;

I receive this callback from the browser

RangeError: Error #3609: Stream 0 does not have enough vertices

The number of vertices is fine though.

Any suggestion?

Mc-
  • 3,968
  • 10
  • 38
  • 61

1 Answers1

2

This means your index buffer has an index for a vertex that is not present in the vertex buffer. You receive this error even if you don't draw with that index. This is very annoying and it looks like Stage3D bug.

shader
  • 2,121
  • 1
  • 13
  • 20
  • As I'm using externally made buffers, it was pretty hard to find which shape is causing the problem = I had more indexes than vertices as you correctly mentioned. I agree that it's very annoying behavior, to report the error even when the invalid index is not used. – Oldes Apr 23 '14 at 13:41