Jump to content

Issue with white balance when using Varjo 4 / Varjo Base 4.10.2


photo

Recommended Posts

Posted

Hi,

I get a weird behavior about white balance using Varjo 4 / Varjo Base 4.10.2.
The video passthrough using masks started to be blue tinted.
I have to change back in Varjo Base 4.10.2, Mixed reality > white balance to auto to fix the issue.
Each time I start our application, I'll have to proceed this way..
Would you replicate it?
Would you see how I can fix it?

Regards,
Charles

Posted

Hi Charles,

So far we were unable to reproduce it. It's also quite possible that the issue is related to the Varjo Base app itself (especially if it started to appear only after updating Varjo Base to 4.10.2 version).

Could you please give us a step-by-step guide on how to get the blue tinted image inside HMD?

Maybe adjusting vr_mixed_reality_camera_white_balance mode will result in better picture quality? By default 6500K is used.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hi,

Could you use Varjo Base 4.10.2 as well maybe?
At start of our app, Varjo Base > Mixed reality > white balance drop to 2000K and video stream turns pale blue.
Quick fix is to turn back to auto (possibly 6500K). But this setting will be changed again at next start..

In our default.render, we don't set any vr_mixed_reality_xx option.
But we set these 3 settings:
        <render_white_balance>1</render_white_balance>
        <render_white_balance_adaptation_time>1</render_white_balance_adaptation_time>
        <render_white_balance_intensity>0.300000012</render_white_balance_intensity>

Regards,
Charles

Posted

Hi Charles,

Yes, we tried to use 4.10.2 as well. Looks like there is indeed some issues with settings correct values from boot config.

As a workaround you can try to set white balance parameters via API:

using namespace Unigine;
VRMixedReality::setCameraWhiteBalance(VRMixedReality::CAMERA_WHITE_BALANCE_VALUE_6500_K);

Thanks!

  • Thanks 1

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hi,

Just tested, can't fix it:

int VRWorldLogic::init()
{
	[..]
  
	if (VRPlayer::isVRLoaded())
	{
		if (VRMixedReality::isInitialized())
		{
			//no segfault, but doesn't fix the issue
			VRMixedReality::setCameraWhiteBalanceMode(VRMixedReality::CAMERA_PROPERTY_MODE_AUTO);
			//VRMixedReality::setCameraExposureTimeMode(VRMixedReality::CAMERA_PROPERTY_MODE_AUTO);
			//VRMixedReality::setCameraISOMode(VRMixedReality::CAMERA_PROPERTY_MODE_AUTO);

			//seg fault
			if (VRMixedReality::cameraConfigLock())
			{
				VRMixedReality::setCameraWhiteBalance(VRMixedReality::CAMERA_WHITE_BALANCE::CAMERA_WHITE_BALANCE_VALUE_6500_K);
				//VRMixedReality::setCameraExposureTimeRaw(VRMixedReality::CAMERA_EXPOSURE_TIME::CAMERA_EXPOSURE_TIME_VALUE_1000_MS);
				//VRMixedReality::setCameraISORaw(VRMixedReality::CAMERA_ISO::CAMERA_ISO_GAIN_800);
			}
          
			Log::message("MR camera settings forced\n");
		}
	}
  
	[..]
}

Would you see smthg wrong?
Is it to put in VRWorldLogic::update() instead?

Regards,
Charles

Posted

Can you record a short video how this tint is looking in your case? Maybe that's a complete different issue?

Or maybe you need to adjust white balance to a different values (not 6500K, but different one that gives you better results).

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted
Quote

Is it to put in VRWorldLogic::update() instead?

As a workaround - you can try to put 

VRMixedReality::setCameraWhiteBalanceMode(VRMixedReality::CAMERA_PROPERTY_MODE_AUTO); 

into the update. As far as I understand, conflgLock is not required for that.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...