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

Pages: [1] 2
Support / when i load obj file without mtl definition
« on: September 05, 2013, 03:00:19 pm »

  I'm loading obj file which is not having mtl definition in android, it rendered 3d model colored with white. But when i render same obj model in IOS it renders 3d model with gray color. what could be the problem?. Should i add any properties for the 3d model?

Prakash V

Support / rendering takes 2 seconds
« on: August 20, 2013, 03:00:11 pm »

 I have loaded the obj 3d model  and start trying to rendering it in onDrawFrame, when world rendered and drawn the framebuffer, it tooks 2 and half seconds for first time and then it is not taking a second to display it. Can you please tell me why it is taking 2 and half seconds? how could i make it less than a second.

Thanks & Regards,
Prakash V

Support / texture transparent alpha color is not working
« on: August 14, 2013, 05:37:12 pm »

 I am loading obj file which defines the transparency of the material to be alpha in the mtl file. when i loaded the background black color is still displaying. I have used following code to load the texture images. Can you please tell me, what could be the problem.

BitmapFactory.Options options = new BitmapFactory.Options();
                        options.inDither = false; //Disable Dithering mode
                        options.inPurgeable = true; //Tell to gc that whether it needs free memory, the Bitmap can be cleared
                        options.inInputShareable = true; //Which kind of reference will be used to recover the Bitmap data after being clear, when it will be used in the future
                        options.inTempStorage = new byte[4 * 1024];
                        File file = new File(filePath + "/" + s);
                        fs = new FileInputStream(file);
                        bitmapFile = BitmapFactory.decodeFileDescriptor(fs.getFD(), null, options);
                        if (bitmapFile.getWidth() > 512 || bitmapFile.getHeight() > 512) {
                           texture2 = new com.threed.jpct.Texture(
                              BitmapHelper.rescale(bitmapFile, 512, 512), true);
                        else {
                           texture2 = new com.threed.jpct.Texture(
                              bitmapFile, true);
                        TextureManager.getInstance().replaceTexture(s, texture2);

MTL File :
newmtl Thalaiva
   Ns 92.1600
   Ni 1.5000
   d 1.0000
   Tr 0.0000

   Tf 1.0000 1.0000 1.0000
   illum 2
   Ka 0.5098 0.5098 0.5098
   Kd 0.5098 0.5098 0.5098
   Ks 0.2500 0.2500 0.2500
   Ke 0.0000 0.0000 0.0000
   map_Ka thalaivaa.png
   map_Kd thalaivaa.png
   map_d thalaivaa_opa.png

Support / Model is shrinking
« on: August 05, 2013, 07:02:52 pm »

 I have integrated the vuforia with jpct and applied the modelview matrix from vuforia to jpct camera. When i tilt the camera to 45 degree or 60 degree to the target image, the model is getting shrink little bit. Why this is happening and how should i fix this issue.

Thanks & Regards,
Prakash V

Support / How to get camera angle?
« on: August 02, 2013, 06:46:05 pm »

 I have integrated the vuforia with jpct-ae, how to i get actual camera angle using direction vector or upside vector?

Support / stretching the object to set it in viewport
« on: July 30, 2013, 03:21:37 pm »

 Obj model is stretching when it is set to viewport, how to avoid this stretching in jpct-ae?

Prakash V

Support / Object rotation
« on: July 30, 2013, 01:01:34 pm »

 i have added the code to display object in jpct-ae


 when i move the direction the whole object is moving / rotated. How to place the object in static position with camera?

Support / how to stop rotation on object
« on: July 30, 2013, 12:59:54 pm »

 when i move the camera right or left, the whole object is rotated. How to stop the rotation when the camera moves right and left?

Thanks & Regards,
Prakash V


 is possible to handle the onclick or doubletab event for the model in android? or any other way i can handle that.

 Problem is when the user double click the model object, the associated video for the model object should play on the top of 3d model object.

Thanks & Regards,
Prakash V

Support / rotating the 3d model object
« on: June 25, 2013, 05:12:00 pm »

  i have integrated jpct-ae with vuforia, model is not displayed in the right angle. As per tutorial modelViewMatrix has to be rotate with 180 in x axis,

SampleUtils::rotatePoseMatrix(180.0f, 1.0f, 0, 0, &[0]);

I have done this in my code, but model is not displayed in the right angle.

Thanks & Regards,
Prakash V

Support / I have an issue in OBJ model scaling
« on: June 25, 2013, 03:59:37 pm »

 I have integrated JPCT-AE with vuforia and showing dynamic 3d models, my issue is each model has its own scaling, when i load it with scale 1

Loader.loadOBJ(new FileInputStream(objFiles),
                  new FileInputStream(mtlFiles),1)[0];

each model displayed with own scale and some of them showing very little, how to i uniform the scale?

Should i scale the modelViewMatrix from vuforia?


  Could you please explain or give the sample to use the Virtualizer  to store the data on disk. What Context needs to be set in Virtualizer in android?

Thanks & Regards,
Prakash V

Support / How to i load texture folder for obj
« on: April 05, 2013, 02:20:32 pm »

 I'm using vuforia+jpct, i want to load obj file which has material defined in mtl file, materials are in textures folder in sdcard. How do i load texture when i load obj?

Prakash V

Support / Obj model loading error
« on: March 04, 2013, 06:31:30 pm »

 I have downloaded obj file from this site and tried to use it in my application ( JPCT-AE) got following error

03-04 22:58:47.749: E/AndroidRuntime(22464): java.lang.RuntimeException: [ 1362418127753 ] - ERROR: java.lang.RuntimeException: [ 1362418127740 ] - ERROR: Unsupported Texture width: 929
03-04 22:58:47.749: E/AndroidRuntime(22464):    at com.threed.jpct.Logger.log(
03-04 22:58:47.749: E/AndroidRuntime(22464):    at com.threed.jpct.Texture.loadTexture(
03-04 22:58:47.749: E/AndroidRuntime(22464):    at com.threed.jpct.Texture.loadTexture(
03-04 22:58:47.749: E/AndroidRuntime(22464):    at com.threed.jpct.Texture.<init>(

Please tell me supported texture width.

Prakash V

Support / 3d model limitations
« on: March 04, 2013, 06:17:07 pm »

  We have integrated the JPCT-AE engine with vuforia qualcomm for image recognition and displaying the 3d model.

 Can you please provide the how many polygon count it will support and texture size. If there are any other limitations please provide it.

  Thanks in advance.

Prakash V

Pages: [1] 2