Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Doesn't show OpenGL in Android

    Mobile and Embedded
    3
    7
    950
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Carolinabustillo 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?

      1 Reply Last reply Reply Quote 0
      • L
        Leonardo last edited by

        Not all devices can run OpenGL properly. Have you tried another device?

        1 Reply Last reply Reply Quote 0
        • C
          Carolinabustillo 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

          1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion last edited by

            Hi
            Can it be whatever you are using to load the OBJ files?
            Have you tried drawing something natively ?

            1 Reply Last reply Reply Quote 0
            • C
              Carolinabustillo last edited by

              Hi @mrjj, I'm not sure what you mean by draw natively? Can you tell me an example?

              mrjj 1 Reply Last reply Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion @Carolinabustillo last edited by

                @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)

                1 Reply Last reply Reply Quote 0
                • C
                  Carolinabustillo 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?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post