Merge pull request #390 from alicevision/dev_lightingEstimation

[nodes] New node `LightingEstimation`
This commit is contained in:
Fabien Castan 2020-12-15 16:36:52 +01:00 committed by GitHub
commit cb9841ddd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 283 additions and 1 deletions

View file

@ -77,7 +77,7 @@ FocusScope {
if (event.key == Qt.Key_F) {
resetCameraPosition();
}
else if(Qt.Key_1 <= event.key && event.key <= Qt.Key_3)
else if(Qt.Key_1 <= event.key && event.key < Qt.Key_1 + Viewer3DSettings.renderModes.length)
{
Viewer3DSettings.renderMode = event.key - Qt.Key_1;
}
@ -290,8 +290,34 @@ FocusScope {
}
}
FloatingPane {
visible: Viewer3DSettings.renderMode == 3
anchors.bottom: renderModesPanel.top
GridLayout {
columns: 2
rowSpacing: 0
RadioButton { text: "SHL File"; autoExclusive: true; checked: true }
TextField {
text: Viewer3DSettings.shlFile
selectByMouse: true
Layout.minimumWidth: 300
onEditingFinished: Viewer3DSettings.shlFile = text
}
RadioButton {
Layout.columnSpan: 2
autoExclusive: true
text: "Normals"
onCheckedChanged: Viewer3DSettings.displayNormals = checked
}
}
}
// Rendering modes
FloatingPane {
id: renderModesPanel
anchors.bottom: parent.bottom
padding: 4
Row {