
-----------------------------------
metachief
Mon Apr 21, 2008 5:13 pm

3d...
-----------------------------------
Hello fellow programmers, I have messed around on turing for about one year. Finally I am running out of ideas for new things to create, so I thought that i should give 3D graphics a try. 
Does anyone have suggestions on how I should start? It is a confusing consept for me scince I only know how to do 2D games and programs. I assume it involves a lot of triginometry, so I should probably wait until I pass grade 11. Although, I could try simple things. Not a game, but at least 3D model making.
If you have any knowledge on 3D graphics and concepts, I would appreciate a response...
Thank you in advance

-----------------------------------
Sean
Mon Apr 21, 2008 5:26 pm

RE:3d...
-----------------------------------
3D incorporates a new co-ordinate, a z co-ordinate. There is a lot to do, and the Tutorial isn't the way we need it. Who knows, someone may have a link.

-----------------------------------
syntax_error
Mon Apr 21, 2008 5:47 pm

RE:3d...
-----------------------------------
raycasting.

-----------------------------------
Saad
Mon Apr 21, 2008 5:56 pm

Re: RE:3d...
-----------------------------------
raycasting.
Oh god raycasting looks really bad and should really be avoided. 


Regardless of that last comment [url=http://www.flipcode.com/archives/Plotting_A_3D_Point_On_A_2D_Screen.shtml]here's a tutorial on projecting 3D points onto a 2D screen.
[url=http://en.wikipedia.org/wiki/3D_projection]Wiki also has a good link although its explanations involve knowledge of matrices, although you should know how to use them before making a 3d engine as it makes your life much easier

-----------------------------------
CodeMonkey2000
Mon Apr 21, 2008 6:15 pm

RE:3d...
-----------------------------------
I would suggest that you ditch turing altogether for something like this. Turing is far too slow, and you are wasting your time. If you are serious about this you should go on to Pascal/C++/Ruby/anything that's not turing with SDL (still 2D). Once you are familiar with that then you go on to openGL (3D).

-----------------------------------
HellblazerX
Mon Apr 21, 2008 6:19 pm

Re: 3d...
-----------------------------------

Oh god raycasting looks really bad and should really be avoided.
I disagree.  Although ray-casting isn't true 3D, it's a good way to transition from 2D to 3D programming.  When I made my ray-casting program, I used this [url=http://www.permadi.com/tutorial/raycast/index.html]tutorial as a guide.  Mind you, the tutorial has only the concepts and the formulas you need, so there isn't any examples in code.  The author did make a ray-casting engine, but the engine was made in Java, and it was very difficult to follow along with (few comments, hard to read, bad variable names).

-----------------------------------
CodeMonkey2000
Mon Apr 21, 2008 6:26 pm

RE:3d...
-----------------------------------
That's a good tutorial, but the problem I had was that he didn't really explain where he got the formulas. With a little thinking you should be able to derive them too (and I recommend that you do as the coordinate system he is using is different from turing's).

-----------------------------------
I Smell Death
Wed Apr 23, 2008 10:10 am

RE:3d...
-----------------------------------
the magic math is
X = x/z
Y = y/z
that will get a 3D coordinate's location on the 2D screen.
