Water/Sky management

Functions

int SO3EnvironmentSetViewport (mmachine m)
 main include
int SO3EnvironmentGetWindSpeed (mmachine m)
 SO3EnvironmentGetWindSpeed :
int SO3EnvironmentSetWindSpeed (mmachine m)
 SO3EnvironmentSetWindSpeed :
int SO3EnvironmentGetWindDirection (mmachine m)
 SO3EnvironmentGetWindDirection :
int SO3EnvironmentSetWindDirection (mmachine m)
 SO3EnvironmentSetWindDirection :
int SO3EnvironmentGetHumidity (mmachine m)
 SO3EnvironmentGetHumidity :
int SO3EnvironmentSetHumidity (mmachine m)
 SO3EnvironmentSetHumidity :
int SO3EnvironmentGetTimeSpeedFactor (mmachine m)
 SO3EnvironmentGetTimeSpeedFactor :
int SO3EnvironmentSetTimeSpeedFactor (mmachine m)
 SO3EnvironmentSetTimeSpeedFactor :
int SO3EnvironmentGetPaused (mmachine m)
 SO3EnvironmentGetPaused :
int SO3EnvironmentSetPaused (mmachine m)
 SO3EnvironmentSetPaused :
int SO3EnvironmentGetDateTime (mmachine m)
 SO3EnvironmentGetDateTime :
int SO3EnvironmentSetDateTime (mmachine m)
 SO3EnvironmentSetDateTime :
int SO3EnvironmentGetLongitude (mmachine m)
 SO3EnvironmentGetLongitude :
int SO3EnvironmentSetLongitude (mmachine m)
 SO3EnvironmentSetLongitude :
int SO3EnvironmentGetLatitude (mmachine m)
 SO3EnvironmentGetLatitude :
int SO3EnvironmentSetLatitude (mmachine m)
 SO3EnvironmentSetLatitude :
int SO3WaterGetEnable (mmachine m)
 SO3WaterGetEnable :
int SO3WaterSetEnable (mmachine m)
 SO3WaterSetEnable :
int SO3WaterComponentGetEnabled (mmachine m)
 SO3WaterComponentGetEnabled :
int SO3WaterComponentSetEnabled (mmachine m)
 SO3WaterComponentSetEnabled :
int SO3SkyGetEnable (mmachine m)
 SO3SkyGetEnable :
int SO3SkySetEnable (mmachine m)
 SO3SkySetEnable :
int SO3SkyComponentGetEnabled (mmachine m)
 SO3SkyComponentGetEnabled :
int SO3SkyComponentSetEnabled (mmachine m)
 SO3SkyComponentSetEnabled :
int SO3WaterGetPosition (mmachine m)
 SO3WaterGetPosition :
int SO3WaterSetPosition (mmachine m)
 SO3WaterSetPosition :
int SO3WaterGetColor (mmachine m)
 SO3WaterGetColor :
int SO3WaterSetColor (mmachine m)
 SO3WaterSetColor :
int SO3WaterGetAnimationSpeed (mmachine m)
 SO3WaterGetAnimationSpeed :
int SO3WaterSetAnimationSpeed (mmachine m)
 SO3WaterSetAnimationSpeed :
int SO3WaterGetSunParameters (mmachine m)
 SO3WaterGetSunParameters :
int SO3WaterSetSunParameters (mmachine m)
 SO3WaterSetSunParameters :
int SO3WaterGetFoamParameters (mmachine m)
 SO3WaterGetFoamParameters :
int SO3WaterSetFoamParameters (mmachine m)
 SO3WaterSetFoamParameters :
int SO3WaterGetDepthParameters (mmachine m)
 SO3WaterGetDepthParameters :
int SO3WaterSetDepthParameters (mmachine m)
 SO3WaterSetDepthParameters :
int SO3WaterGetSmoothPower (mmachine m)
 SO3WaterGetSmoothPower :
int SO3WaterSetSmoothPower (mmachine m)
 SO3WaterSetSmoothPower :
int SO3WaterGetCausticsParameters (mmachine m)
 SO3WaterGetCausticsParameters :
