"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Camera feed color with PBR workflow and OpenGL 3

I have a AR project with Unity 5.6.1f1, Vuforia 6.2.10, with OpenGL 3 as we are using the PBR workflow.

Vuforia support for OpenGL 3 was a breeze as PBR really punch the visual quality of the 3D models, very happy with it.

A non critical question I want to ask is that when using linear space instead of gamma for the PBR workflow the AR camera feed (not the augmentation, the real background) gets more "white tinted" than when using the gamma color space which make it look less natural or weird. I know this is expected due to the switch to the linear space, however I was wondering if there are any options to render the camera feed in gamma space or apply a color correction to it (if it is not a heavy process for the device) so the camera feed looks more natural.

 

Thanks!

I am attaching two sample screenshots taken from the device using our app (with no augmentation) to explain the differences in color between both color spaces.

 

johanboekhoven

Tue, 07/04/2017 - 12:26

Yes, this is totally possible with a custom shader on the BackgroundPlane.

I copied the code from some place I can't remember unfortunately so I can't claim this shader as my own, but it works fine.
 

It works like a charm.

I would like to add that starting at Vuforia 6.5, you have to do this by selecting the ARCamera, clicking the "Open Vuforia Configuration" button and dragging the shader to the "Video Background Shader" slot.

Thank you again!

Attachment