Qbasicnews.com

Full Version: PQTorus knots and OpenGL Vertex Arrays
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have had time today to code since I am absent from work. ;*) So I tried if I would ba able to make ALLOCATE/DEALLOCATE pointers and pass it over GL's vertex arrays. What I found is that vertex arrays beats the crap out of standard OpenGL rendering commands. It's like at least 2x the speed increase.

http://qh2.qbtk.com/246-d

Enjoy!!!

Needs SDL+OPENGL

On a side note: I'm writing a tutorial on OpenGL+SDL+FB. I don't know if I should release them as articles for Pete's mag or release them as I finish writing one.

Any thoughts?
Cool work!

Two further hints to help speeding it up even more:
1) Use the GL_ARB_vertex_buffer_object extension to store your vertex data. It works like any other normal buffer (even with some quirks and limitations) but it'll give performance a boost since your data will reside on VRAM (no need to consume system bus bandwidth)...
2) glVertexPointer is a bottleneck: it sets up a lot of internal stuff. Be sure to call it just before calling glDrawElements.

As for your question, I'd post the tutorial in QB Express... People can wait a month and this way you keep the mag alive.
Quote:Cool work!
Agreed!

Quote:As for your question, I'd post the tutorial in QB Express... People can wait a month and this way you keep the mag alive.
Agreed 101%!
Yup, post it in qb express Big Grin

Even though i cant wait to get my hands on it :lol:



Very nice Big Grin
Ahh... this is cool. Tongue
Quote:Cool work!

Two further hints to help speeding it up even more:
1) Use the GL_ARB_vertex_buffer_object extension to store your vertex data. It works like any other normal buffer (even with some quirks and limitations) but it'll give performance a boost since your data will reside on VRAM (no need to consume system bus bandwidth)...
2) glVertexPointer is a bottleneck: it sets up a lot of internal stuff. Be sure to call it just before calling glDrawElements.

As for your question, I'd post the tutorial in QB Express... People can wait a month and this way you keep the mag alive.

I'll do that.

Re: ARB extensions: My card won't support it. I could have used it long ago if not for my card. Cirrus logic 2mb. :*(
Demo looks fancy, but i had to "Taskman" my way out of your programm. When tapping Escape it simply crashed.
Good that WinNT dont crash out of sympathy Wink
Quote:Demo looks fancy, but i had to "Taskman" my way out of your programm. When tapping Escape it simply crashed.
Good that WinNT dont crash out of sympathy Wink

Terminating would prolly cause a mem leak as I'm using Allocate/deallocate. ;*)
Agreed with lillo and nath.

I'm lookin foward to these tuts Big Grin
This would be included:

http://qh2.qbtk.com/256-d
Pages: 1 2