Hi Guys,

Just a quick one to say that I've worked out why I couldn't get access to the instance methods in my Qt application. For some reason, setting up the application to allow for overpainting (auth a Qt QPainter) causes things to be initialised differently (if at all). As I don't actually do any overpainting (I included this as a 'just in case' precaution) I can change my setup and get on with instanced drawing my million+ points.

Thanks so much for all the help, suggestions and examples, I really appreciate it. Thank the stars for FLOSS and the fantastic communities involved there with.

Thanks again,
Rob

From: Robert Kent <r.e.kent@dundee.ac.uk>
Date: Thursday, 12 December 2013 14:55
To: "mcfletch@vrplumber.com" <mcfletch@vrplumber.com>, "pyopengl-users@lists.sourceforge.net" <pyopengl-users@lists.sourceforge.net>
Subject: Re: [PyOpenGL-Users] Missing functions on MacOSX?

Hi Mike,

Thanks so much again for all your help.

I've run your script and the first thing I had to do was comment out the NV import and function call as I got an ImportError saying OpenGl.GL.NV has no module named draw_instanced. The good news is once I comment this out, the example runs and I get the following:

glDrawArraysInstanced False
glDrawArraysInstancedARB True
glDrawArraysInstancedEXT False
<OpenGL.extensions.glDrawArraysInstanced object at 0x10510a248> True

Which I guess means its managing to use the ARB version, which is excellent. All I need to do now is work out how to configure this when using Qt as the host…

Thanks again,
Rob

On 12/12/2013 14:28, "Mike C. Fletcher" <mcfletch@vrplumber.com> wrote:

On 13-12-12 06:52 AM, Robert Kent wrote:
Hi Guys,

Further to my previous email, I have now re-installed PyOpenGL and can
call the glInitDrawInstanced* functions for ARB and EXT without them seg
faulting but they both return False. Is it a case of importing the correct
modules to get ARB/EXT methods initialised and if so, which modules? Any
thoughts or advice would be greatly appreciated.
I've attached a module that, using GLUT as the host, prints out which of
the various alternates is available.  The glInit* functions aren't
really necessary with modern PyOpenGL, they should still work, but they
just do an "is this extension in glGetString( GL_EXTENSIONS )" test.  
The sample also shows how to create an OpenGL.extensions.alternate that
will call the first of the functions available on the machine.

Hope that helps,
Mike

--
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com



The University of Dundee is a registered Scottish Charity, No: SC015096