Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mgrabul

Pages: [1]
1
Support / 3d models with texture
« on: February 12, 2011, 10:27:56 pm »
Hi I have a project presentation about augmented reality and I am using the JPCT game engine. I have problem in putting 3D models in my application(i don't understand blender), the problem is that I can't set the texture to the model becouse I cant find  (on net) a .3ds model with a texture mapped following the JPCT rule . If some one has some 3D models with correctly mapped  texture in blender and ready to use with JTPC  Please send me the bout files, a .3ds and a texture file. Or if is possible to use Please send me a .ser file or a link to a web site were I can download .3ds models with correctly maped texture for use in JPCT.
Sorry if the question is very basic

2
Support / 3D models
« on: February 12, 2011, 10:26:09 pm »
Hi I have a project presentation about augmented reality and I am using the JPCT game engine. I have problem in putting 3D models in my application(i don't understand blender), the problem is that I can't set the texture to the model becouse I cant find  (on net) a .3ds model with a texture mapped following the JPCT rule . If some one has some 3D models with correctly mapped  texture in blender and ready to use whit JTPC  Please send me the bout files, a .3ds and a texture file. Or if is possible to use Please send me a .ser file or a link to a web site were I can download .3ds models whit correctly maped texture for use in JPCT.
Sorry if the question is very basic

3
Support / 3d library
« on: October 07, 2010, 01:16:13 am »
Hi can some one point out a librery whit a 3d models that I can easely use to load 3d models in my application.
I found http://dmi3d.comeze.com/modelsvehicle2.html and I realy like the models but I have trouble importing them in the application. I first installed Blender in order to export the files in a .3ds fromat. After I exported the model in a .3ds format I still had problems ranning the application and I get an error. can someone explane in details the easiest way for adding 3d models to my application. Please:)

4
Support / using sensor to rotate camera
« on: September 25, 2010, 01:34:01 pm »
Can some one post a simple code (example) on using phone sensors to rotate jpct camera.
I tried reading the topics on the forum  but the code is not complete.I think that a coomplite code will be interesting for all the users of the forum. 
and becouse I am new to android I will realy aprriciate a simple code.

5
Support / camera rotating problem demo
« on: September 17, 2010, 10:42:17 pm »
Hi I have a problem with the rotation of the camera in the demo code at http://www.jpct.net/jpct-ae/, it seams that the camera rotates around its own axis i can't make it rotate around a paralel axis from the world.
for example if I rotate the camera down or up and then right or left I get a view that has not a paralel horizot to the first view horizont.
    this is my code:


      public void onDrawFrame(GL10 gl) {

         try {
            if (!stop) {
               if (paused) {
                  Thread.sleep(500);
               } else {
                  Camera cam = world.getCamera();
                  if (turn != 0) {
                     world.getCamera().rotateY(-turn);
                  }

                  if (touchTurn != 0) {
                     world.getCamera().rotateY(touchTurn);
                     touchTurn = 0;
                  }

                  if (touchTurnUp != 0) {
                     world.getCamera().rotateX(touchTurnUp);
                     touchTurnUp = 0;
                  }

                  if (move != 0) {
                     world.getCamera().moveCamera(cam.getDirection(), move);
                  }

                  fb.clear();
                  world.renderScene(fb);
                  world.draw(fb);
                  blitNumber(lfps, 5, 5);

                  fb.display();

                  sun.rotate(new SimpleVector(0, 0.05f, 0), plane.getTransformedCenter());

                  if (System.currentTimeMillis() - time >= 1000) {
                     lfps = (fps + lfps) >> 1;
                     fps = 0;
                     time = System.currentTimeMillis();
                  }
                  fps++;
                  ind += 0.02f;
                  if (ind > 1) {
                     ind -= 1;
                  }
               }
            } else {
               if (fb != null) {
                  fb.dispose();
                  fb = null;
               }
            }
         } catch (Exception e) {
            Logger.log("Drawing thread terminated!", Logger.MESSAGE);
         }
      }

Pages: [1]