int SO3WaterSetCausticsParameters (mmachine m)
 SO3WaterSetCausticsParameters :
int SO3WaterGetGodRaysParameters (mmachine m)
 SO3WaterGetGodRaysParameters :
int SO3WaterSetGodRaysParameters (mmachine m)
 SO3WaterSetGodRaysParameters :
int SO3SkyGetAnimationSpeed (mmachine m)
 SO3SkyGetAnimationSpeed :
int SO3SkySetAnimationSpeed (mmachine m)
 SO3SkySetAnimationSpeed :
int SO3SkyGetHdrEnable (mmachine m)
 SO3SkyGetHdrEnable :
int SO3SkySetHdrEnable (mmachine m)
 SO3SkySetHdrEnable :
int SO3SkyGetCloudCeiling (mmachine m)
 SO3SkyGetCloudCeiling :
int SO3SkySetCloudCeiling (mmachine m)
 SO3SkySetCloudCeiling :
int SO3SkyAddLayeredCloud (mmachine m)
 SO3SkyAddLayeredCloud :
int SO3SkyRemoveLayeredCloud (mmachine m)
 SO3SkyAddLayeredCloud :
int SO3SkyGetLayeredCloudIndexes (mmachine m)
 SO3SkyGetLayeredCloudIndexes :
int SO3SkyGetLayeredCloudParameters (mmachine m)
 SO3SkyGetLayeredCloudParameters :
int SO3SkySetLayeredCloudParameters (mmachine m)
 SO3SkySetLayeredCloudParameters :
int SO3SkyGetVolumetricCloudParameters (mmachine m)
 SO3SkyGetVolumetricCloudParameters :
int SO3SunGetLightColor (mmachine m)
 SO3SunGetLightColor :
int SO3SunSetLightColor (mmachine m)
 SO3SunSetLightColor :
int SO3MoonGetLightColor (mmachine m)
 SO3MoonGetLightColor :
int SO3MoonSetLightColor (mmachine m)
 SO3MoonSetLightColor :
int SO3MoonGetTexturePath (mmachine m)
 SO3MoonGetLightColor :
int SO3MoonSetTexturePath (mmachine m)
 SO3MoonSetTexturePath :

Detailed Description

Scol functions definition


Function Documentation

int SO3EnvironmentGetDateTime ( mmachine  m  ) 

SO3EnvironmentGetDateTime :

Prototype: fun [SO3_SCENE] [I I I I I I]

Parameters:
SO3_SCENE : The scene on which we want to know the environment date/time
Returns:
[I I I I I I] : Current date/time.
  • I : year
  • I : month
  • I : day
  • I : hours
  • I : minutes
  • I : seconds

Definition at line 444 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetHumidity ( mmachine  m  ) 

SO3EnvironmentGetHumidity :

Prototype: fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which we want to know the global humidity factor.
Returns:
F : The humidity factor

Definition at line 238 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetLatitude ( mmachine  m  ) 

SO3EnvironmentGetLatitude :

Prototype: fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which we want to know the observer latitude
Returns:
F : The observer latitude, in degrees. Positive values are for Northern latitudes, negative values for Southern, 0 is equator.

Definition at line 617 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetLongitude ( mmachine  m  ) 

SO3EnvironmentGetLongitude :

Prototype: fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which we want to know the observer longitude
Returns:
F : The observer longitude, in degrees. Positive values are for Eastern longitudes, negative values for Western, 0 is Prime meridian (or "Greenwich" meridian).

Definition at line 556 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetPaused ( mmachine  m  ) 

SO3EnvironmentGetPaused :

Prototype:fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene to which the environment belongs
Returns:
I : True is the environment is actually paused (no sun/moon position update, nor waves/clouds animations), false otherwise.

Definition at line 367 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetTimeSpeedFactor ( mmachine  m  ) 

SO3EnvironmentGetTimeSpeedFactor :

Prototype: fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which we want to know the time speed factor.
Returns:
F : The time speed factor, ie how many seconds are elapsed for a "real" second.
For example, a factor of 1 will advance the environment simulation at real time. Use a factor of 0 to pause the environment simulation. A factor of 60 will advance the simulation 1 minute every second, and a factor of 3600 will advance the simulation 1 hour every second.

