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]
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) .

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

  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]

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

 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.translate(380, 160, 0);

when i do in
world = null;
fb = null;
}               and i got the same result.pls help me out.

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.setScale(3f);    // no effect on the model

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


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

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]

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

 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 = 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(
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GLSLShader.check20(
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GLSLShader.<init>(
04-09 08:16:48.110: E/AndroidRuntime(10749):    at com.threed.jpct.GL20.<init>(
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(

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


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

   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");

and call it in
onSurfaceChange() {

mLoadModelAsyncTask = new LoadModelAsyncTask();


cam.lookAt(ogro.getTransformedCenter());  ........1

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

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

Pages: [1]