paysages : Small changes and bugfixes.

git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@467 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
This commit is contained in:
Michaël Lemaire 2012-11-24 16:04:33 +00:00 committed by ThunderK
parent d0bd8ee511
commit 98c64cc5eb
5 changed files with 10 additions and 6 deletions

4
TODO
View file

@ -9,6 +9,10 @@ Technology Preview 2 :
- Finalize Preetham's model usage
=> Apply model to atmosphere (aerial perspective)
=> Find a proper model for night sky (maybe Shirley)
- Merge atmosphere and sky in a coherent model.
=> All stopper rendering (terrain, water and skydome) should pass through an atmosphere walker.
=> The atmosphere walker collects callbacks (clouds, water...) to alter the medium.
=> God rays are possible with particle lighting through the walker.
- Keep skydome lights in cache for a render.
- Clouds should keep distance to ground.
- Rethink the quality settings and detail smoothing in the distance.

View file

@ -157,9 +157,9 @@ private:
FormClouds::FormClouds(QWidget *parent):
BaseFormLayer(parent)
{
addAutoPreset(tr("Stratocumulus"));
addAutoPreset(tr("Cumulus"));
addAutoPreset(tr("Cirrus"));
addAutoPreset(tr("Cumulus"));
addAutoPreset(tr("Stratocumulus"));
addAutoPreset(tr("Stratus"));
_definition = cloudsCreateDefinition();

View file

@ -51,7 +51,7 @@ double InputDouble::getValue()
{
result = _min + ((double)ivalue) * _small_step;
}
if (fabs(*_value) < 0.0000001)
if (fabs(result) < 0.0000001)
{
result = 0.0;
}

View file

@ -76,7 +76,7 @@ CloudsLayerDefinition* cloudsLayerCreateDefinition()
result->_custom_coverage = _standardCoverageFunc;
cloudsLayerAutoPreset(result, CLOUDS_PRESET_STRATOCUMULUS);
cloudsLayerAutoPreset(result, CLOUDS_PRESET_CIRRUS);
return result;
}

View file

@ -12,9 +12,9 @@ extern "C" {
typedef enum
{
CLOUDS_PRESET_STRATOCUMULUS,
CLOUDS_PRESET_CUMULUS,
CLOUDS_PRESET_CIRRUS,
CLOUDS_PRESET_CUMULUS,
CLOUDS_PRESET_STRATOCUMULUS,
CLOUDS_PRESET_STRATUS
} CloudsPreset;