# Making the transition from 2D to 3D...

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

## Recommended Posts

I was wondering if any of you could explain how it is possible to add 3D models and environments into games (programmed with C++). Do you know of any good tutorials on the subject? You see most of the tutorials I have read aren't very helpful to a beginner like myself. EDIT: Looks like I may have posted this in the wrong section. I apologise if that is the case. [Edited by - KazamaJin on July 7, 2006 3:37:15 PM]

##### Share on other sites
3d graphics are based on projecting the 'real' 3d position of objects onto a 2d plane, this 2d plane is then used to draw flat representations onto your screen.

An understanding of linear algebra, with some geometry and trigonometry is needed to accomplish this 3d to 2d projection. lookup/learn 'Matrixes'

Graphics APIs like OpenGL and DirectX will do the math for you using your computer's hardware accelerator card, but a basic understanding of the concept is required for effective use.

In a few posts someone is going to reccomend that you look at 'NeHe's OpenGL tutorials'
...They aren't very good...
you can follow them and might be able to patch some graphics together, but probably won't gain a good understanding and will be lost as soon as you want to do something not in the tutorials

I really recommend picking up a book if you can
or better yet an actual class introducing 3d graphics and the math background

##### Share on other sites
...Continued

One thing you might want to do is learn a little bit about PinHole Cameras and 'camera obscura'. Thats where my understanding of graphics and the math behind persepective probably started; even though that was years before actually becoming a programmer.

yeah. extreme bottom up approach to learning...

##### Share on other sites
Anonymous Poster - Thank you for the advice. I will definately pick up a book on 3D graphics. Do you (or anyone else for that matter) have any recommendations on books which I may find useful?

1. 1
Rutin
22
2. 2
3. 3
4. 4
5. 5

• 9
• 9
• 9
• 14
• 12
• ### Forum Statistics

• Total Topics
633307
• Total Posts
3011290
• ### Who's Online (See full list)

There are no registered users currently online

×