Texture Node for Gabor Noise Method Band-Limited Isotropic only.
Details
Diff Detail
- Repository
- rB Blender
- Branch
- arcpatch-D287
Event Timeline
Gabor Noise Texture Node
Revised submit of diff with arc as previously new files were not added.
Initial code and style review. Haven't tested the functionality yet.
Also the patch is missing the .osl shader file.
| BUILD_NOTES.txt | ||
|---|---|---|
| 3 ↗ | (On Diff #1196) | This file should not be in the patch. |
| intern/cycles/kernel/svm/svm_noise.h | ||
| 392 | This is not needed after all, svm_noise.h already has this OSL compatible header and we should only have 1 licence header per file. You can keep the 3 lines with gabornoise.com link of course. | |
| 424 | No need to re-declare this, you can remove the #ifndef KERNEL_SSE2 on top of this file, so quick_floor() is available for both Perlin and Gabor. | |
| 467 | Whitespace, no need for these empty lines. :) There are more unneeded white lines beneath too. | |
| 523 | Completely upper-case variables should only be used for Definitions, not regular variables. Also I guess you can use float variants of the math defines, we have our own M_PI_F for example. | |
| 538 | Use M_PI_F here too, to avoid the cast. | |
| intern/cycles/render/nodes.cpp | ||
| 797 | Value: We use "Fac" as name for these outputs, short form of "Factor". This should be consistent with other nodes. | |
| source/blender/gpu/intern/gpu_codegen.c | ||
| 1203 ↗ | (On Diff #852) | Why was that changed? |
| source/blender/nodes/shader/nodes/node_shader_tex_gabor.c | ||
| 43 | "Fac" must be changed here too. | |
| 64 | If you do this here, you should create a stab function in source\blender\gpu\shaders\gpu_shader_material.glsl, same like "node_tex_checker" or so. | |
Did some cleanup and renamed "Impulse" to "Impulses" in the UI, I think we should use the plural here.
ToDo:
- OSL shader is still missing.
- CUDA does not compile with this.
any image associated with this noise?
nm
http://maverick.inria.fr/~Romain.Vergne/blog/data/research/fast-gabor-noise-image.jpg