- Fri Oct 16, 2015 2:46 pm
#388901
When I export scene from Maxwell Render Plugin for Daz Studio
scene always exported with IBL Settings ScreenMapping on.
This is a part of a code.
scene always exported with IBL Settings ScreenMapping on.
This is a part of a code.
Code: Select all
if you want I can put plugin for testing. (Now it under development)mxEnvironment.setEnvironmentWeight(iblSettings->getFloatValue("Intensity"));
mxEnvironment.setEnvironmentLayer(maxwellrender::EnvironmentLayer::IBL_LAYER_BACKGROUND,
iblSettings->getStringValue("BackMap").toLocal8Bit().data(),
iblSettings->getIntValue("BackType"),
false,
iblSettings->getBoolValue("Interpolation"),
iblSettings->getFloatValue("BackIntensity"),
iblSettings->getFloatValue("BackScaleFrom"),
iblSettings->getFloatValue("BackScaleTo"),
iblSettings->getFloatValue("BackOffsetFrom"),
iblSettings->getFloatValue("BackOffsetTo"));
mxEnvironment.setEnvironmentLayer(maxwellrender::EnvironmentLayer::IBL_LAYER_REFLECTION,
iblSettings->getStringValue("ReflMap").toLocal8Bit().data(),
iblSettings->getIntValue("ReflType"),
iblSettings->getBoolValue("ScreenMapping"),
iblSettings->getBoolValue("Interpolation"),
iblSettings->getFloatValue("ReflIntensity"),
iblSettings->getFloatValue("ReflScaleFrom"),
iblSettings->getFloatValue("ReflScaleTo"),
iblSettings->getFloatValue("ReflOffsetFrom"),
iblSettings->getFloatValue("ReflOffsetTo"));
mxEnvironment.setEnvironmentLayer(maxwellrender::EnvironmentLayer::IBL_LAYER_REFRACTION,
iblSettings->getStringValue("RefrMap").toLocal8Bit().data(),
iblSettings->getIntValue("RefrType"),
iblSettings->getBoolValue("ScreenMapping"),
iblSettings->getBoolValue("Interpolation"),
iblSettings->getFloatValue("RefrIntensity"),
iblSettings->getFloatValue("RefrScaleFrom"),
iblSettings->getFloatValue("RefrScaleTo"),
iblSettings->getFloatValue("RefrOffsetFrom"),
iblSettings->getFloatValue("RefrOffsetTo"));
mxEnvironment.setEnvironmentLayer(maxwellrender::EnvironmentLayer::IBL_LAYER_ILLUMINATION,
iblSettings->getStringValue("IllumMap").toLocal8Bit().data(),
iblSettings->getIntValue("IllumType"),
iblSettings->getBoolValue("ScreenMapping"),
iblSettings->getBoolValue("Interpolation"),
iblSettings->getFloatValue("IllumIntensity"),
iblSettings->getFloatValue("IllumScaleFrom"),
iblSettings->getFloatValue("IllumScaleTo"),
iblSettings->getFloatValue("IllumOffsetFrom"),
iblSettings->getFloatValue("IllumOffsetTo"));
}