tomasz.krosnowski Posted December 19, 2013 Posted December 19, 2013 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?
ulf.schroeter Posted December 20, 2013 Posted December 20, 2013 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.
frustum Posted December 24, 2013 Posted December 24, 2013 source/samples/Api/Callbacks example shows how to call script functions from C++ side.
Recommended Posts