small tweaks to make everything build on win32 again.
parent
a4b188c29c
commit
1488e1b437
47
.hgignore
47
.hgignore
|
@ -1,25 +1,34 @@
|
||||||
Mitsuba.app
|
^Mitsuba.app/.*$
|
||||||
|
.*\.obj$
|
||||||
.*\.os$
|
.*\.os$
|
||||||
.*\.pyc$
|
.*\.pyc$
|
||||||
.*\.o$
|
.*\.o$
|
||||||
|
.*\.exe$
|
||||||
|
.*\.manifest$
|
||||||
|
.*\.exp$
|
||||||
|
.*\.dylib$
|
||||||
.*ui_.*\.h$
|
.*ui_.*\.h$
|
||||||
.*moc_.*\.cc$
|
.*moc_.*\.cc$
|
||||||
.*qrc_.*\.cc$
|
.*qrc_.*\.cc$
|
||||||
.*\.dylib$
|
.*/\.DS_Store^
|
||||||
\.DS_Store
|
^\.sconf_temp/.*$
|
||||||
sconf_temp
|
^config.py$
|
||||||
mitsuba
|
^config.log$
|
||||||
mtsgui
|
^.sconsign.dblite$
|
||||||
mtssrv
|
^src/utils/addimages$
|
||||||
mtsimport
|
^src/utils/createvol$
|
||||||
.*\.exe
|
^src/utils/dumpimage$
|
||||||
config.py
|
^src/utils/joinrgb$
|
||||||
config.log
|
^src/utils/ssalbedo$
|
||||||
.sconsign.dblite
|
^src/utils/ttest$
|
||||||
src/utils/addimages
|
^src/utils/utils_test$
|
||||||
src/utils/createvol
|
^dist/.*$
|
||||||
src/utils/dumpimage
|
^mitsuba$
|
||||||
src/utils/joinrgb
|
^mtssrv$
|
||||||
src/utils/ssalbedo
|
^mtsgui$
|
||||||
src/utils/ttest
|
^mtsimport$
|
||||||
src/utils/utils_test
|
^src/.*\.lib$
|
||||||
|
^src/.*\.dll$
|
||||||
|
^plugins/.*\.lib$
|
||||||
|
^plugins/.*\.dll$
|
||||||
|
tools/windows/mitsuba_res.res
|
||||||
|
|
|
@ -761,7 +761,7 @@ void GLWidget::paintGL() {
|
||||||
Float logLuminance, maxLuminance, unused;
|
Float logLuminance, maxLuminance, unused;
|
||||||
m_luminanceBuffer[target]->getPixel(0, 0).toLinearRGB(logLuminance, maxLuminance, unused);
|
m_luminanceBuffer[target]->getPixel(0, 0).toLinearRGB(logLuminance, maxLuminance, unused);
|
||||||
logLuminance = std::exp(logLuminance / (size.x*size.y));
|
logLuminance = std::exp(logLuminance / (size.x*size.y));
|
||||||
if (std::isnan(logLuminance) || std::isinf(logLuminance)) {
|
if (ubi_isnan(logLuminance) || std::isinf(logLuminance)) {
|
||||||
SLog(EWarn, "Could not determine the average log-luminance, since the image contains NaNs/infs/negative values");
|
SLog(EWarn, "Could not determine the average log-luminance, since the image contains NaNs/infs/negative values");
|
||||||
logLuminance = 1;
|
logLuminance = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ void RenderSettingsDialog::update() {
|
||||||
if (samplerProps.hasProperty("sampleCount"))
|
if (samplerProps.hasProperty("sampleCount"))
|
||||||
sampleCount = samplerProps.getInteger("sampleCount");
|
sampleCount = samplerProps.getInteger("sampleCount");
|
||||||
else if (samplerProps.hasProperty("resolution"))
|
else if (samplerProps.hasProperty("resolution"))
|
||||||
sampleCount = std::pow(samplerProps.getInteger("resolution"), 2);
|
sampleCount = (int) std::pow((Float) samplerProps.getInteger("resolution"), (Float) 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_integratorNode = m_model->updateClass(m_integratorNode,
|
m_integratorNode = m_model->updateClass(m_integratorNode,
|
||||||
|
@ -208,7 +208,7 @@ void RenderSettingsDialog::update() {
|
||||||
if (treeItem->getName() == "sampleCount") {
|
if (treeItem->getName() == "sampleCount") {
|
||||||
treeItem->setValue(sampleCount);
|
treeItem->setValue(sampleCount);
|
||||||
} else if (treeItem->getName() == "resolution") {
|
} else if (treeItem->getName() == "resolution") {
|
||||||
treeItem->setValue((int) std::sqrt(sampleCount));
|
treeItem->setValue((int) std::sqrt((Float) sampleCount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue