Problem with depthmap shadow

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  04 April 2010
Problem with depthmap shadow

Hi Everybody ....
i have this problem when i using depthmapShadow .

the scene is sooo big and for the sake of the rendering time i can't use ray trace shadow for rendering.i cant just simply scale down the scene cause its part of the other scene.
somebody help me the only thing i can do is bake the shadow with spot light near the scene not too far from the objects and assign it in layered texture with blending mode set to illuminate but its not what i want .
in this image i using directional light and its in maya.
please help me there must be some attr some where for situations like this....
  04 April 2010
There are two options that I would suggest:

1. Instead of using a directional light use a spot light and place it very far away from the scene. Adjust the spots cone to be as small as possible yet still illuminates the scene as you like. Then enable depth mapped shadows on that light. Since using a spot light limits the illumination to a cone it also limits the depth map to a cone. Now your depth map will not need to be as high resolution.


2. You could always disable the directional lights shadows and then use a shadows only spot light to subtract the shadows. To do this, place the spot light as in the above example and then set the lights color to 0,0,0 and the shadow color to -1,-1,-1. This will pull shadows out of the directional lights illumination. With this situation you may even be able to have an even smaller depth map than the previous option because the shadows are independent of the illumination. You can make the cone angle of the spot light as tight as you need around the shadow casting objects or even have a different shadow light for each object.
  04 April 2010
woaw thanks the second option is truly nice trick to do dude i did the first one i didn't get nice result using black color light and superblack shadowcolor for depthmap shadow is great it gives nice shadow in every area we want and no extra lighting in areas
that's what i needed dude thanks
and thanks for your reply
  04 April 2010
"Shadow-only lights" are sometimes the greatest invention since sliced bread. (Since sliced raisin bread!)
  04 April 2010
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:55 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.