learning python

I have tried c++ but all i got was bored I mean really bored. I have been reading about how great and EASY python is so I am thinking of learning it,
Where can i get good books for a stupid beginner like methat deals with 3d and direct x? I want to make a 3d aquarium (real Time) A.I. collision detection. I know it will take me a long time but. . .

digiman

i suggest that you post this in the python & plugins forum right below the off-topic forum.

http://blenderartists.org/forum/forumdisplay.php?f=11

I bet Mods will come by soon and lock this thread for being off the proper forum.

Python is ok for most things but not performance critical software like real-time 3D. Having said that for the level of performance you need, it might be a good place to start. I would use this:

http://www.pygame.org/news.html

You can try learning python with the BGE (blender game engine):

http://blenderartists.org/forum/showthread.php?t=80826

osx is right, in saying that performance critical software requires a compiled language. However an interpreted language (like python) can be used quite nicelly to script events in the game space.

The way I see it: the only performance critical part in a 3D game is the actual renderer. Everything else can be scripted in an interpreted language with virtually no loss in performace.

I read that you can finish aprogram with python even though you started it in c++. I thought python was a compiled language, good to know though

digiman

I thought python was a compiled language

Nope, one of the beauties of it. Means you can have an interactive terminal open, which is VERY useful.

You’ll find lots of Python documentation/tutorial links in this thread.

Another plus for the floaty panel idea because the Python script window could be used more like a terminal. The text window is not really as suitable given that text easily flows off the edge.

Hi digiman, here are two general python resources that helped me most with learning python . It’s not specific to 3D, but I think you could benefit from them in any case:

The online book A Byte of Python
The Python Quick Reference

Another plus for the floaty panel idea because the Python script window could be used more like a terminal. The text window is not really as suitable given that text easily flows off the edge.

Within blender? Aye, would be good.

Out of blender I find IDLE is quite good, that or notepad++. SPE is apparently very good but I never really got into using it.

Ian