Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 12th, 2005, 3:23 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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?
Sane is online now   Reply With Quote
Old Oct 12th, 2005, 3:38 PM   #2
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Oct 12th, 2005, 3:41 PM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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. >.@
Sane is online now   Reply With Quote
Old Oct 12th, 2005, 3:43 PM   #4
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Oct 12th, 2005, 3:45 PM   #5
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Old Oct 12th, 2005, 3:48 PM   #6
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
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!
ivan is offline   Reply With Quote
Old Oct 12th, 2005, 3:49 PM   #7
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Oct 12th, 2005, 3:50 PM   #8
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
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.
Sane is online now   Reply With Quote
Old Oct 12th, 2005, 3:52 PM   #9
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
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.
coldDeath is offline   Reply With Quote
Old Oct 12th, 2005, 3:55 PM   #10
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
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.
Polyphemus_ is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC