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

ObjectGradient does not work correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.0
    • 6.6
    • Graphs: 3D
    • None
    • 999d08648 (dev)

    Description

      With colorStyle Theme3D.ColorStyleObjectGradient the gradient is used as a texture in PrincipledMaterial. That approach does not work out-of-the-box, as we need to apply the gradient based on the pixel height in the model.

      We have 2 options:

      1. Hand-craft (or use blender -magic) the UV coordinates for all our models so that the texture is always applied in the correct way
      2. Create a custom material that samples the color from the gradient texture and applies it based on the y position of the fragment in model space

      Option #2 would be better, as we should be able to use that directly with all the graph types. Option #1 would work only with bars and scatter, but surface would still need its own shader.

      Attachments

        There are no Sub-Tasks for this issue.
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tokorpip Tomi Korpipää
            tokorpip Tomi Korpipää
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes