   VBO size
  Hello,Are VBO limited in size ?I dont manage to find it in the spec but my english is so poor.I explain my problem :I have two VBO, one for normals, one for vertices.When I use 120000 float for each  (40000 vertex),display look goodwith 196608 : application crashwith 270000 : 30% of the model appear but the first render look good (when i disable the cleaning of the screen).size of vbo stay constant.code for init :glEnableClientState(GL_VERTEX_ARRAY);glEnableClientState(GL_NORMAL_ARRAY);// Generate And Bind The Vertex BufferglGenBuffersARB( 1, &vbovertices );glBindBufferARB( GL_ARRAY_BUFFER_ARB, vbovertices);glBufferDataARB(GL_ARRAY_BUFFER_ARB,nbfloat*sizeof(float),vertices, GL_STATIC_DRAW_ARB);//Generate And Bind The Normal Coordinate BufferglGenBuffersARB( 1, &vbonormals );glBindBufferARB( GL_ARRAY_BUFFER_ARB, vbonormals );glBufferDataARB( GL_ARRAY_BUFFER_ARB,nbfloat*sizeof(float), normals, GL_STATIC_DRAW_ARB);free(normals);free(vertices);   Display code :glBindBufferARB( GL_ARRAY_BUFFER_ARB, vbovertices );glVertexPointer( 3, GL_FLOAT, 0, BUFFER_OFFSET(0) );glBindBufferARB( GL_ARRAY_BUFFER_ARB, vbonormals );glNormalPointer(GL_FLOAT,0,BUFFER_OFFSET(0) );glDrawArrays(GL_QUADS,0,nbv);   No problem when I use Vertex Array.edit config AthlonXP1900/WIndowsXP/Geforece3ti200/driver 52.16[edited by - Bourricot on February 16, 2004 3:31:07 PM]
  resize the VBO mem alloc each time you change the amount of any input into the arrays.  ;  What do you mean ?The size is set in the init function. it never changes.If i want to use more vertices, I change my param in the init and compil the source.If in the init, i dont relase data and in the display, i send the data in the vbo. its works but with 2fps. I get 22fps using VA and 85 with display list (Vsync on).;  Which graphic card/driver do you use?   --------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened... ;  Geforce3 ti 200Driver 53.03 (Before I had driver 52.16, problem still remain anyway.)   [edited by - Bourricot on February 17, 2004 7:24:16 AM];  ha ha ha,the next guy who has this problem, besides me - on GL.org, the told me "it must be my program bla", or my driver; i'm on the latest Nvidia driver on a GF2-MX(32MB) and i have the same problem, but WITH ALL MODELS IF I USE VBO - although, other demos running nice (but the most demos out there don't use a vertex/triangle count higher than 10  )   EDIT:and yes, i still have _no_ solution for this problem if anyone has a hint, i'm listening...DJSnow---this post is manually created and therefore legally valid without a signature    [edited by - DJSnow on February 18, 2004 9:50:02 AM];  Thx for your post, i feel less lonely. I think i will switch back to old but good vertex array or display list.;  Add code and screenshot.low poly : VBO looks good.[link]http://glbourricot.free.fr/lowpoly.jpg[/link]High poly : VBO is buggy [link]http://glbourricot.free.fr/hipoly.jpg[/link]I dump the VBO in a file. data are not corrupted.feel free to download the code (2,45Mo)  to test if the bug come from my pc or me [link]http://glbourricot.free.fr/VBO.zip[/link]hit space to switch between the two model.hit e to dump vbo in a file.I use a VC7 beta to compil the code.I wait for your feedback. I know that the code is a bit ugly (except the basecode by nehe of course ! ) ;  Well, it works OK for me (400/900FPS). Both verison look just fine. Tested on GF4 & Detonator56.55I looked at the code for a bit and didn''t found anything totaly wrong with it.The only thing I think might couse this is that your drivers have some problems with indices that are over 16bits. Try creating one model that has just under 64k vertices and one that has just over. If the first one works and the second one dosn''t then this is the case.   You should never let your fears become the boundaries of your dreams. ;  It looks fine at my comp: XP/AMD2200/GF4Ti4200(128MB)/512MBRamI guess cards under GF4 have a (lower) limit of VBO data, or it might be the video ram you are running short of. 