Hi all. I'm in need of some assistance regarding the way VFB handles lin2log conversion.
I'm trying to replicate this effect in After Effects, to make sure I'm getting the same result using log luts there as in the VFB.
Looking at the convert code in vraylut.cpp shows that the standard values of 95 black and 685 white going from linear to log:
...
static float convert_lin2log(float linValue, float cinBlack, float cinWBdiff) {
float res=log10f(cinBlack+linValue*cinWBdiff)/3.41f;
return res;
...
...
float blackCode=95.0f;
float whiteCode=685.0f;
float cinBlack=powf(10.0f, blackCode*0.002f/0.6f);
float cinWhite=powf(10.0f, whiteCode*0.002f/0.6f);
float cinWBdiff=cinWhite-cinBlack;
...
Now, I'm not pretending to understand C++ and whatever is going on in this code, I just wanted to look for any clue as to which cineon convert settings VFB uses.
So, to my problem when applying the same settings on a Cineon Converter plugin in After Effects, I get really different results then what Vray does, with the same convert settings:

However, eyeballing a little I can get closer:

But I never seem to get it exact.
I can only test this in After Effects, but I guess Cineon Conversion is the same across all grading applications. Or maybe each one handles this differently?
Anyway, any feedback on this would be much appreciated.
Thanks!
I'm trying to replicate this effect in After Effects, to make sure I'm getting the same result using log luts there as in the VFB.
Looking at the convert code in vraylut.cpp shows that the standard values of 95 black and 685 white going from linear to log:
...
static float convert_lin2log(float linValue, float cinBlack, float cinWBdiff) {
float res=log10f(cinBlack+linValue*cinWBdiff)/3.41f;
return res;
...
...
float blackCode=95.0f;
float whiteCode=685.0f;
float cinBlack=powf(10.0f, blackCode*0.002f/0.6f);
float cinWhite=powf(10.0f, whiteCode*0.002f/0.6f);
float cinWBdiff=cinWhite-cinBlack;
...
Now, I'm not pretending to understand C++ and whatever is going on in this code, I just wanted to look for any clue as to which cineon convert settings VFB uses.
So, to my problem when applying the same settings on a Cineon Converter plugin in After Effects, I get really different results then what Vray does, with the same convert settings:
However, eyeballing a little I can get closer:
But I never seem to get it exact.
I can only test this in After Effects, but I guess Cineon Conversion is the same across all grading applications. Or maybe each one handles this differently?
Anyway, any feedback on this would be much appreciated.
Thanks!
Comment