guycalledfrank / bakery-issues

Bug tracker for Bakery
4 stars 0 forks source link

Volume Shadows? #148

Open jg33 opened 1 year ago

jg33 commented 1 year ago

Heya- Great work on Bakery- saved me an incredible amount of time!

I'm not sure if this is an issue or just not possible, but objects in volumes don't seem to self-shadow- light passes through and illuminates the back of the object. Is that just how the volumes work or am I missing something?

Thanks!

: j

guycalledfrank commented 1 year ago

Hi, thanks! :)

Are the objects dynamic? Did you bake in Full Lighting mode? What is your render pipeline?

jg33 commented 1 year ago

Thx for the quick response!

Objects are dynamic, baked in full lighting, built-in pipeline!

On Friday, Mar 17, 2023 at 6:37 AM, Mr F @. @.)> wrote:

Hi, thanks! :)

Are the objects dynamic? Did you bake in Full Lighting mode? What is your render pipeline?

— Reply to this email directly, view it on GitHub (https://github.com/guycalledfrank/bakery-issues/issues/148#issuecomment-1473857170), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAPMU7C4UCMLP3IK3BSNOHTW4RSIJANCNFSM6AAAAAAV4F5BAM). You are receiving this because you authored the thread.Message ID: @.***>

guycalledfrank commented 1 year ago

So do you mean dynamic objects don't receive shadows from static objects or just the lack of dynamic-dynamic self-shadowing?

jg33 commented 1 year ago

Dynamic objects don’t seem to be self-shadowing from static lights, i.e. the far side of an object from a light is as lit as the side facing the light.

On Friday, Mar 17, 2023 at 10:30 AM, Mr F @. @.)> wrote:

So do you mean dynamic objects don't receive shadows from static objects or just the lack of dynamic-dynamic self-shadowing?

— Reply to this email directly, view it on GitHub (https://github.com/guycalledfrank/bakery-issues/issues/148#issuecomment-1474174901), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAPMU7E55NOEXHGXMRAGXRLW4SNSPANCNFSM6AAAAAAV4F5BAM). You are receiving this because you authored the thread.Message ID: @.***>

guycalledfrank commented 1 year ago

Oh. Are you using a volume-compatible shader? E.g. Bakery Shader with "Enable volumes" option? And do you have Bakery Direct Light on the same GameObject as your real-time light (if you have any)? Can you post some screenshots of the scene, the component (inspector) and Bakery render settings?

jg33 commented 1 year ago

Other than the self-shading, the volume seems to be working great! I’m using the proper shader and bakery point lights.

The object:

The light:

Bakery Settings:

Thanks!

On Friday, Mar 17, 2023 at 10:36 AM, Mr F @. @.)> wrote:

Oh. Are you using a volume-compatible shader? E.g. Bakery Shader with "Enable volumes" option? And do you have Bakery Direct Light on the same GameObject as your real-time light (if you have any)? Can you post some screenshot of the scene, the component (inspector) and Bakery render settings?

— Reply to this email directly, view it on GitHub (https://github.com/guycalledfrank/bakery-issues/issues/148#issuecomment-1474184084), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAPMU7CMQWTH44OIVQFN3JDW4SOJZANCNFSM6AAAAAAV4F5BAM). You are receiving this because you authored the thread.Message ID: @.***>

guycalledfrank commented 1 year ago

Looks like the pics didn't attach to your message...

jg33 commented 1 year ago

oh sorry- I guess GH email replies don't include them. image image image image image

guycalledfrank commented 1 year ago

Hmm is your volume set to "Is Global"? And can it be that it's just too low resolution?

jg33 commented 1 year ago

volume is set to global. It seems fairly high-res (33 tex /unit)? image

guycalledfrank commented 1 year ago

Indeed it's pretty high res... Not sure what's wrong then. Is it possible for you to send me a little test project to debug? Only the nearest shadow casting/receiving objects are needed + your configured lights (but no textures, sounds, scripts, etc).