September 15, 2008

step2:rotation object in game

you can rotate your object in 2 way.Which way you select is in base of your games andalgorithms and graphics of your programs.In first way you can set origin in game bysetOrigin function or like it.prerotate and postrotate function invoke this origin onbase of your origin and object default origin and make new origin.( see here for technical information) This way is used when you want change your rotation origin on base of your gamealgorithm and you havn't any fixed origin for your objects .But you can set your orotation origin in3d model maker software's and export it m3g.it is better using mascot capsule because someexporter maybe can't export...
Read more »

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 »