Hello all,
We successfuly integreated the REVU engine for my project and works fine for static 3d model on target.
https://github.com/DrNeuroSurg/REVu
How to show a 3d model on center of device screen when the camera is moved away from the target?
How to get the modelViewMatrix values for screen center position to render 3d model on center screen?
And we tried with identity matrix below values
myMatrix.data[0] = 1.0;
myMatrix.data[1] = 0;
myMatrix.data[2] = 0;
myMatrix.data[3] = 0;
myMatrix.data[4] = 0;
myMatrix.data[5] = 1.0;
myMatrix.data[6] = 0;
myMatrix.data[7] = 0;
myMatrix.data[8] = 0;
myMatrix.data[9] = 0;
myMatrix.data[10] = 1.0;
myMatrix.data[11] = 0;
myMatrix.data[12] = 0;
myMatrix.data[13] = 0;
myMatrix.data[14] = modelViewMatrix.data[14];//if not assigned z axis nothing shown on center
myMatrix.data[15] = 1;
3d models on center screen but showing backside view (bottom or opposite view)
Could you please direct me to fix this issue.
Thanks in advance,
P.Uthaman
3d model on center of device screen
I am not sure there is anybody here that can help you.
One possibility is that order of polygons is in the wrong order e.g. clockwise instead of counterclockwise. This might explain why you are seeing the back faces of the model.
N