View Full Version : Problem: Excluding an object from Environment fog.
Pete Latrofa 04-05-2007, 09:21 PM Problem: Excluding an object from Environment fog.
Hi,
I'm rendering my scene with the Maya Software renderer. My scene has an Environment Fog Material working. I have a poly plane in the background which is my sky texture. I want my Environment fog to affect everything in my scene except for my sky's poly plane. Does anyone know how I can do this? Thank you!
Pete
|
|
Hi,
I don't know if you can exclude an object from the env fog directly in Maya, but you could always work with seperate passes.
If you just want to exclude the sky plane from the fog because, for example, the image already shows fog:
1. Make a pass where all the object in the foreground are solid white (self-illum./incand./constant) and where the sky area is solid black (or deleted). Do not add fog! This will be your mask.
2. Now you render render out the image as usual, with fog, no need to add a sky plane though.
3. Make a render from just the sky plane, no fog, or use the image directly. Bring it into your compositing program.
4. Add the regular pass (2) on top and use the mask (1) to cut out the area that would be the sky.
Now you have the regular image with the sky area cut out and then pasted on top of the sky without env fog.
Let me know if it's not clear... it's late. :)
Pete Latrofa
04-05-2007, 11:34 PM
thanks for your reply. i guess i'm wondering if there is some kind of shader or mel script that will just make that object with my sky texture unaffected by the fog. seems pretty simple but I'm wondering if Maya just can't do it. i want to avoid compositing for this task if possible. :/
CGTalk Moderation
04-05-2007, 11:34 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.