Photographer - Camera Exposure, White balance and Autofocus

add-ons

(chafouin) #1

Hello!

I am releasing my first addon for Blender: Photographer! What does it do?

  • Adds Camera Exposure controls, per camera
  • Adds Camera White Balance, per camera
  • Adds Render resolution and Ratio presets, per camera
  • Adds Autofocus Single and Autofocus Continuous to your camera
  • Control Motion Blur using Shutter speed or Shutter angle

blender_2018-05-07_00-39-21

And the autofocus buttons in the 3d view header/footer

You can learn more about it by watching these videos:

Download it from here: https://drive.google.com/file/d/1rT_gUTF88XVSNim15caLpG6Xzhkwrzfv/view?usp=sharing

Please note that the Official Blender version will require you to reapply the camera settings manually in some cases. Nightly builds will refresh the Photographer settings automatically like in the video.

! Experimental 2.8 version available HERE thanks to joemoehobo !

Latest version for 2.79: 2019/01/9 : 1.2.2.

1.2.2:

  • Fixed typo, this is unforgiveable.

1.2.1:

  • Fixed error if there are no cameras in the scenes.

1.2.0:

  • New exposure calculation: previous formula was incorrect, it is now fixed and makes EV stops work is a realistic manner.
    However, updating will affect the exposure of the scenes you had already worked on. Sorry for the inconvenience.
  • New nightly builds have got a fix for extended exposure range (now 64 stops, used to be 20), which allows the addon to work even for exposure that use to be out of realistic range. Feel free to upgrade your blender.
  • Fixed bug that would override Color Management Exposure even if Photographer Exposure control was turned off.
  • Fixed bug where using Shutter Speed presets would not update the EV guide properly.

1.1.4:

  • More accurate Color Picker
  • If the raycast fails for whatever reason, it will now throw an error and not keep you locked with the picker icon.

1.1.3:

  • Fixed context error that affected Resolution settings.

1.1.2:

  • Now using Modal Timer to apply settings, works similar for nightly and official builds. Much more optimized for the CPU.

1.1.1:

  • Adds support for real camera values in a drop down menu instead of sliders
  • Adds addon preferences to pick default behaviors

1.1.0:

  • Adds motion blur controls using shutter speed or shutter angle

1.0.4:

  • Addon will now work for both nightly builds and official blender versions, no need to install a different version.
  • Supports Troy Sobotka Filmic color profile (https://github.com/sobotka/filmic-blender). This is a slightly different implementation from the official 2.79 one (watch Bartek Skorupa’s explanation here: https://youtu.be/kVKnhJN-BrQ?t=24m35s )
  • Hides focus distance in 3D view header when AF-C is active to avoid confusion.

1.0.3:

  • Removed Photographer Panel button to avoid confusion with AF buttons.

Thanks to lacilaci86 and lsscpp for testing and giving feedback.
Let me know if you encounter any issue or if you have suggestions!


How to find Real Camera 2
Middle grey card - setting scene exposure
(Peetie) #2

I tried Blender 2.79 and 2.79b. Got this error:
AttributeError: Writing to ID classes in this context is not allowed: Camera, Camera datablock, error setting Camera.dof_distance

When I click the checkbox in the Camera object Data tab, all settings dissapear.

Any idea what is could be?


(chafouin) #3

Official versions seem to be, rigthfully so, more picky than the nightly builds. I’ll try to fix it ASAP.

EDIT: Fixed the issue.
If you want to make sure that the camera settings update properly when changing active cameras, please use the Make Active button in the Photographer panel.

You will also have to manually Reapply the settings if you changed the other properties in the Scene or cameras… this is less than ideal.


(Lsscpp) #4

Congratulations Fabien! Nice work.
I especially love the per camera resolution feature. An invaluable addition to Blender imho.


(Peetie) #5

Thanks, after the fix it works now.
I will experiment with it. So far I enjoy the whitebalance and ratios.


(lacilaci86) #6

I love it!


(chafouin) #7

I noticed the AF-C could spam an error, it’s fixed now!


(malc615) #8

Thanks.
This is just what I have been waiting for,
absolutely brilliant.


(wilBr) #9

great features… exposure per camera mainly. thank you


(hris) #10

Very good addon - it’s so helpfull to find a mood a final render:)
Are You planning add some features like Corona VFB has? Contrast, some corrections for highlights (highlight compress), filmic highlight and filmic shadows, saturation, or some vignette and LUT or glow and bloom? It’s so potential addon, man - You’ve opened new ways to preparing renders in blender:)


(Lsscpp) #11

Well the full potential of an addon like this, would be to have the entire color management and render settings bound to cameras, or to word it better, have those settings overridable per-camera.
But hey! It’s version 1.0 :wink:


(Dito) #12

Wonderfull, a Time and Color Saver.


(chafouin) #13

As you may have noticed, the white balancing is only controlling White Levels of the Curves in the Color Management. Anything that can be done with curves is doable:

  • Contrast should be pretty easy. You do have different contrasts available to you in the Look menu, although I have to admit they are not very flexible, and not per camera (only per scene)

  • As far as I understand, Filmic shadows works like contrast… would have to test it to know what it does exactly.

  • Highlight compress should be doable, although not sure it’s really needed if you use Filmic tonemapping…

  • Saturation can’t be done with curves. Although the same way you can use LUTs for contrasts, we could have different levels of saturation there and control it per camera…

  • LUTs… to be honest I wished there was an easier way to make LUTs for Blender. Exporting Cube files from Resolve is pretty straight forward, but having to convert them to spi3d LUTs is kind of a pain. Because the functionality is already there, you can copy any OCIO LUTs to Blender\2.79\datafiles\colormanagement\filmic and you’re set.

  • Vignette, glow and bloom: these are post effects, easily done in the Compositor as you probably know, but not possible to do in the Viewport with the way Blender works right now. Probably needs C++ features. Hopefully bloom can be added in 2.8 as a post pass as it already exists for Eevee.


(chafouin) #14

Googling about generating spi3d files, I came across this really AMAZING tool: http://cameramanben.github.io/LUTCalc/LUTCalc/index.html
Oh god, this is so perfect.


(carlosan) #15

Nice work ! Thx !


(urkokul) #16

Great work. Thanks


(djwaterman) #17

This is really nice to work with.


(chafouin) #18

Thanks! I noticed that the AF-C would not work if the Photographer panel was turned off, so I removed the Panel button entirely. It was just adding complexity for no real reason.


(chafouin) #19

Noticed some errors when turning on and off the addon, this should be fixed now in the latest version. Sorry for the inconvenience.

FYI, the Focus Distance in AF-C doesn’t always update in realtime in the 3D view header, you have to do an action (like mouse click) or move the mouse over it to refresh. But don’t worry, the focus is done properly.
I’m looking for an elegant solution to refresh the UI in a cheap manner.


(Toudou) #20

Very Good! This is what I want.
Thanks you for sharing!