ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Weird Error (VBO too small)
person icon
z_killemall
Registered User
Quote
2010-06-06 22:57:26

Hello there, sorry to bother again but I found myself with a pretty strange error while I was trying to generate a mesh. I was trying to generate a simple plane using a certain amount of polygons (in this case it's using 20, but the idea is to make it variable to be used in a function).

However, the mesh wasn't appearing in the screen and I found that the problem was in this part of the code:
      //create the 2 first vertices
buff.Vertices.push(createVertex (0,0,0, 0,0)); //vertex 0
buff.Vertices.push(createVertex (0,0,10, 1,1)); //vertex 1
for (i = 1; i <= 10; i++) {
// create the 2 new vertices
buff.Vertices.push(createVertex (0,(10*i),0, 1,1)); //vertex 2 * i
buff.Vertices.push(createVertex (0,(10*i),10, 0,0)); //vertex 2 * i + 1
// add the sides of the two new polys
if (i == 1) {
buff.Indices = [1,2,0, 3,2,1];
} else {
buff.Indices.push((2*i+1),(2*i+2),(2*i), (2*i+3),(2*i+2),(2*i+1));
}
}


A look in the Minefield Error Console showed the following messages being repeated all the time:

VBO too small for bound attrib index 0: need at least 288 bytes, but have only 264

DrawElements: bound vertex attribute buffers do not have sufficient data for given indices from the bound element array

Firefox seems to have a bug involving VBO, but I'm not sure if I'm doing something wrong that causes this problem. Any help with this will be appreciated.

person icon
niko
Moderator
Quote
2010-06-07 16:52:30

Some older versions of Firefox had a bug when creating the VBO, but this is fixed in the newer versions. Which Firefox version are you using?

person icon
z_killemall
Registered User
Quote
2010-06-25 00:55:05

Sorry about the late reply, I've been a bit busy in the last days... I'm using the latest Firefox nightly builds.

person icon
niko
Moderator
Quote
2010-06-25 07:52:53

Try updating your gfx driver, this usually helps. But I'll have a closer look at this one also.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |