I am wondering if anyone can ponder this and come up with an answer. I am working on this material, glass with airbubbles in it (the bubbles are pretty much the same material with IOR 1.0) and it crashes every time I try to render any scene containing the material. Here is a copy of the code.
Air = s.newMaterial(“standard”,[
“ka” , vector3( 0.00000 , 0.00000 , 0.00000) ,
“kc” , vector3( 1.00000 , 1.00000 , 1.00000) ,
“kr” , vector3( 0.12000 , 0.12000 , 0.12000) ,
“kt” , vector3( 1.00000 , 1.00000 , 1.00000) ,
“kd” , 0.03000 ,
“km” , 0.20000 ,
“ksg” , 0.30000 ,
“caustics” , 0 , 0 ,
“shadowing” , 0.12000
])
Borb = s.newPattern(“bubbles”,[
“scale” , 0.70000 ,
“turbulence.amount” , 0.00000
])
ender = s.newPattern(“multifractal”,[
])
few = s.newPattern(“sub”,[
“patterns” , Borb , ender
])
PrinceChopper = s.newInterior(“hyper”,[
“material” , Air ,
“density” , few
])
s.interiorBegin(PrinceChopper)
BubblyGlass = s.newMaterial(“standard”,[
“ka” , vector3( 0.00000 , 0.00000 , 0.00000) ,
“kc” , vector3( 0.95000 , 1.00000 , 0.95000) ,
“kr” , vector3( 0.00000 , 0.10000 , 0.00000) ,
“kt” , vector3( 1.00000 , 1.00000 , 1.00000) ,
“kd” , 0.05000 ,
“km” , 0.20000 ,
“ksg” , 0.30000 ,
“IOR” , 1.30000 ,
“transmission” , 1 ,
“caustics” , 2 , 2
])
s.interiorEnd()
That’s all the source from the material. I am using MatSpiderLF for this. I experienced crashes in both MatSpider and a scene I exported from blender including this material. They both crash after about 10 percent is completed. One theory I have is that the trace-depth necessary to render the material exceeds the trace depth set in the interface, although I could be wrong about this. If there are any real lightflow experts out there (eeshlo?) who know the answer, I would be glad to hear it! A possible clue is that the shadowing parameter on the air material is ignored by the ‘hyper’ interior…it defaults back to 1.0. I don’t know if this is relevant. Do I need to enable caching on the interior? Sorry about the odd names for materials and patterns, I do that so if I use a lot of previously created materials from MatSpider I won’t have a problem with duplicate names… I don’t get any error message from lightflow during the rendering either. It just crashes.