diff options
author | Ton Roosendaal <ton@blender.org> | 2005-08-25 17:11:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-08-25 17:11:04 +0400 |
commit | 8d940dfafe577ea92c279cc41e791b0012c78d2b (patch) | |
tree | 88d286b2bc9ad136e7f96661fcd802d2811a52f2 /source/blender/src/previewrender.c | |
parent | c9f01eefcd3c21da95c7245a6b1f54ceae4024b1 (diff) |
Random() issues with rendering...
- AO and soft shadow AreaLight tables were generated without fixed seed,
causing animations to give unwanted amounts of noise.
- Made sure these tables now are calculated before render, with fixed seed
- Then found out the BLI_rand() has very bad seeding... it showed up as
patterns. After some experimenting, found a nice method using noise.c
hash tables. For compatibility with old code, named it BLI_srandom() to
use this next to the BLI_srand(). This follows libc rand() and random()
naming convention.
- Then of course threading should work... so made a BLI_thread_rand version
of the calls. Now supports up to 16 threads, comments added in .h and .c
Result is stable animation render with AO and soft shadow. But, please
test and feedback!
Diffstat (limited to 'source/blender/src/previewrender.c')
-rw-r--r-- | source/blender/src/previewrender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/previewrender.c b/source/blender/src/previewrender.c index 622e1e4bbf4..5c0902ab5b9 100644 --- a/source/blender/src/previewrender.c +++ b/source/blender/src/previewrender.c @@ -1140,7 +1140,7 @@ void BIF_previewrender(SpaceButs *sbuts) init_render_world(); init_render_textures(); /* do not do it twice!! (brightness) */ R.totlamp= 0; - RE_add_render_lamp(ob, 0); /* 0=no shadbuf */ + RE_add_render_lamp(ob, 0); /* 0=no shadbuf or tables */ lar= R.la[0]; /* exceptions: */ |