x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[4.7.3] self shadow issue

I just found out that 'self shadowing only' became available since 4.6 build and did some tests.

It works well with directional light dynamic but point / spot lights cast shadows onto world objects from self-shadowing only meshes. (all the lights were dynamic)

Tried to find any references about this 'self shadow only' feature but couldn't find one. Any help? Thanks

Product Version: Not Selected
Tags:
more ▼

asked Mar 27 '15 at 11:13 AM in Rendering

avatar image

STEIN84
43 5 9 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi STEIN84,

From what I can see "Self Shadowing Only" is working as intended. This option enabled object to not cast a shadow except on themselves, but does not guarantee that other shadows cannot be cast on to them. This will only work with movable objects as well. If you leave it as static it will bake a shadow when lights are built.

Here is a test for this:

alt text

In this test the spot lights are set to Movable. Both the Chairs in each is set to Movable.

As you can see in the first image with both using Self Shadowing Only the chairs are not casting a shadow. This is expected since they are flagged to self shadow only. They will receive light but not cast any shadows from that light.

In the second image I've enabled only the bottom mesh to use Self Shadow Only. The chair on the bottom is still only shadowing itself, but because the top mesh is not set to Self Shadow Only it will cast a shadow that can directly affect the mesh underneath. This is correct behavior, otherwise the meshes tagged with Self Shadow Only would never be shadowed by any other mesh.

This setting guarantees that any shadow being cast by the mesh itself is from it's own shadows and not shadows generated by a light source. This does not say that it will prevent other shadows from affecting the mesh.

I hope this helps and if you have any questions feel free to ask.

selfshadowing.png (199.7 kB)
more ▼

answered Mar 27 '15 at 07:34 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image STEIN84 Mar 30 '15 at 05:39 AM

There was a modification in ShadowSetup.cpp that I wasn't aware of. Getting rid of it, it works well like you said. Thanks :)

avatar image STEIN84 Mar 30 '15 at 06:59 AM

One more question. Inset shadow (which is needed for self shadow only) isn't available for point / spot lights for now. Is there a short term plan for making this available?

avatar image Tim Hobson ♦♦ STAFF Mar 30 '15 at 08:54 PM

No plans that I'm aware of at the moment.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question