We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › gl vertexarray experiment
Page Index Toggle Pages: 1
gl vertexarray experiment (Read 1739 times)
gl vertexarray experiment
Sep 21st, 2008, 7:48pm
 
hi.

just made an experiment on opengl vertex arrays and thought i would share as it is a good way to speed things up.

http://rui-m.com/p5/particulas220000/
Re: gl vertexarray experiment
Reply #1 - Sep 21st, 2008, 11:19pm
 
wow thats amazing! how many particles is that? are the particle updates running on the gpu?
Re: gl vertexarray experiment
Reply #2 - Sep 22nd, 2008, 2:09am
 
hi memo.
thats 220000 particles. no, the particles are being updated on the cpu. i'm just writing the particle positions into a floatbuffer and using glDrawArrays on that. thats it. it made for a big speed boost, and its really simple! Smiley
Re: gl vertexarray experiment
Reply #3 - Sep 22nd, 2008, 3:04am
 
Ah amazing... As usual. Thanks for sharing this clean implementation!
Re: gl vertexarray experiment
Reply #4 - Mar 25th, 2009, 9:27pm
 
That's awesome Smiley  I tested it with a 1,000,000.  Dropped it to 10 FPS but it worked.  I'm looking for all the speed I can muster, so this will be a nice example to consider.
Re: gl vertexarray experiment
Reply #5 - Mar 26th, 2009, 12:09am
 
This is great! Runs really fast...
Re: gl vertexarray experiment
Reply #6 - Mar 26th, 2009, 9:13am
 
Wow!! it runs wonderfully.
Re: gl vertexarray experiment
Reply #7 - Mar 26th, 2009, 2:29pm
 
this one is still one of the best things I saw Smiley
Re: gl vertexarray experiment
Reply #8 - Mar 26th, 2009, 3:32pm
 
I'm trying to understand how to use this technique in combination with a texture.  Seems you would use glTexCoordPointer but I'm not sure how to format it.  I'm currently using a "gl.glTexCoord4f(x, y, z, 60 );" along with drawing a square "gl.glCallList( square );" within a GL_QUADS call.
Page Index Toggle Pages: 1