Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54994

A lot of problems with lights and materials in OpenGL ES

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 RC
    • 5.7, 5.8
    • Qt3D
    • None
    • Android 4.4.4 (OpenGL ES 3.0 V@45.0)
      Windows 7 x64 SP1, Nvidia GeForce GT 630
    • Android
    • 7261606116768d563c0e49a23ca60ab367a4cab5

    Description

      Examples "materals" and "lights" are not displayed correctly on Android 4.4.4 (OpenGL ES 3.0).
      In original entities are too dark to be distinguished:

      ("materals" example - show just black screen)

      1. First of all - changing intensity of lights is not affect on anything in any following scenarios.
      By the way, that's why I have different level of entities brightness on desktop and android I wrote about in interest mailing list: http://lists.qt-project.org/pipermail/interest/2016-June/022994.html,
      and why I have to increase ambient component of DiffuseMapMaterial in android version.

      2. There something wrong with NormalDiffuseMapMaterial and NormalDiffuseSpecularMapMaterial. If I set maximum ambient to PlaneEntity in "lights" example (or PlaneEntity in "materals") in efforts to make it lighter and distinguished, I got white plane:

      3. When I change those materials to DiffuseMapMaterial (with maximum ambient) and run apps - I got almost black screen (just a few silhouette of entities), until I remove SpotLight from the scene.
      And only on this moment PlaneEntity "appears":

      Then, one needs to set maximum ambient to other materials one by one. And for now make them DiffuseMapMaterial, because as I mentioned before NormalDiffuseMapMaterial and NormalDiffuseSpecularMapMaterial - will get pure white result - see barrel on the screenshot):

      In other hand, on desktop everything looks perfect (where OpenGL 3.1 shaders are used).

      I use latest qt 3d 5.7 (c3fdb888fbd94de0f6b7b1a6859cba8132ecc93d) with those 4 not yet merged commits (to be able to run applications on android)

      1. https://codereview.qt-project.org/#/c/164993/2
      2. https://codereview.qt-project.org/#/c/164994/2
      3. https://codereview.qt-project.org/#/c/164995/2
      4. https://codereview.qt-project.org/#/c/164996/

      Attachments

        1. image-corrections.png
          image-corrections.png
          201 kB
        2. image-diffuse.png
          image-diffuse.png
          379 kB
        3. lights-original.png
          lights-original.png
          15 kB
        4. Mi2_android4.4.4_OpenGL_Viewer.png
          Mi2_android4.4.4_OpenGL_Viewer.png
          93 kB
        5. Mi2_dumpsys_SurfaceFlinger.log
          17 kB
        6. normalspecularmap.png
          normalspecularmap.png
          16 kB
        For Gerrit Dashboard: QTBUG-54994
        # Subject Branch Project Status CR V

        Activity

          People

            mauro.persano Mauro Persano
            lukegluke Oleg
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes