Blender Git Commit Log

Git Commits -> Revision 016e75a

Revision 016e75a by Antonis Ryakiotakis (master)
October 9, 2014, 13:48 (GMT)
Fix T42139, vertical noise stripe patterns in noise texture.

Two fixes here (only the second one is strictly needed to fix the issue,
but both make the system better).

First is introduction of a random generator array for use with threaded
systems where each thread needs to access its own number generator.
The random texture now uses this so it should not be influenced by other
random generator reseedings of the main random generator like it did
before.

Second, I reshuffled the texture code to resample the upper bits of the
random number first. According to Numerical Recipes, this is where the
most variance can be found, so by sampling those we avoid correlation
issues. Also, multiplying here is not ideal because if a pair of bits
are zero, then the whole result will also be zero.

Overall this is much more random (tm) than before, however result will
also be brighter, since we now have less black spots. Tweaking the
brightness/contrast should somewhat fix that, generally having the same
result as before is not possible anyway if we are to really fix this.

Also, seems like exposing procedural depth might be nice here since it
influences the precision of the texture lookup.

Commit Details:

Full Hash: 016e75ad64935775b487e6674f7c2a4f084cd7fe
Parent Commit: 127b92d
Lines Changed: +64, -8

6 Modified Paths:

/source/blender/blenkernel/intern/blender.c (+2, -0) (Diff)
/source/blender/blenlib/BLI_rand.h (+8, -0) (Diff)
/source/blender/blenlib/intern/rand.c (+26, -0) (Diff)
/source/blender/render/extern/include/RE_render_ext.h (+2, -0) (Diff)
/source/blender/render/intern/source/render_texture.c (+23, -8) (Diff)
/source/creator/creator.c (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021