September 5, 2008

steps in making real 3d game

1.movingmoving of objects in 3d game is an important step in games and you should have good control in moving light and cameras .Camera position is on base of your game strategy and your game algorithm.for example in this test game(i'm still beginner) I set camera position with this code.cam.postRotate(45, 0, 1,1); cam.setTranslation(xpos+40, ypos-50, zpos+60);and you'll see camera in front of girl and above of her head when she moving near house.in this video you will see how camera move(xpos,ypos,zpos is girl position in 3d place) another method for moving is using transformation and transform matrix . a transform matrix is a 4 X 4 matrix and in java code you write it as float array with this codefloat[] matrix={1,0,0,sx,0,1,0,sy,0,0,1,sz};Transform m=new Transform();m.set(matrix);now...
Read more »

Pages 71234 »