jPCT-AE - a 3d engine for Android > Support
JPCT + Vuforia in stereo rendering mode
thejauffre:
Hi everybody,
I'm working on a project in which I have to perform stereo rendering (using smartglasses and/or a VR viewer) using Vuforia and JPCT-AE. I am working on the DigitalEyewear example.
I followed the instructions to integrate Vuforia and JPCT in the mono rendering case, as explained in the wiki, and tried to replicate them to the stereo-rendering without success.
This is what I understood: in the mono-rendering, I just had to find the modelview matrix associated to an image target, then update the JPCT camera and start the rendering. I tried the same for the stereo case, taking into account that Vuforia has to simulate the views of the two eyes, using two virtual camera FOVs; this kinda works, but the object is not correctly displaced in the scene (i.e. I expect it to be on the origin, but it is somewhere else).
I tried to solve this problem in several ways (i.e. rotating/rescaling the modelview matrix or multiplying it by a projection matrix) but it doesn't work.
Any ideas? Thanks.
EgonOlsen:
The approach sounds reasonable, I guess. Is the object rotated correctly and "just" the translation is wrong!?
thejauffre:
Well, if I use just the modelview matrix to update the camera, i don't even see the object.
If I rotate the modelview matrix of -90 degrees about x axis, I can see it, in a wrong position/rotation of course (but at least it is visible).
EgonOlsen:
...and in "mono"-view, it works?
thejauffre:
Yes, if I use just the modelview matrix without any modification (as in the wiki) the object is displaced correctly.
Navigation
[0] Message Index
[#] Next page
Go to full version