FW: Missing functions on MacOSX?
Robert Kent <[email protected]> Thu, 12 Dec 2013 15:58:59 +0000
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CECF8C55.1F13%[email protected]> |
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 <[email protected]<mailto:[email protected]>> Date: Thursday, 12 December 2013 14:55 To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> 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" <[email protected]<mailto:[email protected]>> 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 ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users