Jump to content

[SOLVED] Weather managing


photo

Recommended Posts

Posted

I am trying to figure out how could I manage weather parameters from C++ side. I want to set all params in editor so can gain the pros from wysiwyg ideas. However I can have situation when the weather parameters are suddenly changed by the supervising user of my system. I work now on valley as a test environment.

After handling the slider with rain density unigine calls this function in valley.h:

void Camera::setEnvironmentRain(float rain) {
        rain_control.blend(rain,rain);
        wet_control.set(rain);
}

My question is how could I call these from C++ in  the easiest way?

Posted

Most probably C++ to Unigine Script Callbacks Might be required to define some Unigine world script functions were you first get access to the actual Camera instance and then call the camera member function.

Posted

source/samples/Api/Callbacks example shows how to call script functions from C++ side.

×
×
  • Create New...