Blender Git Loki
Git Commits -> Revision 8d940df
Revision 8d940df by Ton Roosendaal (master) August 25, 2005, 13:11 (GMT) |
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! |
Commit Details:
Full Hash: 8d940dfafe577ea92c279cc41e791b0012c78d2b
SVN Revision: 5198
Parent Commit: c9f01ee
Lines Changed: +157, -104
9 Modified Paths:
/source/blender/blenlib/BLI_rand.h (+18, -0) (Diff)
/source/blender/blenlib/intern/rand.c (+38, -2) (Diff)
/source/blender/makesdna/DNA_world_types.h (+2, -2) (Diff)
/source/blender/render/extern/include/render.h (+7, -0) (Diff)
/source/blender/render/intern/source/initrender.c (+2, -6) (Diff)
/source/blender/render/intern/source/ray.c (+54, -80) (Diff)
/source/blender/render/intern/source/rendercore.c (+15, -5) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+20, -8) (Diff)
/source/blender/src/previewrender.c (+1, -1) (Diff)
/source/blender/blenlib/intern/rand.c (+38, -2) (Diff)
/source/blender/makesdna/DNA_world_types.h (+2, -2) (Diff)
/source/blender/render/extern/include/render.h (+7, -0) (Diff)
/source/blender/render/intern/source/initrender.c (+2, -6) (Diff)
/source/blender/render/intern/source/ray.c (+54, -80) (Diff)
/source/blender/render/intern/source/rendercore.c (+15, -5) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+20, -8) (Diff)
/source/blender/src/previewrender.c (+1, -1) (Diff)