stereolabs / zed-unity

ZED SDK Unity plugin
https://www.stereolabs.com/documentation/guides/using-zed-with-unity/introduction.html
MIT License
251 stars 57 forks source link

No shadows in build #221

Closed Pixionrevolution closed 2 years ago

Pixionrevolution commented 2 years ago

Preliminary Checks

Description

When I launch the app in editor the shadows are being displayed "properly" but when I build the app for some reason shadows are not working. Verified everything regarding shadows was enabled in Quality settings and Graphics and I don't know where to look now.

Steps to Reproduce

1.Add directional light to scene with ZEDLight.cs 2.Add object to cast shadow 3.Build

Expected Result

Shadow displaying in build as "fine" as in editor

Actual Result

Shadows not displaying only in build

ZED Camera model

ZED2

Environment

Windows
i7
GTX1080

Unity plugin 3.6

Anything else?

No response

Pixionrevolution commented 2 years ago

Does anyone have a solution or advice please?

Bvallon-sl commented 2 years ago

Hi,

Are you using URP or HDRP ?

I don't have the issue when using the latest plugin version (master branch without URP nor HDRP). Tested with the SimpleMR sample scene using unity2021.1. Note that I increased the shadow strength otherwise it was not very visible.

Best, Benjamin V.

Pixionrevolution commented 2 years ago

Hello, Thanks for answering me. I’m not using any specific render pipeline so I basically have the same setup as you do. What value did you put on the shadow strength ?

Le 22 déc. 2021 à 11:12, BenjaminV_sl @.***> a écrit :



Hi,

Are you using URP or HDRP ?

I don't have the issue when using the latest plugin version (master branch without URP nor HDRP). Tested with the SimpleMR sample scene using unity2021.1. Note that I increased the shadow strength otherwise it was not very visible.

Best, Benjamin V.

— Reply to this email directly, view it on GitHubhttps://github.com/stereolabs/zed-unity/issues/221#issuecomment-999452337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIXWAZQDZ6RGLCDCQN2TYZDUSGQA7ANCNFSM5JXQYXQQ. You are receiving this because you authored the thread.Message ID: @.***>

Bvallon-sl commented 2 years ago

I put it at maximum value (1) just to be sure I see it.

Pixionrevolution commented 2 years ago

Ok, I just fixed my problem by comparing creating a new project and counter check all the settings. Somehow in Project Settings/Quality, the level were set on default as Very-low. I don't know why and I feel a bit dumb not to have noticed it. Anyway, the problem is fixed, thanks!