Details
Description
Using same scene in multiple View3Ds in multiple windows doesn't work if there's a custom material in the scene. To reproduce, run the attached example.
It looks like the problem is that QQuick3DCustomMaterial::updateSpatialNode() determines the context when it's first run and the shaders are cached only in that context.
This issue blocks showing custom materials in Design Studio 3D edit view.
QQuick3DEffect::updateSpatialNode() also determines context in similar manner, so it might also have similar issues.
Attachments
Issue Links
- is required for
-
QDS-2203 Custom materials don't work in 3D edit view
- Closed
For Gerrit Dashboard: QTBUG-83889 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
303481,3 | Fix custom material window and property detection | dev | qt/qtquick3d | Status: MERGED | +2 | 0 |
304245,2 | Fix custom material window and property detection | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |
309502,2 | Do not register CustomMaterial shaders in updateSpatialNode | 5.15 | qt/qtquick3d | Status: MERGED | +2 | 0 |