[Bf-cycles] MAX_CLOSURE limit

Thomas Dinges blender at dingto.org
Tue Jul 30 00:20:01 CEST 2013


Hi Brecht,
today I got a blend file from a friend, which has a lot of closure nodes 
in one tree.
It's some kind of dispersion node setup with lots of shaders, about 30 
glass shaders, combined with about 30 add shaders.
The problem here is, that after some amount of add closures, it just 
ignores more. I checked the code and increased MAX_CLOSURE to 32, which 
then allows Cycles to use more of that tree.

Maybe this kind of setup can be achieved differently, without using that 
many closures.
I guess it's a corner case, otherwise we would have gotten bug reports 
about that limit before.

Anyway, would there be problems with increasing MAX_CLOSURE? As it's 
used for our ShaderClosure struct, probably a higher memory footprint?

I will check if I can upload the .blend file later, if needed.

Best regards,
Thomas

-- 
Thomas Dinges
Blender Developer, Artist and Musician

www.dingto.org



More information about the Bf-cycles mailing list