Thursday, August 14, 2008

Starting The Gaming Programming-Part1

Hi gamers,
Let me start gaming programming with knowing some game terminology .its the starting thing we should know...

some Basic stuffs for game terminology:

When we talk about 3D its actually combination of 2D and perspective projection.
3D = 2D + perspective.

Perspective projection is like we what we see in real world:
1) Objects closer to eyes appears larger
2)Objects far away from viewer appears smaller.

Whatever we want to draw in screen which is having only two dimension but using perspective color changes,lighting,textures,shading add together to the perception
of three dimensional image.So..
perpepective + colors + shading + lighting +texture ~= 3D image


Clipping area = the area in co-ordinate system which occupies in screen co-ordinates is known as clipping area..Its basically a translation from one to another.

ViewPort = Rarely It happens that the clipping areas width and height matches with the height and width of windows area.Therefore it has to be mapped from logical co-ordinate system to screen pixel.This is called ViewPort...its basically clients window area for drawing.

SOme time the viewport can be larger or smaller when compared to clipping area.


Primitives = these are basically two dimensional ojects such lines,points and polygons..These primitives are assembled to create 3d objects in 3d space.


In 3d dimension we (x,y, z)
Z can we pointing outwards or pointing inwards...depending upon convention taken
like right hand or left hand system.
Right hand system = thumb is x, index in y and middle finger is Z and is pointing
outward.

left hand system = thumb is x, index in y and middle finger is Z and is pointing
inward.

Far Clipping Plane = It indiactes how far we can see....

Viewinf Plane = It basically refer to the screen....


Viewing volume = Space between the near clipping plane and far clipping plane
is known as viewing volume..

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home