Definition at line 300 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetWindDirection ( mmachine  m  ) 

SO3EnvironmentGetWindDirection :

Prototype: fun [SO3_SCENE] [F F]

Parameters:
SO3_SCENE : The scene on which we want to know the wind direction.
Returns:
[F F] : The wind direction, as a 2d vector.
  • F : x vector value
  • F : y vector value

Definition at line 166 of file SCOLEnvironment.cpp.

int SO3EnvironmentGetWindSpeed ( mmachine  m  ) 

SO3EnvironmentGetWindSpeed :

Prototype: fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which we want to know the wind speed.
Returns:
F : The wind speed.

Definition at line 103 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetDateTime ( mmachine  m  ) 

SO3EnvironmentSetDateTime :

Prototype: fun [SO3_SCENE I I I I I I] I

Parameters:
SO3_SCENE : The scene on which we want to set the environment date/time
I : year (NIL to keep existing value)
I : month (NIL to keep existing value)
I : day (NIL to keep existing value)
I : hours (NIL to keep existing value)
I : minutes (NIL to keep existing value)
I : seconds (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 492 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetHumidity ( mmachine  m  ) 

SO3EnvironmentSetHumidity :

Prototype: fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which we want to set the global humidity factor
F : humidity factor
Returns:
I : 1 if success, NIL otherwise.

Definition at line 269 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetLatitude ( mmachine  m  ) 

SO3EnvironmentSetLatitude :

Prototype: fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which we want to set the observer latitude
F : The observer latitude, in degrees. Positive values are for Northern latitudes, negative values for Southern, 0 is equator.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 647 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetLongitude ( mmachine  m  ) 

SO3EnvironmentSetLongitude :

Prototype: fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which we want to set the observer longitude
F : The observer longitude, in degrees. Positive values are for Eastern longitudes, negative values for Western, 0 is Prime meridian (or "Greenwich" meridian).
Returns:
I : 1 if success, NIL otherwise.

Definition at line 586 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetPaused ( mmachine  m  ) 

SO3EnvironmentSetPaused :

Prototype:fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene to which the environment belongs
I : Set to "true" to pause the environment (no sun/moon position update, nor waves/clouds animations), false to resume.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 402 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetTimeSpeedFactor ( mmachine  m  ) 

SO3EnvironmentSetTimeSpeedFactor :

Prototype: fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which we want to set the time speed factor.
F : The time speed factor, ie how many seconds are elapsed for a "real" second.
For example, a factor of 1 will advance the environment simulation at real time. Use a factor of 0 (or NIL) to pause the environment simulation. A factor of 60 will advance the simulation 1 minute every second, and a factor of 3600 will advance the simulation 1 hour every second.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 330 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetViewport ( mmachine  m  ) 

main include

SO3EnvironmentSetViewport : Prototype: fun [SO3_SCENE SO3_VIEWPORT] I

Parameters:
SO3_SCENE : The scene on which we want to activate the environment rendering
SO3_VIEWPORT : The viewport that will be used to render the scene (needed for compositors and cameras tracking).
Returns:
I : 1 if success , NIL otherwise

Definition at line 60 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetWindDirection ( mmachine  m  ) 

SO3EnvironmentSetWindDirection :

Prototype: fun [SO3_SCENE F F] I

Parameters:
SO3_SCENE : The scene on which we want to set the wind direction.
F : x value of the wind direction vector
F : y value of the wind direction vector
Returns:
I : 1 if success, NIL otherwise.

Definition at line 206 of file SCOLEnvironment.cpp.

int SO3EnvironmentSetWindSpeed ( mmachine  m  ) 

SO3EnvironmentSetWindSpeed :

Prototype: fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which we want to set the wind speed.
F : wind speed value
Returns:
I : 1 if success, NIL otherwise.

Definition at line 133 of file SCOLEnvironment.cpp.

int SO3MoonGetLightColor ( mmachine  m  ) 

SO3MoonGetLightColor :

Prototype:fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to get the moon light color
Returns:
I : The moon light color

Definition at line 2675 of file SCOLEnvironment.cpp.

int SO3MoonGetTexturePath ( mmachine  m  ) 

SO3MoonGetLightColor :

Prototype:fun [SO3_SCENE] S

Parameters:
SO3_SCENE : The scene on which we want to get the moon texture
Returns:
S : The name of the texture in use for rendering the moon

Definition at line 2751 of file SCOLEnvironment.cpp.

int SO3MoonSetLightColor ( mmachine  m  ) 

SO3MoonSetLightColor :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to set the moon light color
I : The moon color
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2713 of file SCOLEnvironment.cpp.

int SO3MoonSetTexturePath ( mmachine  m  ) 

SO3MoonSetTexturePath :

Prototype: fun [SO3_SCENE S] I

Parameters:
SO3_SCENE : The scene on which we want to set the moon texture
S : The new texture filename to use for the moon
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2787 of file SCOLEnvironment.cpp.

int SO3SkyAddLayeredCloud ( mmachine  m  ) 

SO3SkyAddLayeredCloud :

Prototype:fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to add a layered cloud layer
F : the
Returns:
I : the index of the added layer

Definition at line 2241 of file SCOLEnvironment.cpp.

int SO3SkyComponentGetEnabled ( mmachine  m  ) 

SO3SkyComponentGetEnabled :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to know if the sky subcomponents is activated
I : Component type
Returns:
I : 1 if the sky subcomponent is activated, 0 otherwise. NIL if error occurs.

Component type values are :

  • SO3_SKY_COMPONENT_LAYERER_CLOUD
  • SO3_SKY_COMPONENT_VOLUMETRIC_CLOUD

Definition at line 940 of file SCOLEnvironment.cpp.

int SO3SkyComponentSetEnabled ( mmachine  m  ) 

SO3SkyComponentSetEnabled :

Prototype: fun [SO3_SCENE I I] I

Parameters:
SO3_SCENE : The scene on which we want to activate/deactivate the sky subcomponent
I : Sky component type
I : 1 to activate the subcomponent, 0 to disable it.

Component type values are :

  • SO3_SKY_COMPONENT_LAYERER_CLOUD
  • SO3_SKY_COMPONENT_VOLUMETRIC_CLOUD

Definition at line 995 of file SCOLEnvironment.cpp.

int SO3SkyGetAnimationSpeed ( mmachine  m  ) 

SO3SkyGetAnimationSpeed :

Prototype:fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which the sky is rendered
Returns:
F : Return the clouds animation speed. Can be negative. If value is "0", the clouds are frozen.

Definition at line 2011 of file SCOLEnvironment.cpp.

int SO3SkyGetCloudCeiling ( mmachine  m  ) 

SO3SkyGetCloudCeiling :

Prototype:fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which the sky is rendered
Returns:
F : Return the clouds ceiling height, ie, the height above ground at which clouds starts.

Definition at line 2167 of file SCOLEnvironment.cpp.

int SO3SkyGetEnable ( mmachine  m  ) 

SO3SkyGetEnable :

Prototype: fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to know if the sky rendering is activated
Returns:
I : 1 if the sky rendering is activated, 0 otherwise. NIL if error occurs.

Definition at line 867 of file SCOLEnvironment.cpp.

int SO3SkyGetHdrEnable ( mmachine  m  ) 

SO3SkyGetHdrEnable :

Prototype: fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to know if the sky HDR rendering mode is activated
Returns:
I : 1 if the sky HDR rendering mode is activated, 0 otherwise. NIL if error occurs.

Definition at line 2087 of file SCOLEnvironment.cpp.

int SO3SkyGetLayeredCloudIndexes ( mmachine  m  ) 

SO3SkyGetLayeredCloudIndexes :

Prototype:fun [SO3_SCENE] [I r1]

Parameters:
SO3_SCENE : The scene on which we want to retrieve the layers index of the layered cloud
Returns:
[I r1] : list of the layer indexes

Definition at line 2324 of file SCOLEnvironment.cpp.

int SO3SkyGetLayeredCloudParameters ( mmachine  m  ) 

SO3SkyGetLayeredCloudParameters :

Prototype:fun [SO3_SCENE I] [F F F F F F F]

Parameters:
SO3_SCENE : The scene on which the sky is rendered
I : the cloud layer index.
Returns:
[F F F F F F F] : The layer cloud parameters, for layered clouds
  • F : height from cloud ceiling
  • F : scale
  • F : attenuation distance
  • F : attenuation detail
  • F : normal multiplier
  • F : height volume
  • F : volumetric displacement

Definition at line 2402 of file SCOLEnvironment.cpp.

int SO3SkyGetVolumetricCloudParameters ( mmachine  m  ) 

SO3SkyGetVolumetricCloudParameters :

Prototype:fun [SO3_SCENE] [F F F]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[F F F] : The underwater "gods ray" parameters, for water rendering
  • F : intensity
  • F : speed
  • F : ray size

Definition at line 2578 of file SCOLEnvironment.cpp.

int SO3SkyRemoveLayeredCloud ( mmachine  m  ) 

SO3SkyAddLayeredCloud :

Prototype:fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to add a layered cloud layer
I : the index of the layer to remove
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2279 of file SCOLEnvironment.cpp.

int SO3SkySetAnimationSpeed ( mmachine  m  ) 

SO3SkySetAnimationSpeed :

Prototype:fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which the sky is rendered
I : Set the clouds animation speed. Can be negative. If value is "0", the clouds will be frozen.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2049 of file SCOLEnvironment.cpp.

int SO3SkySetCloudCeiling ( mmachine  m  ) 

SO3SkySetCloudCeiling :

Prototype:fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which the sky is rendered
F : set the clouds ceiling height, ie, the height above ground at which clouds starts.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2204 of file SCOLEnvironment.cpp.

int SO3SkySetEnable ( mmachine  m  ) 

SO3SkySetEnable :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to activate the sky rendering
I : 1 to activate the sky rendering, 0 to disable it
Returns:
I : 1 if success, NIL otherwise.

Definition at line 900 of file SCOLEnvironment.cpp.

int SO3SkySetHdrEnable ( mmachine  m  ) 

SO3SkySetHdrEnable :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to activate the water sky HDR rendering
I : 1 to activate the HDR rendering mode, 0 to disable it (LDR mode)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2126 of file SCOLEnvironment.cpp.

int SO3SkySetLayeredCloudParameters ( mmachine  m  ) 

SO3SkySetLayeredCloudParameters :

Prototype: fun [SO3_SCENE I F F F F F F F] I

Parameters:
SO3_SCENE : The scene on which we want to set the cloud layer properties
I : the cloud layer index.
F : height from cloud ceiling (NIL to keep existing value)
F : scale (NIL to keep existing value)
F : attenuation distance (NIL to keep existing value)
F : attenuation detail (NIL to keep existing value)
F : normal multiplier (NIL to keep existing value)
F : height volume (NIL to keep existing value)
F : volumetric displacement (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2492 of file SCOLEnvironment.cpp.

int SO3SunGetLightColor ( mmachine  m  ) 

SO3SunGetLightColor :

Prototype:fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to get the sun light color
Returns:
I : The sun light color

Definition at line 2598 of file SCOLEnvironment.cpp.

int SO3SunSetLightColor ( mmachine  m  ) 

SO3SunSetLightColor :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to set the sun light color
I : The sun color
Returns:
I : 1 if success, NIL otherwise.

Definition at line 2637 of file SCOLEnvironment.cpp.

int SO3WaterComponentGetEnabled ( mmachine  m  ) 

SO3WaterComponentGetEnabled :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to know if the water subcomponent is activated
I : Component type
Returns:
I : 1 if the water subcomponent is activated, 0 otherwise. NIL if error occurs.

Component type values are :

  • SO3_WATER_COMPONENT_SUN
  • SO3_WATER_COMPONENT_FOAM
  • SO3_WATER_COMPONENT_DEPTH
  • SO3_WATER_COMPONENT_SMOOTH
  • SO3_WATER_COMPONENT_CAUSTICS
  • SO3_WATER_COMPONENT_UNDERWATER
  • SO3_WATER_COMPONENT_GODRAYS

Definition at line 756 of file SCOLEnvironment.cpp.

int SO3WaterComponentSetEnabled ( mmachine  m  ) 

SO3WaterComponentSetEnabled :

Prototype: fun [SO3_SCENE I I] I

Parameters:
SO3_SCENE : The scene on which we want to activate/deactivate the water subcomponent
I : Water component type
I : 1 to activate the subcomponent, 0 to disable it.
Returns:
I : 1 if success, NIL otherwise.

Component type values are :

  • SO3_WATER_COMPONENT_SUN
  • SO3_WATER_COMPONENT_FOAM
  • SO3_WATER_COMPONENT_DEPTH
  • SO3_WATER_COMPONENT_SMOOTH
  • SO3_WATER_COMPONENT_CAUSTICS
  • SO3_WATER_COMPONENT_UNDERWATER
  • SO3_WATER_COMPONENT_GODRAYS

Definition at line 817 of file SCOLEnvironment.cpp.

int SO3WaterGetAnimationSpeed ( mmachine  m  ) 

SO3WaterGetAnimationSpeed :

Prototype:fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
F : Return the waves animation speed. Can be negative. If value is "0", the waves are frozen.

Definition at line 1208 of file SCOLEnvironment.cpp.

int SO3WaterGetCausticsParameters ( mmachine  m  ) 

SO3WaterGetCausticsParameters :

Prototype:fun [SO3_SCENE] [F F F]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[F F F] : The caustics parameters, for water rendering
  • F : caustic scale
  • F : caustic power
  • F : caustic end

Definition at line 1727 of file SCOLEnvironment.cpp.

int SO3WaterGetColor ( mmachine  m  ) 

SO3WaterGetColor :

Prototype:fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
I : The water color

Definition at line 1133 of file SCOLEnvironment.cpp.

int SO3WaterGetDepthParameters ( mmachine  m  ) 

SO3WaterGetDepthParameters :

Prototype:fun [SO3_SCENE] [F F]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[F F] : The depth parameters, for water rendering
  • F : depth limit
  • F : underwater distortion depth limit

Definition at line 1554 of file SCOLEnvironment.cpp.

int SO3WaterGetEnable ( mmachine  m  ) 

SO3WaterGetEnable :

Prototype: fun [SO3_SCENE] I

Parameters:
SO3_SCENE : The scene on which we want to know if the water rendering is activated
Returns:
I : 1 if the water rendering is activated, 0 otherwise. NIL if error occurs.

Definition at line 678 of file SCOLEnvironment.cpp.

int SO3WaterGetFoamParameters ( mmachine  m  ) 

SO3WaterGetFoamParameters :

Prototype:fun [SO3_SCENE] [F F F F]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[F F F F] : The foam parameters, for water rendering
  • F : maximum visibility distance
  • F : scale
  • F : start
  • F : transparency power

Definition at line 1429 of file SCOLEnvironment.cpp.

int SO3WaterGetGodRaysParameters ( mmachine  m  ) 

SO3WaterGetGodRaysParameters :

Prototype:fun [SO3_SCENE] [[F F F] F F I F I]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[[F F F] F F I F I] : The underwater "gods ray" parameters, for water rendering
  • [F F F] : exposure
  • F : intensity
  • F : speed
  • I : number of rays
  • F : ray size
  • I : enable object intersection (1=true, 0=false).

Definition at line 1846 of file SCOLEnvironment.cpp.

int SO3WaterGetPosition ( mmachine  m  ) 

SO3WaterGetPosition :

Prototype:fun [SO3_SCENE] [F F F]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[F F F] : The water plane position vector, "y" being the sea level.

Definition at line 1045 of file SCOLEnvironment.cpp.

int SO3WaterGetSmoothPower ( mmachine  m  ) 

SO3WaterGetSmoothPower :

Prototype:fun [SO3_SCENE] F

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
F : The waves smooth power parameter, for water rendering

Definition at line 1649 of file SCOLEnvironment.cpp.

int SO3WaterGetSunParameters ( mmachine  m  ) 

SO3WaterGetSunParameters :

Prototype:fun [SO3_SCENE] [[F F F] F F I]

Parameters:
SO3_SCENE : The scene on which the water is rendered
Returns:
[[F F F] F F I] : The sun parameters, for water rendering
  • [F F F] : sun position in world space
  • F : sun strength
  • F : sun area
  • I : sun color

Definition at line 1287 of file SCOLEnvironment.cpp.

int SO3WaterSetAnimationSpeed ( mmachine  m  ) 

SO3WaterSetAnimationSpeed :

Prototype:fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
I : Set the waves animation speed. Can be negative. If value is "0", the waves will be frozen.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1246 of file SCOLEnvironment.cpp.

int SO3WaterSetCausticsParameters ( mmachine  m  ) 

SO3WaterSetCausticsParameters :

Prototype: fun [SO3_SCENE F F F] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
F : caustic scale (NIL to keep existing value)
F : caustic power (NIL to keep existing value)
F : caustic end (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1788 of file SCOLEnvironment.cpp.

int SO3WaterSetColor ( mmachine  m  ) 

SO3WaterSetColor :

Prototype:fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
I : The color of the water
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1170 of file SCOLEnvironment.cpp.

int SO3WaterSetDepthParameters ( mmachine  m  ) 

SO3WaterSetDepthParameters :

Prototype:fun [SO3_SCENE F F] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
F : The depth limit, for water rendering (NIL to keep existing value)
F : The underwater distortion depth limit, for water rendering (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1607 of file SCOLEnvironment.cpp.

int SO3WaterSetEnable ( mmachine  m  ) 

SO3WaterSetEnable :

Prototype: fun [SO3_SCENE I] I

Parameters:
SO3_SCENE : The scene on which we want to activate the water rendering
I : 1 to activate the water rendering, 0 to disable it
Returns:
I : 1 if success, NIL otherwise.

Definition at line 711 of file SCOLEnvironment.cpp.

int SO3WaterSetFoamParameters ( mmachine  m  ) 

SO3WaterSetFoamParameters :

Prototype: fun [SO3_SCENE F F F F] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
F : maximum visibility distance (NIL to keep existing value)
F : scale (NIL to keep existing value)
F : start (NIL to keep existing value)
F : transparency power (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1495 of file SCOLEnvironment.cpp.

int SO3WaterSetGodRaysParameters ( mmachine  m  ) 

SO3WaterSetGodRaysParameters :

Prototype: fun [SO3_SCENE [F F F] F F I F I] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
[F F F] : exposure (NIL to keep existing value)
F : intensity (NIL to keep existing value)
: speed (NIL to keep existing value)
: number of rays (NIL to keep existing value)
: ray size (NIL to keep existing value)
: enable object intersection (1=true, 0=false) (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1934 of file SCOLEnvironment.cpp.

int SO3WaterSetPosition ( mmachine  m  ) 

SO3WaterSetPosition :

Prototype:fun [SO3_SCENE [F F F]] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
[F F F] : Water plane position vector, "y" is sea level.
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1093 of file SCOLEnvironment.cpp.

int SO3WaterSetSmoothPower ( mmachine  m  ) 

SO3WaterSetSmoothPower :

Prototype:fun [SO3_SCENE F] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
F : The waves smooth power parameter, for water rendering
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1687 of file SCOLEnvironment.cpp.

int SO3WaterSetSunParameters ( mmachine  m  ) 

SO3WaterSetSunParameters :

Prototype: fun [SO3_SCENE [F F F] F F I] I

Parameters:
SO3_SCENE : The scene on which the water is rendered
[F F F] : sun position in world space (NIL to keep existing value)
F : sun strength (NIL to keep existing value)
F : sun area (NIL to keep existing value)
I : sun color (NIL to keep existing value)
Returns:
I : 1 if success, NIL otherwise.

Definition at line 1362 of file SCOLEnvironment.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Oct 31 14:42:34 2011 for SO3Engine by  doxygen 1.6.3