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:
parent
d0bd8ee511
commit
98c64cc5eb
5 changed files with 10 additions and 6 deletions
4
TODO
4
TODO
|
@ -9,6 +9,10 @@ Technology Preview 2 :
|
||||||
- Finalize Preetham's model usage
|
- Finalize Preetham's model usage
|
||||||
=> Apply model to atmosphere (aerial perspective)
|
=> Apply model to atmosphere (aerial perspective)
|
||||||
=> Find a proper model for night sky (maybe Shirley)
|
=> 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.
|
- Keep skydome lights in cache for a render.
|
||||||
- Clouds should keep distance to ground.
|
- Clouds should keep distance to ground.
|
||||||
- Rethink the quality settings and detail smoothing in the distance.
|
- Rethink the quality settings and detail smoothing in the distance.
|
||||||
|
|
|
@ -157,9 +157,9 @@ private:
|
||||||
FormClouds::FormClouds(QWidget *parent):
|
FormClouds::FormClouds(QWidget *parent):
|
||||||
BaseFormLayer(parent)
|
BaseFormLayer(parent)
|
||||||
{
|
{
|
||||||
addAutoPreset(tr("Stratocumulus"));
|
|
||||||
addAutoPreset(tr("Cumulus"));
|
|
||||||
addAutoPreset(tr("Cirrus"));
|
addAutoPreset(tr("Cirrus"));
|
||||||
|
addAutoPreset(tr("Cumulus"));
|
||||||
|
addAutoPreset(tr("Stratocumulus"));
|
||||||
addAutoPreset(tr("Stratus"));
|
addAutoPreset(tr("Stratus"));
|
||||||
|
|
||||||
_definition = cloudsCreateDefinition();
|
_definition = cloudsCreateDefinition();
|
||||||
|
|
|
@ -51,7 +51,7 @@ double InputDouble::getValue()
|
||||||
{
|
{
|
||||||
result = _min + ((double)ivalue) * _small_step;
|
result = _min + ((double)ivalue) * _small_step;
|
||||||
}
|
}
|
||||||
if (fabs(*_value) < 0.0000001)
|
if (fabs(result) < 0.0000001)
|
||||||
{
|
{
|
||||||
result = 0.0;
|
result = 0.0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ CloudsLayerDefinition* cloudsLayerCreateDefinition()
|
||||||
|
|
||||||
result->_custom_coverage = _standardCoverageFunc;
|
result->_custom_coverage = _standardCoverageFunc;
|
||||||
|
|
||||||
cloudsLayerAutoPreset(result, CLOUDS_PRESET_STRATOCUMULUS);
|
cloudsLayerAutoPreset(result, CLOUDS_PRESET_CIRRUS);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,9 +12,9 @@ extern "C" {
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
CLOUDS_PRESET_STRATOCUMULUS,
|
|
||||||
CLOUDS_PRESET_CUMULUS,
|
|
||||||
CLOUDS_PRESET_CIRRUS,
|
CLOUDS_PRESET_CIRRUS,
|
||||||
|
CLOUDS_PRESET_CUMULUS,
|
||||||
|
CLOUDS_PRESET_STRATOCUMULUS,
|
||||||
CLOUDS_PRESET_STRATUS
|
CLOUDS_PRESET_STRATUS
|
||||||
} CloudsPreset;
|
} CloudsPreset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue