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

Pages: [1]
Support / Re: Problem with object position
« on: January 23, 2018, 01:32:43 pm »
Ok, the problem was a rotation... In fact, rotating each object, the result appeared translated.
I solved using a Parent object, and applying the rotation only to it.

Support / Problem with object position
« on: January 23, 2018, 11:50:07 am »
I have a problem when loading some OBJ files. I'm using JPCT-AE and Vuforia. In the same world, I have to render 2-3 objects, that I export from the same scene in 3ds max.
The problem is in the positioning: even if an object has position (0,0,0) in 3ds, when I load multiple objects in JPCT the position is not correct. The objects are somehow translated. But when I load a single object, it is in the correct position.
Am I missing something?
Thanks in advance for your help.

Support / Re: Problem with rendering
« on: January 19, 2018, 06:16:55 pm »
I managed how to solve the problem.
Vuforia uses a custom shader to render the background plane, defined in their VideoBackgroundShader class.
In the vertex shader, I had just to add a translation along the z component of the gl_Position vector.

Support / Re: Problem with rendering
« on: January 19, 2018, 12:48:14 pm »
I think I understood this problem: Vuforia uses a plane, rendered with OpenGLES, where it draws the camera input. My impression is that this plane "cuts" the teapot when I move the device around the target, or shows nothing when the plane is between the camera and the target.
Vuforia creates the plane by using some JNI calls, and I don't know if I can set the distance between camera and plane; i'll contact their support forum, and bring here the solution (if any).

Support / Re: Problem with rendering
« on: January 18, 2018, 04:52:07 pm »
To integrate Vuforia and JPCT I followed this (
I did some more research; apparently, Vuforia's renderer (used to render the video background) performed "GLES20.glDisable(GLES20.GL_DEPTH_TEST)" before JPCT's rendering.
Moving that glDisable command at the end of renderFrame solves the original problem.
Now I have another: the rendering of the teapot is shown only when I am close to the target, but not too close. I think it is related to the clipping planes, but if I change the values of world.setClippingPlanes or cam.setClippingPlanes there's no difference.

Support / Problem with rendering
« on: January 18, 2018, 11:42:48 am »
Hi everybody,
I'm developing an Android AR application using Vuforia (for target recognition) and JPCT-AE for the rendering of 3D objects.
I have a problem with depth sorting: when I try to render a teapot, it shows also elements that should not be present (like the handle, when I look at the teapot facing the beak).
I searched over internet, and (if I understood correctly) it is related to OpenGL and how it manages the depth rendering. However, even if I added some lines to the code (when I initialize the renderer):
Code: [Select]
it didn't change. Can you help me?
Anyway, thanks for your amazing work.

Pages: [1]