Added .qml and .js for debug

This commit is contained in:
Nissim Hadar 2017-10-02 10:10:29 -07:00
parent 5dd4624904
commit d1488ebfad
2 changed files with 249 additions and 0 deletions

View file

@ -0,0 +1,185 @@
//
// haze.qml
// developer/utilities/render
//
// Nissim Hadar, created on 9/8/2017.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
//
import QtQuick 2.5
import QtQuick.Controls 1.4
import "../utilities/render/configSlider"
Item {
id: root
property var hazeModel: Render.getConfig("RenderMainView.HazeModel")
Column {
spacing: 8
Row {
CheckBox {
text: "Haze Active"
checked: root.hazeModel["isHazeActive"]
onCheckedChanged: {
root.hazeModel["isHazeActive"] = checked;
}
}
CheckBox {
text: "Modulated Color"
checked: root.hazeModel["isModulateColorActive"]
onCheckedChanged: {
root.hazeModel["isModulateColorActive"] = checked;
}
}
}
CheckBox {
text: "Altitude Based"
checked: root.hazeModel["isAltitudeBased"]
onCheckedChanged: {
root.hazeModel["isAltitudeBased"] = checked;
}
}
ConfigSlider {
label: "Range"
integral: false
config: root.hazeModel
property: "hazeRange_m"
max: 10000
min: 5
width: 280
}
ConfigSlider {
label: "Altitude"
integral: false
config: root.hazeModel
property: "hazeAltitude_m"
max: 2000
min: 5
width: 280
}
ConfigSlider {
label: "Haze Color R"
integral: false
config: root.hazeModel
property: "hazeColorR"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Haze Color G"
integral: false
config: root.hazeModel
property: "hazeColorG"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Haze Color B"
integral: false
config: root.hazeModel
property: "hazeColorB"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Sun R"
integral: false
config: root.hazeModel
property: "hazeDirectionalLightColorR"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Sun G"
integral: false
config: root.hazeModel
property: "hazeDirectionalLightColorG"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Sun B"
integral: false
config: root.hazeModel
property: "hazeDirectionalLightColorB"
max: 1.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Sun glare angle"
integral: false
config: root.hazeModel
property: "hazeDirectionalLightAngle_degs"
max: 70.0
min: 0.0
width: 280
}
ConfigSlider {
label: "Base"
integral: false
config: root.hazeModel
property: "hazeBaseReference"
max: 500.0
min: -500.0
width: 280
}
ConfigSlider {
label: "BG Blend"
integral: false
config: root.hazeModel
property: "hazeBackgroundBlendValue"
max: 1.0
min: 0.0
width: 280
}
CheckBox {
text: "Keylight Attenuation"
checked: root.hazeModel["isDirectionaLightAttenuationActive"]
onCheckedChanged: {
root.hazeModel["isDirectionaLightAttenuationActive"] = checked;
}
}
ConfigSlider {
label: "Range"
integral: false
config: root.hazeModel
property: "hazeKeyLightRange_m"
max: 10000
min: 5
width: 280
}
ConfigSlider {
label: "Altitude"
integral: false
config: root.hazeModel
property: "hazeKeyLightAltitude_m"
max: 2000
min: 5
width: 280
}
}
}

View file

@ -0,0 +1,64 @@
//
// surfaceGeometryPass.qml
//
// Created by Sam Gateau on 6/6/2016
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0.html
//
import QtQuick 2.5
import QtQuick.Controls 1.4
import "configSlider"
Column {
spacing: 8
Column {
id: surfaceGeometry
spacing: 10
Column{
ConfigSlider {
label: qsTr("Depth Threshold [cm]")
integral: false
config: Render.getConfig("RenderMainView.SurfaceGeometry")
property: "depthThreshold"
max: 5.0
min: 0.0
}
Repeater {
model: [
"Basis Scale:basisScale:2.0:false",
"Curvature Scale:curvatureScale:100.0:false",
]
ConfigSlider {
label: qsTr(modelData.split(":")[0])
integral: (modelData.split(":")[3] == 'true')
config: Render.getConfig("RenderMainView.SurfaceGeometry")
property: modelData.split(":")[1]
max: modelData.split(":")[2]
min: 0.0
}
}
CheckBox {
text: "Half Resolution"
checked: Render.getConfig("RenderMainView.SurfaceGeometry")["resolutionLevel"]
onCheckedChanged: { Render.getConfig("RenderMainView.SurfaceGeometry")["resolutionLevel"] = checked }
}
Repeater {
model: [ "Diffusion Scale:RenderMainView.SurfaceGeometry:diffuseFilterScale:2.0",
"Diffusion Depth Threshold:RenderMainView.SurfaceGeometry:diffuseDepthThreshold:1.0"
]
ConfigSlider {
label: qsTr(modelData.split(":")[0])
integral: false
config: Render.getConfig(modelData.split(":")[1])
property: modelData.split(":")[2]
max: modelData.split(":")[3]
min: 0.0
}
}
}
}
}