Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo de Greef <eeshlo@yahoo.com>2005-05-28 06:50:55 +0400
committerAlfredo de Greef <eeshlo@yahoo.com>2005-05-28 06:50:55 +0400
commit5b014b0c9cb1b5d59b8b2df3e043cfbaea8194fa (patch)
tree022f3730abf9eb84ea913f92fe085382a0c345ac /source/blender/yafray/intern/export_File.cpp
parentbdc928b2984ae8be169e991122934492c4d0bac5 (diff)
Some last minute tweaks, for world background image, 'Hori' must now be
enabled. And when using Blender's AO parameters, the lowest sample number when no cache is used is 4.
Diffstat (limited to 'source/blender/yafray/intern/export_File.cpp')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp
index 272c830d7b7..b0ac5bfa6a8 100755
--- a/source/blender/yafray/intern/export_File.cpp
+++ b/source/blender/yafray/intern/export_File.cpp
@@ -1784,7 +1784,8 @@ void yafrayFileRender_t::writeHemilight()
else {
ostr << "<light type=\"hemilight\" name=\"hemi_LT\" power=\"" << R.r.GIpower << "\"";
if (fromAO) {
- ostr << "\n\tsamples=\"" << world->aosamp*world->aosamp
+ // use minimum of 4 samples for lowest sample setting, single sample way too noisy
+ ostr << "\n\tsamples=\"" << 3 + world->aosamp*world->aosamp
<< "\" maxdistance=\"" << world->aodist
<< "\" use_QMC=\"" << ((world->aomode & WO_AORNDSMP) ? "off" : "on") << "\" >\n";
}
@@ -1867,8 +1868,8 @@ bool yafrayFileRender_t::writeWorld()
MTex* wtex = world->mtex[i];
if (!wtex) continue;
Image* wimg = wtex->tex->ima;
- // now always exports if image used as world texture
- if ((wtex->tex->type==TEX_IMAGE) && (wimg!=NULL)) {
+ // now always exports if image used as world texture (and 'Hori' mapping enabled)
+ if ((wtex->tex->type==TEX_IMAGE) && (wimg!=NULL) && (wtex->mapto & WOMAP_HORIZ)) {
string wt_path = wimg->name;
adjustPath(wt_path);
ostr.str("");