You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the sample code and didn't change anything. When I render the object, the AR logo appears blue in colour. When I double tap it, it becomes yellow. Shouldn't it be orange in colour due to AR_logo.jpg?
I've tried to comment out initGlTextureData(context) in ObjectDisplay.java as such.
` public void init(Context context) {
ShaderUtil.checkGlError(TAG, "Init start.");
createProgram();
You can check the file WorldRenderManager.java from the Demo code of AREngine, and there are 2 methods: doWhenEventTypeDoubleTap and doWhenEventTypeSingleTap.
When single tap the screen, it will render the model with blue color, as in the picture you showed. And when double tap, it will render with the texture file, which is initialized in the ObjectDisplay.java file
Right now my target is to change the texture file and model file. I've tried keeping the AR_logo.obj and changing the .png file to some other texture. Hence, the expected outcome will be the AR logo, but rendered with a different texture on double tap. However, still the same old orange texture. Why is that so?
I've also tried to make the model render with some other colour instead of blue, by changing the value of BLUE_COLORS in WorldRenderManager.java. It still renders as blue.
I used the sample code and didn't change anything. When I render the object, the AR logo appears blue in colour. When I double tap it, it becomes yellow. Shouldn't it be orange in colour due to AR_logo.jpg?
I've tried to comment out initGlTextureData(context) in ObjectDisplay.java as such.
` public void init(Context context) {
ShaderUtil.checkGlError(TAG, "Init start.");
createProgram();
However, still same result. Any fix to this?
I've also tried to use other .obj and .png files, but still the same issue. Thanks in advance!
The text was updated successfully, but these errors were encountered: