Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python + opengl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
florax
n00b
n00b


Joined: 26 Jun 2002
Posts: 24
Location: Germany

PostPosted: Sat Jun 29, 2002 10:59 pm    Post subject: python + opengl Reply with quote

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
View user's profile Send private message
florax
n00b
n00b


Joined: 26 Jun 2002
Posts: 24
Location: Germany

PostPosted: Sun Jun 30, 2002 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
jezza
n00b
n00b


Joined: 09 Jun 2002
Posts: 16
Location: Essex, UK

PostPosted: Mon Jul 01, 2002 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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