It uses 'GLES20.glDrawArrays()' instead of the 'GLES20.glDrawElements()' used in your native sdk sample.
Is there any standards on what shape and APIs of GLES20 needs to be used for rendering in wikitude application? That works well with your MVP uniforms.
NOTE: I am a new user to Open GL ES 2.0
S
Selva Ganesh
said
over 7 years ago
I just checked, It is working in 2D client tracking activity.
When i am trying this with 3D tracking activity, it is not working.
Even the samples Stroked Rectangle is rendered completely at a different location. May be that is the reason.
Can you please tell, how to render the shapes properly in 3D tracking activity and how it is different from standard 2D tracking activity?
A
Andreas Schacherbauer
said
over 7 years ago
Hi Selva, The Wikitude Native SDK uses standard OpenGL ES 2, so you can draw everything that is supported by OpenGL ES 2. For your OpenGL rendering it shouldn't matter if it is 3d tracking or 2d tracking. If the example already renders the augmentation at a different position, then your .wtm file might not be ideal. Can you try to rerecord the scene and verify the result? Maybe the object you try to recognize is not ver well 'trackable'.
Best regards
Andreas
S
Selva Ganesh
said
over 7 years ago
Hi Andreas, Thanks for the reply.
I have tried with various scenes for 3D recording & tracking. I always get the stroked rectangle only when i point the camera way down of the target.
Selva Ganesh