You are not logged in.

#1 2004-06-15 21:18:04

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

3D programming in Python

Hey folks,

I need to do some 3D programming, and I have to decide between Java and Python to do it in. Further, I have to decide whether to use Java3D, JOGL, or Xith3D if I use Java, or what library to use if I use Python.

I know all about Java, but I'm just getting used to Python. I can findPyOpenGL and vpython to work with.  Anybody know of any better libraries?  There's a vpython package in pacman, but from the site, I don't think its advanced enough; no textures, etc.  I don't have much experience with OpenGL, and the experience I had is something I don't want to repeat.  Is PyOpenGL a little more sane than OpenGL in C (besides just the saneness afforded by using Python).

What I need to do first is get a quick mock-up running to see if the interface is viable; vpython might be good enough for that...

Suggestions? A lot of python users here, any of them done any 3D work?

Dusty[/url]

Offline

#2 2004-06-15 21:37:53

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

pygame is what you need. Good Luck buddy

Offline

#3 2004-06-15 23:06:59

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

I thought PyGame was only for 2D stuff, but I've investigated and found that SDL has openGL bindings, and pygame has pyOpenGL bindings, somehow.

What I can't find is documentation on how to develop 3D stuff in pyGame...  I found some programs that do OpenGL in pygame.  I found some code that does NeHe tutorials in pyOpenGL though, and some that does the tutorials in SDL.

There is a pygame package in pacman, but no pyOpenGL, that I see...

pygame seems more on the right track though.

Thanks again,

Dusty

Offline

#4 2004-06-16 17:10:28

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

https://gna.org/projects/soya/

I found soya, but I don't know if its worth the trouble I need to get it up and running... no packages. :-D  I'm leaning back towards Java3D because I know it... this is mostly just for a proof of concept for work. I think python would be better for the scripting, but J3D for the 3D stuff... maybe I'll look into Jython.

Dusty

Offline

#5 2004-06-16 21:18:42

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

I think i'll stick with Java 3D for this one.  They aren't to keen on my using Python anyway. :'(

Offline

#6 2004-06-23 13:06:04

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

hey dusty. did you by any chance make a Slune PKG for AL? this game seems to rock big time!
slune & soya devs used tow ork on JAVA tongue

Offline

#7 2004-06-23 13:11:18

wdemoss
Member
From: WV - USA
Registered: 2004-01-18
Posts: 222

Re: 3D programming in Python

Also you could check into gl4java at http://www.jausoft.com/gl4java/. I used it for a school project a couple of years ago.

EDIT:
After looking at some of the projects you listed, gl4java is probably antiquated in comparision. smile
-wd


Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?

Offline

#8 2004-06-23 15:19:11

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

I looked at Slune and Soya, but never installed. I would install all this stuff and try it if somebody would offer me free bandwidth, but as it is, stick to the necessaries. :-D

Offline

#9 2004-06-24 13:01:40

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

well doesn't Canada have good Lines?
I have an ISDN 64K!!
anyways Good 3D Games are always HUGE (because of models and so on..)

Slune seems to be a great game though! [happypenguin.org]

Offline

#10 2004-06-24 15:23:52

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

Canada has nice broadband lines in the cities. I'm on 33k (at best) dialup out in the middle of the country here with no other options.... well, there is satellite options coming in now...

Dusty

Offline

#11 2004-06-24 17:48:02

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

hmm. I don't mean to offend you country [except sea dogs killings I love it] but I couldn't have imagined that. I of course live in Athens, but everyone in Greece has access to ADSL/ISDN these days [well ADSL hurts in the pocket but..]

Offline

#12 2004-06-24 18:12:34

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

about half the small towns in Saskatchewan have ADSL now. It's available in Shaunavon (2000 people) and up to 4 miles out of town.  But I'm 7 miles from town, my phone runs on corroded copper...


Dusty

Offline

#13 2004-06-24 20:50:36

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: 3D programming in Python

if you got dynamic ip Dusty, don't forget to google every time you log in. That zeitgeist is really annoying. linux=1% grrrrr


arch + gentoo + initng + python = enlisy

Offline

#14 2004-06-24 21:51:12

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Offline

#15 2004-06-24 21:59:16

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: 3D programming in Python

http://www.google.com/press/zeitgeist.html
google counts what os or browser you are using when you do a google. I've heard that every ip gets one count so if you got dynip you get a new count every time you are logging in. All MS Zealots are bashing about it all the time.

And I'm still trying to learn Python. PYGTK was easy but low level programming is not so easy when you are a moronpeeceeuser like me.
I'm still looking for stdin and so forth..


arch + gentoo + initng + python = enlisy

Offline

#16 2004-06-24 23:17:54

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 3D programming in Python

I google a lot anyway (I get $100 a crack now wink)  wxPython is marginally easier than pygtk, IMO.  raw_input() builtin gets a line from stdin.  check http://docs.python.org/lib/built-in-funcs.html

Offline

#17 2004-06-25 00:41:21

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

we shouldn't argue on GUIs.
For me PyGTK and wxPython are 2 different things. the first [with Gnome-Python too] is the best way to do GUI for GNOME [the best DE imo].
wxPython is for windows apps, and also to say (hey look this also runs in Linux (via ugly gtk1))

if in the future they consider wxGTK using GTK2 [like I saw in devel releases] then we can discuss this again tongue

Glade is better than wxGlade btw tongue

Offline

#18 2004-06-25 21:11:50

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: 3D programming in Python

what's the point with glade anyway, I think it sucks.
it's better to code yourself or am I missing something?


arch + gentoo + initng + python = enlisy

Offline

#19 2004-06-25 22:22:19

bleak
Member
Registered: 2004-05-11
Posts: 24

Re: 3D programming in Python

xerxes2 wrote:

what's the point with glade anyway, I think it sucks.
it's better to code yourself or am I missing something?

Glade in my opinion is an awesome tool. Why spend hours coding how you want your application to look like when you can do it in 5 minutes easily?

I think a programmer should focus on how he wants the application to behave and not so much on how to code gui elements.

Offline

#20 2004-06-25 22:41:30

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

Glade sucks? not really. just google why

Offline

#21 2004-06-26 00:19:49

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: 3D programming in Python

http://mail.gnome.org/archives/gtk-app- … 00250.html

http://glade.gnome.org/

and as glade exists also for windows ( http://gladewin32.sourceforge.net/ ), it must really be something the world cannot without, right?

(glade rocks, if you want to create a ui the fast way!)


The impossible missions are the only ones which succeed.

Offline

#22 2004-07-01 21:57:32

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: 3D programming in Python

I thought Glade was dead. GTK-xml files is useful though. Is it libglade that handles all those or are there more libs that can do it? In python it's not necessary perhaps?


arch + gentoo + initng + python = enlisy

Offline

#23 2004-07-02 09:56:50

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: 3D programming in Python

Glade1 is dead.
Glade2 is loved
Glade3 is waiting to meet us

PyGTK does it better (lol) with Glade xml
http://www.linuxjournal.com/article.php?sid=6586

Enjoy your google.com.lang

Offline

Board footer

Powered by FluxBB