Hi guys,
I`m trying to setup a proper export pipeline for cryengine, which requires for the normal map with gloss to be saved as _ddna, albedo as _diff and specular as _spec. How can I define suffixes like that in export or in the calibration profile?
btw the current cryengine calibration seems off. Below is what I think should be correct (copies gloss to normal alpha). Also: shouldn't the y be flipped in the projects settings for cryengine? cryengine expects -y while xnormal is supposed to provide ddo with an +y normal?
cheers,
Chris
#include common/functions.jsx
// Exports maps for CryEngine
// Uses Gloss (instead of Roughness)
// Supports Metalness
// Bumps Normal
function Calibrate()
{
var mapType = GetMapType();
switch(mapType)
{
case "Normal":
case "Bump":
var normal = GetBumpedNormal(mapType);
AddAlphaMap(normal, "Gloss");
return normal;
case "Gloss":
var gloss = GetMergedMap();
ApplyGGXCurve(true);
return null;
default:
return GetMergedMap();
}
}
function Finish()
{
}
Replies
I've uploaded the files here:
http://quixel.se/suite/CryEngine.jsx (goes in script/calibration)
http://quixel.se/suite/functions.jsx (goes in script/calibration/common)
This will now be part of 1.7. Let me know if it does not work as expected and I'll fix it up ASAP.
- Teddy
thanks for the updated files! Works like a charm!
-Chris
- Teddy