View previous topic :: View next topic |
Author |
Message |
florax n00b
Joined: 26 Jun 2002 Posts: 24 Location: Germany
|
Posted: Sat Jun 29, 2002 10:59 pm Post subject: python + opengl |
|
|
Hi all,
I'd like to write a opengl program using python as programming language.
I've already installed pyopengl, but when I now execute:
import PyOpenGL
I get an error that the module couldn't be found.
Can someone please explain me how to do it right?
Thanks in advance,
florax |
|
Back to top |
|
|
florax n00b
Joined: 26 Jun 2002 Posts: 24 Location: Germany
|
Posted: Sun Jun 30, 2002 12:31 am Post subject: |
|
|
basic loading works now, but what's the best method to draw a complex shape (nearly 900 points) and then adding a texture?
Just Code: | glVertex3f (x, y, z) |
best regards
florax |
|
Back to top |
|
|
jezza n00b
Joined: 09 Jun 2002 Posts: 16 Location: Essex, UK
|
Posted: Mon Jul 01, 2002 4:41 pm Post subject: |
|
|
OK I've only messed around with OpenGL on the C++ side, maybe you know this try the NeHe OpenGL tutorials :
[url]nehe.gamedev.net/[/url]
The tutorials cover a lot of platforms, Python's not there. Not to worry once you have the basic OpenGL setup, then the OpenGL calls are identical to that in C/C++. Just look for the GL_Init() function I believe, and the GL_Draw() functions.
Although not to diss Python, its nice, but you'll get faster performance with C/C++ and if you want cross-platform then use the SDL and OpenGl.
Good Luck
Jeremy. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|