Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2070
Number of posts: 5361

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
3d-programming Posted by nyb10 on 28 Dec 2000 at 8:40 AM
Ok, I am new at this, so here is my problem,
I try to learn some 3d-programming(for gameprogramming), and I know there is a standard 3d-matrix that describe a 3dobjects position in the world, if I understand it right its a 4*4 matrix which describe the objects position in the world, its facing and so on.. but I do not know how it really works, can any one direct me to some site with detailed description or can email me or answer my question in any way, please :=) ??



Edit Report
Re: 3d-programming Posted by Code on 5 Jan 2001 at 6:30 AM
I'm not sure what youre asking,

I do some maths in college.. all i know about Matrix calculation can be found on few maths websites. ( search the net for Maths) These people might know a bit more about Matrix for 3D programming.


: Ok, I am new at this, so here is my problem,
: I try to learn some 3d-programming(for gameprogramming), and I know there is a standard 3d-matrix that describe a 3dobjects position in the world, if I understand it right its a 4*4 matrix which describe the objects position in the world, its facing and so on.. but I do not know how it really works, can any one direct me to some site with detailed description or can email me or answer my question in any way, please :=) ??
:
:



Report
Re: 3d-programming Posted by socket3d on 12 May 2001 at 2:06 PM
I know how it works, they are called homogeneous transformation matrices and represent rotation, translation and scalation between 2 axis systems. You must notice that they only refer to axis systems, not objects, so you must always have one fixed reference system which is the world, and then each matrix represents subsequent transformations.

1 0 0 0
0 cosA -sinA 0
0 sinA cosA 0
0 0 0 1

this matrix represents only one rotation of A degrees in X axis, so a null rotation gives

1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
which is the identity matrix,

cosA 0 sinA 0
0 1 0 0
-sinA 0 cosA 0
0 0 0 1
this matrix is the same but in Y axis

cosA -sinA 0 0
sinA cosA 0 0
0 0 1 0
0 0 0 1
this matrix refers to Z axis

1 0 0 x
0 1 0 y
0 0 1 z
0 0 0 1

this matrix translates a distance given by the vector p(x,y,z)

the element 4,4 represents the scalation factor, and the elements 4,1 4,2 4,3 represents a change in perspective.








 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.