Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
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:
- Hand-craft (or use blender -magic) the UV coordinates for all our models so that the texture is always applied in the correct way
- 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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-112197 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
468783,2 | Add custom material for object gradient | dev | qt/qtgraphs | Status: MERGED | +2 | 0 |