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/makesdna/DNA_world_types.h | |
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/makesdna/DNA_world_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_world_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_world_types.h b/source/blender/makesdna/DNA_world_types.h index 06f52de8e6a..e284044a633 100644 --- a/source/blender/makesdna/DNA_world_types.h +++ b/source/blender/makesdna/DNA_world_types.h @@ -88,6 +88,7 @@ typedef struct World { * bit 3: (gameengine): Activity culling is enabled. */ short mode; + int physicsEngine; /* here it's aligned */ float misi, miststa, mistdist, misthi; @@ -101,9 +102,8 @@ typedef struct World { /* ambient occlusion */ float aodist, aodistfac, aoenergy, aobias; short aomode, aosamp, aomix, aocolor; + float *aosphere; - int physicsEngine; - struct Ipo *ipo; struct MTex *mtex[10]; |