View Full Version : Occlusion Plugin Bug and Workaround

10 October 2004, 01:41 PM
I found a bug in Skidbladnir's Occlusion plugin that I thought I would share. I've been keeping him informed via email. Here is the actual plugin: (

First - it is a great plugin! We are using it in production now for our interior animations and illustrations.

Here is the bug - which only occurs when using lwsn.exe (screamernet) on our renderfarm and never in layout (lightwave.exe). We use Butterflynet Render as the controller, but that is irrelevant as lwsn.exe does the rendering.

If you have a null object in your scene as the first object the occulsion plugin will not render properly - at all in fact.

The same scene works fine in layout, but for some reason doesn't when using the render nodes (lwsn.exe).

Now if you remove the null object and put it after the object(s) receiving the occlusion plugin then everything is fine.

At first I thought it had something to do with the Eki lighting rigs (Overcaster) for ambient light that we use, but it really was just that they were loaded prior to my interior objects.

I deleted the null and lighting rig and then reloaded it (thus placing it after the interior objects) and no problems now.

I successfully rendered 4 scenes overnight of several hundred frames without any problems. There are hundreds of polys and dozens of objects - no problems at all.

I tried a simple scene with one object and a null and had the same results. With or without shadows casting, receiving, etc. and with or without raytracing on. It is clearly the null being before the occluded objects.

So I recommend that everyone make sure they don't have a null as the first "object" in the scene for sure. The question is, can you have a null prior to a second object that is getting the occlusion plugin. I haven't had time to test that. Perhaps someone else can.

It seems to be an easy work around. Just wish it wouldn't have taken all day to figure it out - I was convinced it was the lighting, shadow settings or even something like fprime or multithreads - but it wasn't.

Thanks again Skidbladnir! This is a great plugin that adds some nice subtle "pop".


CGTalk Moderation
01 January 2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.