Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Doesn't show OpenGL in Android
QtWS25 Last Chance

Doesn't show OpenGL in Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.3k Views
  • 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 Offline
    C Offline
    Carolinabustillo
    wrote on last edited by
    #1

    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
    0
    • L Offline
      L Offline
      Leonardo
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Carolinabustillo
        wrote on last edited by
        #3

        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
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Carolinabustillo
            wrote on last edited by
            #5

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

            mrjjM 1 Reply Last reply
            0
            • C Carolinabustillo

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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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
              0
              • C Offline
                C Offline
                Carolinabustillo
                wrote on last edited by
                #7

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

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved