PDA

View Full Version : Problem with multipass rendering


astrofish
04-22-2003, 12:54 AM
Hi,
Today I was messing around with the multipass render settings, and was surprised to find that reflection (and refraction) channels apparently cannot be rendered out on a per-light basis. They always include all lights.

Unless I've missed something, this seems like an important omission. The whole point of rendering lights seperately is so you can tweak the balance/colour afterwards, but if you can't render something as fundamental as reflections per-light then it all seems a bit pointless.

In fact, it would be more useful if reflection and refraction were just lumped in with the diffuse (on a per-light basis), rather than a single seperate channel for all lights combined.

Someone please tell me I've missed something - because if not then it seems that multipass rendering is a lot less usefull than I was expecting it to be...

Cheers - Steve

chi
04-22-2003, 06:14 AM
hey....there isnt a problem...in you render settings look for the field labeled seperate lights...you can then choose...all...or selected...

after that you are given the option of which pass you want for the light....availible options are diffuse....shadow...and specular...

oops...miss read your post...reflection\refraction....technicaly these attributes are not affected by lights...so if you had a channel for each light they would all look the same

astrofish
04-22-2003, 11:03 AM
Ok, here's an example. Suppose I have a scene involving multiple lights and reflective objects.

If I manually turn on just one light at a time and render out a standard image, then I get a set of images that show me the complete contribution to the scene from each light source.

This is the simplest use of a multipass rendering approach, but as far as I can tell I can't get C4D's multipass rendering option to do this.

To use some mathsy notation, if D is the diffuse channel for my scene, R is the reflective channel, L1 and L2 are lights, and output is O, and I ignore all other channels, then a normal render would give me:
O = L1*(D+R) + L2*(D+R)

By manually turning lights on and off, I can render out two images:
O1 = L1*(D+R)
and
O2 = L2*(D+R)
as seperate images.

If I want to halve the brightness of the second light in my final image, I simply (in my compositor) do:
O = O1 + 0.5*O2.

Unfortunately, C4D won't let my render O1 and O2 as described above in its multipass settings.

The closest I can get is:-
O1' = L1*D
O2' = L2*D
O3' = (L1+L2)*R

The problem is that for the reflectance pass (O3'), the effects of both lights are pre-combined.

Given these outputs to work with I can't do the simple task of halving the brightness of a light...

Cheers - Steve

chi
04-22-2003, 06:05 PM
ok...I..see but you already solved your problem then...guess you cant do it automaticly...stick with the two renders...
we all learn something new....

astrofish
04-22-2003, 08:28 PM
Well doing it manually does at least mean that you can get the passes you need, but it's a real pain making sure you get everything set right for each pass. Multipass render really should be able to do this. Hopefully it will get added...

(Off to the suggestion box again.)

Cheers - Steve

CGTalk Moderation
01-14-2006, 10: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.