Vertex Buffer Objects

In a recent(ish) thread http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1082751524 there was talk of setting up VBOs and Ken Russell suggested looking at the example in jogl-demos. I downloaded and compiled to get an extension error

// error message :"GL_ARB_vertex_buffer_object unavailable"


wglSwapIntervalEXT available; disabling sync-to-refresh for best framerate
java.lang.RuntimeException: OpenGL extension "GL_ARB_vertex_buffer_object" not available
        at demos.vertexBufferObject.VertexBufferObject.initExtension(VertexBufferObject.java:263)
        at demos.vertexBufferObject.VertexBufferObject.access$200(VertexBufferObject.java:68)
        at demos.vertexBufferObject.VertexBufferObject$VBOListener.init(VertexBufferObject.java:283)
        at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
        at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:191)
        at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:160)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)
        at net.java.games.jogl.Animator$1.run(Animator.java:104)
        at java.lang.Thread.run(Thread.java:534)

but the example from NeHe lesson 45 works fine. Is this simply because of different availabilities of types of vertex buffer calls.

Sorry if this is a really dumb question but my brain has turned to slush 2day :frowning:

The NeHe lesson checks to see if VBOs are available, if they are not then they use standard vertex arrays. Your video card probably doesn’t support VBOs.

If VBO’s for sure work with a C program then you are probably getting the MS software OpenGL implementation which does not support VBO’s. Check and see what the vendor string returns. I bet it says MS.

Thanks both for enlightening answers, didn’t spot that in the NeHe bit until I read the tutorial with the code.

All working now ;D