October 18, 2008

sample tips in making mobile game:graphics 1

tips1:When you making a mobile games you should know that you can't make full city or even buildingand textured them.Because it forced to have bigger 3d models and some mobile device's(or all ofthem!).In this case you can textured your desired city or building or...in sample plane or cubeand move camera toward them. in game it seems that you moved in real city or building but youmoved to image .Then you can add your game sample building and humans and creatures to otherside of pictures.like below this is my vi...
Read more »

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 »

August 4, 2008

Advanced programming II: images and text

Advanced programming II: images and text Now we want focusing on making better game. For better game we need some text for showing score and some images for maps and other thing and at last a better graphics for getting your game more reality . In design of 3d models you need getting texture from building and objects that you want to use in game. Some texture maybe force to distortion your model and even maybe you can’t see anything. And of course more high graphics texture and models may not be seen well in some old phone. For example when you download this game for p990 sonny erricson you see a picture like itBut when you...
Read more »

July 24, 2008

Using pointer: download A sample pointer enabled killer game

I add a sample project for more discuss in light and cameras. it is only a camera moving in between walls(textures are from internet).I'll add gun and other effects to it in next time.You can also edit 3d model in way you want. This is my model in 3 direction:top,camera,left and perspectiveThis model have a camera and 3 light and you should draw your model on base of your camera(upper right picture) and if you want use another cameras also you should configure your model on base of them. In this model camera id is 14 and for loading camera in program this code is enoughCamera camera;Camera=(Camera)(Myworld.find(14));Camera position in...
Read more »

July 16, 2008

Advanced programming I: lights and cameras

1.your 3d modelIn every game you should select your lights and cameras carefully and move them on base of your objects moves specially in 3d games. In this 3d model you see three light( free spot) and one camera and panel and ball(sphere).this is a sample game for moving a ball in panel.For using it you should export in m3g After do that maybe you see a view such this in a m3g player As you see you may lost some graphics on base of your m3g exporter and your 3d software now you are ready for moving your lights and cameras.2.moving your lights and camerasJava have two class for moving light and cameras in m3g files with name Light and...
Read more »

July 9, 2008

Download and develop your 3d java game mobile

For starting in programming with netbeans first I upload a sample java mobile game project that you can download it and run it or change it and even make a new game.3d model making1-for starting programming first you should have 3d model maker .this software should can export models to m3g.I using 3ds max 2008 but you can also use any 3d software like blender and a m3g exporter with it.Blender and m3g exporter are free.Maya is another good software for it but is not free.Every box and sphere you create in this software ,have an id in m3g that give you access to them and You can rotate and move this object .Graphics of this model maybe have some problem inSome phones on base of their graphics.Netbeans project information2. After make your 3d model and export it now you are ready...
Read more »

July 1, 2008

About middlet and gamecanvas

MidletWhen you start to programming with java for mobile ,first class you build is midlet .Midlet is an interface between you and mobile. In netbeans you can easily add midlet automatically or with right click in project and in new menu click in visual midlet. In visual midlet you have a form by default and actions belong to it and in graphical interface you can easily add text or other thing to form but if you dont wnat to have form in your program you need only midlet.This class have functions like startApp,destoryApp,startMidlet and like .This function say's what you want to do when midlet started or your program started and etc.In middle you can also switch display of your program between graphics and forms that you make or add your command to your program. It is better that you have...
Read more »

June 27, 2008

mobile programming basics

We have two famous java mobile project platform cdc and midp.Cdc is in base of uiq or nokia symbian or like that and we not focused in it now.Midp when combined whith cldc(is not same whith cdc) provide java standart runtime envirument see here for more info andcldc defines the base set of application programming interfaces and a virtual machine for resource-constrained devices like mobile phones, pagers, and mainstream personal digital assistants and mainstream personal digital assistants (PDAs).You aren't forced to know this info and only youneed to know is that you should select best platform for you and your ide give you options for this porpose.For example in netbeans ide 6 you select menu file->new project and you see a dialog.In this dialog you select mobility and in project...
Read more »

June 20, 2008

java mobile game programming

nowadays mobile game's are popular in world.why?Because mobile user's are increasing and ofcourse their user are different. from child's to young , from businessman's to unemployed people's .But everyone need game and music's for some funs in their tiring times specially young people's. In past time's game are limited in mobiles.Because Mobiles have limited memory and graphics but todays mobile have more memory and graphics and we can make better game .New game have 3d model's and high quality sound's that give user real world .Our focus in this blog is in 3d java game programming in mobile and how do it.I'm waiting for your comment about this blog and which content you need for mobile programmi...
Read more »

Pages 71234 »