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:
authorTon Roosendaal <ton@blender.org>2003-09-27 13:38:09 +0400
committerTon Roosendaal <ton@blender.org>2003-09-27 13:38:09 +0400
commit3cf1cacd5dbf0efe61501762444ba26531614b86 (patch)
tree4eea9a824b6805cc95f375ef3a6acece8ef43a1f /source/blender/radiosity
parent0dce5a6fbe107a8e675d040d90a1b7efd10e1a60 (diff)
- Bug fixes for radio render (yes, releasing gives more reports!)
1. Rendering with material without radio flag sometimes caused scanline errors. The 'rad' value for rendercore loop wasn't reset in all cases 2. The color didn't truely match the color when using 'radio tool'. Cleaned up a few old lines in rendercore loop... accidentally one calculation was done double. 3. When adding new radiosity block, 'max iterations' is set at 120. this prevents noobies/experiment from going into radio-solving with a long itteration time (it exits at convergence < 0.1)
Diffstat (limited to 'source/blender/radiosity')
-rw-r--r--source/blender/radiosity/intern/source/radio.c1
-rw-r--r--source/blender/radiosity/intern/source/radrender.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/radiosity/intern/source/radio.c b/source/blender/radiosity/intern/source/radio.c
index 91fd7435fb2..923ab69db6e 100644
--- a/source/blender/radiosity/intern/source/radio.c
+++ b/source/blender/radiosity/intern/source/radio.c
@@ -264,6 +264,7 @@ void add_radio()
rad->elmi= 20;
rad->nodelim= 0;
rad->maxnode= 10000;
+ rad->maxiter= 120; // arbitrary
rad->flag= 2;
set_radglobal();
}
diff --git a/source/blender/radiosity/intern/source/radrender.c b/source/blender/radiosity/intern/source/radrender.c
index aa7e0d589d1..f4260cc7e32 100644
--- a/source/blender/radiosity/intern/source/radrender.c
+++ b/source/blender/radiosity/intern/source/radrender.c
@@ -498,7 +498,7 @@ void make_vertex_rad_values()
/* make vertex colors */
RG.igamma= 1.0/RG.gamma;
- RG.radfactor= RG.radfac*pow(64*64, RG.igamma)/256.0; /* compatible with radio-tool */
+ RG.radfactor= RG.radfac*pow(64*64, RG.igamma)/128.0; /* compatible with radio-tool */
for(a=0; a<R.totvert; a++) {
if((a & 255)==0) v1= R.blove[a>>8]; else v1++;