Page MenuHome

Gabor Noise Texture Node
Needs RevisionPublic

Authored by Jason Peel (jarope) on Feb 4 2014, 5:34 PM.

Details

Summary

Texture Node for Gabor Noise Method Band-Limited Isotropic only.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D287

Event Timeline

Jason Peel (jarope) updated this revision to Unknown Object (????).Feb 7 2014, 12:34 AM

Gabor Noise Texture Node

Revised submit of diff with arc as previously new files were not added.

Jason Peel (jarope) updated this revision to Unknown Object (????).Feb 27 2014, 11:41 AM

changes to dereferencing etc

Jason Peel (jarope) updated this revision to Unknown Object (????).Mar 7 2014, 1:38 AM
  • Resolved issue with random number being out of range which resulted in
Thomas Dinges (dingto) requested changes to this revision.Mar 7 2014, 2:04 PM

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.

Ignore the comment about gpu_codegen.c, this is not in the latest patch anymore.

Jason Peel (jarope) updated this revision to Unknown Object (????).Mar 7 2014, 2:54 PM
  • Changes made according to DingTo review:


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.


Last patch had line endings messed up, sorry.

Jason Peel (jarope) updated this revision to Unknown Object (????).Mar 14 2014, 2:09 PM
  • Applied suggested optimisations
This revision now requires changes to proceed.Feb 4 2015, 9:12 PM