new occlusion shader new noise shader functions

anyone playing with this two new tools?


It would be really nice if you could tell us which version and where to find these new tools, cause I just asked everyone in #blenderchat, and not a single one of them know what you are talking about :stuck_out_tongue:

he has a secret version,…let’s jump him in the alley!

He probably means the patches submitted by Eeshlo mention here in the Bf-commiters mailing list:

The AO-patch is a few messages later.
Both patches are given ‘as is’ since Alfredo won’t have the time to tune them anytime soon…

hmm, better update my cvs grab then!!

Quick question: how do I apply this patch?

Oh, and can somone post that patch file (ambocc) up somewhere, so as I can grab it?


About applying the patch, if you’ve got unix/linux:
patch -p0 < patch.txt
… in the blender root dir. Should work in cygwin too. If you don’t have any of those, here are the patched files:

Also, note that only the scons build system was changed to compile the new Noise.c file.

When I unzip, then execute the command (from the base blender source dir, “blender”) “patch -p0 aopatch.txt” or noisepatch.txt, it doesn’t do anything, it just sits there.

I’m running fedora core1.

$ scons
scons: Reading SConscript files ...
Using config file: config.opts
scons: warning: Ignoring missing SConscript '/home/nallworth/Blender/CVS/bf-blender/build/linux2/source/SConscript'
File "SConstruct", line 837, in ?
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Source `source/creator/buildinfo.c' not found, needed by target `/home/nallworth/Blender/CVS/bf-blender/build/linux2/source/creator/d_buildinfo.o'. Stop.
scons: building terminated because of errors.

You missed the “<”, that’s for redirecting the patch text to the patch app.

here are some images of the ao shader:
works fine but a smooth function isn´t there only high values create smooth shadows. lower values create a heavy grain.

but it is not to slow

i only have an os x port. i could put up two builds if people like!

looking almost GIish…

mmm…got it updated, patched etc. Building now :slight_smile:

I’ll upload this after it builds. Maybe I’ll make new builds every week for people, that way lazy linux users don’t have to grab 30+mb of code and type scons…

edit: something’s broken, or I odn’t have needed packages or something:

source/blender/python/api2_2x/MTex.c:66: warning: missing initializer
source/blender/python/api2_2x/MTex.c:66: warning: (near initialization for `BPy_MTex_methods[1].ml_meth')
source/blender/python/api2_2x/MTex.c:105: warning: missing initializer
source/blender/python/api2_2x/MTex.c:105: warning: (near initialization for `MTex_Type.tp_getset')
source/blender/python/api2_2x/MTex.c: In function `MTex_repr':
source/blender/python/api2_2x/MTex.c:251: warning: unused parameter `self'
scons: *** Source `source/blender/python/api2_2x/Noise.c' not found, needed by target `/home/nallworth/Blender/CVS/bf-blender/bf-blender/build/linux2/source/blender/python/api2_2x/Noise.o'.  Stop.
scons: building terminated because of errors.

This is from a fresh checkout with applied patches listed above.


a new file
Noise.c (the python module) which should go in

Ball !

Is there any way to get this to work in a windows version?

compile it?

compile it?[/quote]

Quite a helpful answer. Not everyone who is involved in computer arts knows how to compile.

3 questions:

  1. when are we going to see that fiture in a test build or somthing of that sort?

  2. can it simulate caustics?

  3. is it solwer than yafray renders?

all that I have to say is WOW !

Soon I guess.

  1. can it simulate caustics?

No, it’s only a lighting method.

  1. is it solwer than yafray renders?

It depends. In itself, the method to calculate the lighting is the same as one used in Yafray.


It looks interesting. Does it work with scanline renders?