Doesn't show OpenGL in Android
-
wrote on 9 Jan 2018, 18:06 last edited by
Hi!
I have a widget app that runs correctly in my computer (MacOS).
The widget has an openglwidget and I render some objects there. The objects are loaded from a .obj file.When I run my app in my Android phone, it just appears some black lines...and I have no idea why is that.. if I am using functions that are not compatible with Android or if it is deprecated or what.
Can someone help me? -
wrote on 9 Jan 2018, 23:49 last edited by
Not all devices can run OpenGL properly. Have you tried another device?
-
wrote on 11 Jan 2018, 18:42 last edited by
Hi! Thank you for answering!
Yes, I have tried different devices and neither of them shows correctly... I don't know what could be wrong -
Hi
Can it be whatever you are using to load the OBJ files?
Have you tried drawing something natively ? -
wrote on 11 Jan 2018, 18:56 last edited by
Hi @mrjj, I'm not sure what you mean by draw natively? Can you tell me an example?
-
Hi @mrjj, I'm not sure what you mean by draw natively? Can you tell me an example?
@Carolinabustillo
Hi, maybe im just using wrong words.
it sounds like you load OBJ file and draws that.
To test its not the loading/OBJ part, i was wondering to draw a line
or something else simple to see if that shows up.
(as in the opengl view is active) -
wrote on 31 Jan 2018, 10:40 last edited by
@mrjj Hi! I tried what you suggested and It works, then I have tried uploading the app in different android versions and in version 4.3 It shows something, it isn't the correct view but it is something. When you build an app in an android device do you have to copy the .obj files or just having them in your .qrc works?