Jump to content

[SOLVED] Automatic visibility change ( haze )


photo

Recommended Posts

Hello , I have a problem that is either my misuse or it is a rendering feature.

At a larger jump in the position of camera , it is automatically set HazeDistance to a different value as I preset and fast converge to 0.

Do you have any idea what might be the problem ? 

Is there another way to set visibility that through setHazePhysicalHalfVisibilityDistance ?

 
              auto environmentPresetPtr = Unigine::Render::getEnvironmentPreset(0);
              environmentPresetPtr->setHazePhysicalHalfVisibilityDistance(desc.visibility);
 
Thank you. 
 
Michal 
Link to comment

Hi!

Haze settings change according to visibility range in IG. IG can periodically overwrite this parameter.

you can use 

ig_manager->getMeteo()->setVisibilityDistance(float meters)

for controlling haze distance (instead manualy Preset::setHazePhysicalHalfVisibilityDistance)

or just remove hazePhysicalHalfVisibilityDistance from data/ig/weather/tracks/visibility.track

 

  • Like 1
Link to comment
  • silent changed the title to [SOLVED] Automatic visibility change ( haze )
×
×
  • Create New...