www.xbdev.net
xbdev - software development
Thursday March 28, 2024
home | contact | Support | The Maths of 3D You can't have 3D without a little maths...

     
 

The Maths of 3D

You can't have 3D without a little maths...

 

Rasterization : Projection...(giving our image depth)

by bkenwright@xbdev.net

 

 

Lets say we have our data...loads and loads of x,y,z values, which we've either read in from a file or generated them....now how do we go about rendering these points to the screen so that we get a 3D appearance?  Well there are two main ways...orthographic and perspective... in orthographic we just throw the z value away and would more or less render to the screen... well thats the simple explanation.

 

In perspective, we divide our x and y values by there z value in essence....its a slight bit more complicated but that a basic theory.  We will have to take some things into account for our final version, such as Field of view and screen size.... but just hold on to your pc, and we'll get you through it :)

 

 

 

 

 
Advert (Support Website)

 
 Visitor:
Copyright (c) 2002-2024 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.