Hi,
I try to develop a Virtual Reality application using Google's Cardboard Java API.
Do you have any example?
I have a big problem adjusting JPCT's coordination system with Cardboard's Java API coordinate system.
I think the solution exists in the method
public void onDrawEye(Eye eye)
My code is:
@Override
public void onDrawEye(Eye eye) {
com.threed.jpct.Matrix camBack = world.getCamera().getBack();
camBack.setIdentity();
tempTransform.setDump(eye.getEyeView());
tempTransform.transformToGL();
camBack.matMul(tempTransform);
world.getCamera().setBack(camBack);
fb.clear(RGBColor.BLACK);
fb.clearZBufferOnly();
world.renderScene(fb);
world.draw(fb);
fb.display();
}
The Objects3D models added to the world don't look ok according to the XYZ positions a I have set.
I suppose the problem is because JPCT uses a different coordinate system than OpenGL.
Can you suggest a solution?
Thanks in advance