Hi.. Thanks for your reply.. Yes..I did try rotating the modelViewMatrix by 90 along Z-axis.
if (isActivityInPortraitMode){
SampleUtils::rotatePoseMatrix (90.0f, 0, 0, 1.0f, &modelViewMatrix.data[0]);
}
SampleUtils::rotatePoseMatrix(180.0f, 1.0f, 0, 0,
&modelViewMatrix.data[0]);
Theoritically, this should work but it seems, this solution is not working. I am unable to determine where its going wrong.
This is code from Rajawali3D integration with Vuforia.. This is working properly in both Landscape and portrait mode:
if (isActivityInPortraitMode)
Utils::rotatePoseMatrix(90.0f, 0, 1.0f, 0,
&modelViewMatrix.data[0]);
Utils::rotatePoseMatrix(-90.0f, 1.0f, 0, 0, &modelViewMatrix.data[0]);
There is different logic in Rajawali. I have attached cpp and java file of Rajawali in case you want more info:
Too sad 2 people on Vuforia forum asked me to move to Rajawali bcz of this problem
.. but I want to use jpct. Once this problem is resolved I will make a complete project on Integration for everyone use
[attachment deleted by admin]