#### Archived

This topic is now archived and is closed to further replies.

# Basics of 3D programming

This topic is 6485 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, I''m trying to learn 3d programming.. But all articles I can find are really advanced and uses c++ or asm code.. So, I''m woundering if someone know where I can learn about 3d basics like. Matrixes, Rotating points (XYZ) How to display 3d on a 2d screen. Cheers, Dan

##### Share on other sites
RIght here on this site you can find all of that. Its under the programming section.

Snyper

##### Share on other sites
This site 3D Graphics Programming has good anwers for those questions

To display a 3d point on a 2d screen you simply divide the x and y by the z.
screenx=x/z*scale
screeny=y/z*scale
The scale can be any number you want, what ever looks good.
There are several other ways to do it but I think this is the simplest way.

For rotating points you need to study up on matricies! The matrix section in the site i mentioned above should have all you need to get you started.

If you want some source code I can get some to you in either Visual Basic or C++.

What programming languages do you know? What are you using? I use C++ most of the time and that seems to be what most everyone else is using. So i recommend you at least take a look at it and learn some of the basics.

Hope i helped.

##### Share on other sites
Well, I can recommend a couple good books:

Advanced 3D Game Programming using DirectX 7.0
ttp://www.amazon.com/exec/obidos/ASIN/1556227213/o/qid=971069020/sr=8-1/ref=aps_sr_b_1_3/102-2326145-0131360

Chapter 3 covers the math behind games in a manner such that pretty much anyone could grasp the concepts. It also goes on to discuss topics such as visibility determination/hidden surface removal, scene-graphs, curves, a.i., inverse kinematics, networking, and more.

Real-Time Rendering
http://www.amazon.com/exec/obidos/ASIN/1568811012/qid=971069184/sr=1-1/102-2326145-0131360

RTR is a great supplimental book once you''ve gotten a decent hold of your core concepts.

##### Share on other sites
Thanks!

I use delphi (I know some VB, but I don''t have a compiler for it).

Cheers,
Dan

##### Share on other sites
I have a specific question about matrices and vertices. For a cube, assuming you know all the vertices, since there are 8 of them how do you store them in a matrix? I don''t get it...

##### Share on other sites
you store them in an array. usually you make a data structure with maricies and other vertex data stuff and just make an array.

JoeMont001@aol.com www.polarisoft.n3.net

##### Share on other sites
You can check http://www.flipcode.com
they are a series of articles called : ''3D geometry primers'', and another one about how to do a Portal Engine.

And of course numerous tutorials, news...

-* So many things to do, so little time to spend. *-

##### Share on other sites
quote:
Original post by revolver

Well, I can recommend a couple good books:

Real-Time Rendering
http://www.amazon.com/exec/obidos/ASIN/1568811012/qid=971069184/sr=1-1/102-2326145-0131360

RTR is a great supplimental book once you''ve gotten a decent hold of your core concepts.

i need a book that does not only cover the principles, and doesn''t just skip over the "why it is so" concerning mathematical topics.
do you think you can recommend this book?

thanks
rid

##### Share on other sites
Computer Graphics: Principles and Practice, by Foley and van Dam.. a great book, heavy in theory, on all things computer graphics, not just 3D...

------------------------
IUnknown *pUnkOuter

"Try the best you can
try the best you can
the best you can is good enough"

1. 1
2. 2
Rutin
24
3. 3
JoeJ
19
4. 4
5. 5

• 17
• 40
• 23
• 13
• 13
• ### Forum Statistics

• Total Topics
631729
• Total Posts
3001918
×