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 - ashunkhs

Pages: [1]
1
Hi ,

   I am working on JPCT+Vuforia integration . My model is rendering well . but problem is that model is semi-transparent by default without any
   setTransparency() call . And it doed't show any effect when i set cube.setTransparency(-1) .



2
Support / loading obj model
« on: May 16, 2013, 08:03:48 am »
hi

  i am trying to load object (car.obj)model on surface . its loading but the model become transparent. please check out
  my attached image. we need to set any property ?

[attachment deleted by admin]

3
Support / problem to create object3d model
« on: May 09, 2013, 02:10:57 pm »
hi

 i have to create  Object3D model  with object ID 0.
 but when i start app  line1 print object ID->0 but again reopen the app it print ID-->1....and increase one by one .
 so, how to set the object ID ,which always print 0.

Object3D cube_lm= null
cube_up_rt = Primitives.getPlane(9, 9);
         System.out.println("cube_up_rt id-------->"+cube_up_rt.getID());......................line 1
         cube_up_rt.setTexture("eng_text");
         cube_up_rt.rotateY(-60);
         //cube_up_rt.strip();
         cube_up_rt.build();
         cube_up_rt.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
         cube_up_rt.translate(380, 160, 0);

when i do in
onDestry()
{
world.removeObject(cube_up_rt);
cube_up_rt=null;
tm.removeTexture("hebrew_text");
world.dispose();
world = null;
fb.freeMemory();
fb.dispose();
fb = null;
}               and i got the same result.pls help me out.

4
Support / set the scaling on SerializedObject
« on: May 07, 2013, 11:12:13 am »
     
hi ,
   Actually i have to set scaling on serialized object in PhysicsTest sample  and i am doing this :
 
                                world = new World();
            sBox = Loader.loadSerializedObject(res.openRawResource(R.raw.boxmodel));
            sBox.build();
            sBox.setScale(3f);    // no effect on the model

                               //sBox.setScale(100f);// no effect on the model

            sBox.rotateZ(50);

   But there is no any changes happened.if we can do then how?

5
HI ,

  I got success to Integrate JPCT-AE with Vuforia now my model rendering same as teaport in imageTagget sample.
  But it was in Landscape mode only .

  Because Vuforia axis system are somehow defined in landscape mode. So i set the orientation and position of JPCT camera object.

Now my model is rendering in portrait mode same as teaport . But model is my model is not shown in original state ,
means i load a circle and it become eclipse.
 
so i just attached two screen short ,if there is any solution to set aspect ratio so to match the ratio between the view width and view height.  please refer to me .





[attachment deleted by admin]

6
Support / Integrating JPCT-AE with Vuforia
« on: April 09, 2013, 10:26:57 am »
Hi Sir

 I am working fro Integrating JPCT-AE with Vuforia.  And  follow this link ....for help
 
 http://www.jpct.net/wiki/index.php/Integrating_JPCT-AE_with_Vuforia

 I did every thing same . I replace the letest  JPCT library also But my app is being cress in following line .

if (fb != null) {
         fb.dispose();
      }
      fb = new FrameBuffer(width, height);

 in  onSurfaceChanged(GL10 gl, int width, int height) methord.    and the error is  as................

04-09 08:16:48.110: E/AndroidRuntime(10749): FATAL EXCEPTION: GLThread 648
04-09 08:16:48.110: E/AndroidRuntime(10749): java.lang.RuntimeException: [ 1365495408106 ] - ERROR: java.lang.RuntimeException: [ 1365495408102 ] - ERROR: java.lang.RuntimeException: [ 1365495408100 ] - ERROR: Shaders are not supported when using OpenGL ES 1.x!
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.Logger.log(Logger.java:189)
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GLSLShader.check20(GLSLShader.java:266)
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GLSLShader.<init>(GLSLShader.java:217)
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GL20.<init>(GL20.java:117)
04-09 08:16:48.110: E/AndroidRuntime(10749):    at java.lang.Class.newInstanceImpl(Native Method)
04-09 08:16:48.110: E/AndroidRuntime(10749):    at java.lang.Class.newInstance(Class.java:1319)




please check it out . what i have to do next..........?


regards
ashutosh

7
Support / loading md2 model in background.....
« on: November 06, 2012, 10:31:41 am »
Hi

   I am trying to load 5-6 md2 model on my GL. But it it taking more time and my app become stuck (Black screen) . So i tried to lode it in background using thread or AsyncTask. But i am getting null pointer error  in onDrow() . when i used any model object . otherwise blank screen (without model). 

class LoadModelAsyncTask extends AsyncTask<Void, Integer, Boolean>
   {
      protected Boolean doInBackground(Void... params)
      {
         System.out.println("i m doInBackground");
         ogro=loadModel(Environment.getExternalStorageDirectory() +"/texture_one.jpg",Environment.getExternalStorageDirectory() + "/logo_one.md2",0.25f);
         ogroA=loadModel(Environment.getExternalStorageDirectory() +"/texture_one.jpg",Environment.getExternalStorageDirectory() + "/circle_one.md2",0.25f);
         
         return null;
      
      }

      protected void onPostExecute(Boolean result)
      {
         System.out.println("i m onPostExecute");
         world.addObject(ogro);
         world.addObject(ogroA);
         world.buildAllObjects();
      }
   }


and call it in
onSurfaceChange() {

mLoadModelAsyncTask = new LoadModelAsyncTask();

         mLoadModelAsyncTask.execute();

cam.lookAt(ogro.getTransformedCenter());  ........1
cam.lookAt(ogroA.getTransformedCenter());.........2
}


here geting null pointer in line 1 and 2..aswell onDrow().


if any solution pls ..reply soon..!!
 8)

Pages: [1]