[Bf-vfx] Formats and Color

Peter Schlaile peter at schlaile.de
Sun Apr 8 15:45:37 CEST 2012


Hi Andrew,

I have problems to understand some of your text:

> Perhaps the greatest challenge to supporting ACES in Blender is the need to
> excise most of the image loading and color related code. 

I see three points, where we have to add color management stuff:

a) at image/movie load time
   for the 8 bit pipeline it should integrate with swscaler/ffmpeg
   and should be changeable by the user.

b) at display time
   preview displays should be able to switch between output profiles.

c) at render output time
   again: configurable for the user.

It doesn't look like a really big change to me. Since I'm currently in
the need of adding technicolor cinestyle support for my Canon EOS 5D,
does anyone mind, if I start coding, starting with xat's branch, which
seems to use OCIO?

> Looking at the
> comments on the mango blog about how the author of the DPX code didn't know
> that there were more than one log curve that could be used shows the folly
> of embeding that transform at that level. If something isn't correct, there
> is no way for the user to adjust.

I don't think, bashing developers helps a lot. What you should keep in
mind: color space transformations can be done very fast on input data,
but are pretty slow on float, so the best place is on file load using
look up tables.

At least, for a CPU implementation. For GPU, it doesn't really matter.

That said: sure, the user should be able to control, which profile is in
use.

> With the current incomplete colour management system, blender's dicotomy of
> SRGB or srgb primaries with linear gamma concept would need to be removed.
> Also, ACES explicitly requires the support for HDR values (the +- 16 bit
> floating point range) internally and only clamps to a 0-1 range using the
> RRT.

The float pipeline already has that feature. Correct me if I'm wrong.

> As for reading F65 Raw, only applications that use the Sony SDK (like
> Davinci Resolve) will support the raw files natively.

<troll>
Hmm, well, sure. Only applications that have support for a certain
format can read it.
</troll>

> In, Raw is inappropriate for heavy VFX work, I will elaborate on the
> reasons why later in the mail. It is however useful for colour grading.

Reading the rest of your post, I still haven't understood, why "Raw is
inappropriate for heavy VFX work".

I do know, that most studios don't use RAW data for that, but that has
to do with decoding speed to my knowledge. (It's simply faster to do all
the grading work on HD proxies and use the RAW data in the conforming
step at the end.)

In fact, regarding the data size we are talking about, I think, direct
support for F65 RAW files is a pretty clever thing.

Especially, since you can do certain color transformations on RAW files,
which aren't that easy/possible after the debayering step. (White
balance comes to mind.)

> > What software is currently using opencolorIO with f65 support?
> > Did you try to read in the data we posted and process it?
> 
> Nuke and the rest of the foundry apps. Beta support for After Effects and
> Blender :)

Beta support on Blender?

> Raw is raw :) 

Ouch. Read my other post on that one.

> That all the secret sauce that camera manufacturers used to
> put in hardware to hid as much of that as possible is gone. Your seeing
> what the sensor sees and sometimes that means lots of noise. It would be
> worth looking into what processing you might have to do prior to the
> exporting of the OpenEXR files.

What you see is, sensor data (which differs between cameras) piped
through a compression scheme (which isn't lossless at least for RED
cameras), cooked up by debayering, which adds some / a lot of softness,
if it doesn't do it's job correctly / has been configured the wrong way.

> On top of that, many camera manufacturers apply some form of compression to
> the raw frame to further reduce the data rate. Red, for example, uses a
> form of wavelette compression similar to jpeg2000. I am not certain if Sony
> employes their own compression scheme.

They do :)

> As to why I think raw isn't suitable for heavy vfx, the advantages derived
> from the above features, namely flexibility and parameters that arn't
> baked, can be a hinderance.

Why?

> As for the SDK, there was initially rumors of Sony open sourcing it or
> releasing it under a permissive licence. Unfortunately, this was corrected
> by Sony to mean that it would be shared with select 3rd parties.
> 
> Talking to Sony would be wonderful, especially if they engage the larger
> Blender community openly.
> 

Indeed :)

Cheers,
Peter



More information about the Bf-vfx mailing list