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.


Messages - penprakash

Pages: [1] 2
1
Support / Re: when i load obj file without mtl definition
« on: September 05, 2013, 05:37:56 pm »
It doesn't have any texture information and i applied the additional color as

model.setAdditionalColor(new RGBColor(190, 190, 190));

but, still it is displaying in white color.

Prakash V

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

  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

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

 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

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

 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);
                        fs.close();
                        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);
                        }
                           
                        texture2.enable4bpp(true);
                        com.threed.jpct.Texture.defaultToMipmapping(false);
                        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

5
Support / Re: Model is shrinking
« on: August 07, 2013, 07:37:22 am »
This is the model view matrix

modelViewMat[0] = -0.067105055
modelViewMat[1] = -0.99767137
modelViewMat[2] = -0.01219984
modelViewMat[3] = 0.0
modelViewMat[4] = 0.48932555
modelViewMat[5] = -0.02225201
modelViewMat[6] = -0.87181735
modelViewMat[7] = 0.0
modelViewMat[8] = -0.06447304
modelViewMat[9] = 0.86951566
modelViewMat[10] = 0.48967934
modelViewMat[11] = 0.0
modelViewMat[12] = -59.461468
modelViewMat[13] = 115.306206
modelViewMat[14] = 748.9304
modelViewMat[15] = 1.0

6
Support / Re: Model is shrinking
« on: August 06, 2013, 04:22:01 pm »
I haven't set any rotation matrix to the model object,  and below value was present in the rotation matrix
rotationMatrix[0] = 1.0
rotationMatrix[1] = 0.0
rotationMatrix[2] = 0.0
rotationMatrix[3] = 0.0
rotationMatrix[4] = 0.0
rotationMatrix[5] = 1.0
rotationMatrix[6] = 0.0
rotationMatrix[7] = 0.0
rotationMatrix[8] = 0.0
rotationMatrix[9] = 0.0
rotationMatrix[10] = 1.0
rotationMatrix[11] = 0.0
rotationMatrix[12] = 0.0
rotationMatrix[13] = 0.0
rotationMatrix[14] = 0.0
rotationMatrix[15] = 1.0

is this you mean?

Prakash V

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

 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

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

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

9
Support / Re: how to stop rotation on object
« on: August 01, 2013, 03:48:05 pm »
When i move the camera to 90 degree down direction the model object is displayed as 2d image and increase the down side the object is rotating from front to back. Can you please tell me why it is? or is possible to make it static position?

10
Support / Re: how to stop rotation on object
« on: July 30, 2013, 03:40:57 pm »
onTouch event is not working when i set the billboard.

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

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

Prakash V

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

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

 model.align(camera)

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


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

 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

14
I have to know whether user clicked on the model/object instead of the screen.

15
Hi,

 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

Pages: [1] 2