Lales.Charles Posted May 16, 2025 Posted May 16, 2025 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
silent Posted May 19, 2025 Posted May 19, 2025 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Lales.Charles Posted May 20, 2025 Author Posted May 20, 2025 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
silent Posted May 21, 2025 Posted May 21, 2025 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! 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Lales.Charles Posted May 23, 2025 Author Posted May 23, 2025 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
silent Posted May 23, 2025 Posted May 23, 2025 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
silent Posted May 23, 2025 Posted May 23, 2025 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts