![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() |
3d Graphics.
I'd like to try to program and implement the core of a 3d engine in a scripting language like Turing or Python. Right now I'm only in Grade 10 math, so I don't know enough, but I'd like to.
Have any resources, links, helpful pointers, or quick lessons to help me on the way? |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Well for 3D graphics in Python, you will have to use PyOpenGL. ( I'm not aware of any alternatives ) Basically tehy are bindings for C OpenGL.
Homepage of PyOpenGL: http://pyopengl.sourceforge.net/ I'm not aware of any 3D libraries for Turing. I suggest that you use C (or C++) for 3D graphics, that way you will get: Speed(your 3D program in pyhon will be very slow) Lots of tutorials, books and help A few choises of libraries to use I suggest OpenGL, maybe using GLUT if you don't want to use windows or X-Windows programming. There are a few online resources to help you learn OpenGL, that can be found by using google or one of the links below. Good Tutorial for beginners - http://opengltutorial.co.uk Red Book - http://www.rush3d.com/reference/opengl-redbook-1.1/ Blue Book - http://www.rush3d.com/reference/opengl-bluebook-1.0/ Glut reference - http://www.opengl.org/resources/libr...ec3/spec3.html NeHe tutorials - http://nehe.gamedev.net/ Good Luck
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
No. I don't think you get it.
I want to use the math behind 3d graphics to create an engine. I'll be able to ask the engine if x,y,z then where do I draw which vector points? etc... I don't want to use stupid pre-made libraries or algorithms, I want to LEARN. >.@ |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Soemhow i don't think you will be able to program something as complex as that in Python.
I'm not too sure what you mean, but i think you mean create your own 3D library like OpenGL or DirectX.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
If it's for personal use then why make a library out of it?
I've seen it done in Turing. It used an array of the vector points of a cube and a function called with those points. Then with the mouse you could rotate three-dimensionally the cube. I just didn't want to steal the code. I want to learn the math behind it and implement it myself. |
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
Lol Sane, that's not as easy as you may think. That's not a really good idea.
You need to be an expert on maths and you need a lot of experience with 3D. Or start learning advanced maths or hold on Directx and OpenGl( I hardly recommend that ). But, if you really want to do it, good luck! |
|
|
|
|
|
#7 |
|
Expert Programmer
|
Right i see, i didn't think it was possible in Python, though it would be possible to code it in C/C++ and make it a module for Python.
I have no knowledge of Turing, and as you say, you have seen it done, so it must be possible. Maybe you could look at the code and learn from it? But as Turing isn't well documented it may be hard.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#8 |
|
Programming Guru
![]() |
I am, I'm very in to advanced maths, very dedicated, interested, and motivated enough to do this. In my free time last year I studied calculus, so yeah... I'm that whacked.
EDIT: The code wasn't complex at all. It just used a lot of advanced math. It could be done in any scripting language really, as long as they have the appropriate mathematical capabilities. The actual complexity of the code was low. |
|
|
|
|
|
#9 |
|
Expert Programmer
|
lol
I'm ok at maths, it has never been that good a subject for me but that irrelevant.Have you tried 3D graphics programming before? because it would help to know how it works so thta you can implement it to work similary. EDIT: (corretc me if i'm wrong)But Python doesn't have a function to output a pixel to the screen, so it would have to work without displayign the actual object, unless you import a libray to your python program that will let you create a window and draw pixels.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#10 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
math isn't really a problem.. two years ago i made a simple, non-finished 3d engine. The math took some research indeed, but i managed to do all of it. The reason i discontinued the project because it was too unstructured. I know stuff now you learn when you're 18 in the netherlands.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|