Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
3
Question by joshualimm · Jul 06, 2014 at 11:55 AM · shadowdirectional light

Directional light shadows not working

I'm using Unity Free 4.5.1f3 on a Surface Pro 2.

I can't get shadows to work with directional light.

I tried building the exact scene on my MacBook Air (2011), and shadows work.

I've tried reinstalling Unity and creating a new project from scratch, but still no shadow.

Made sure Windows Update is up-to-date; no errors in Device Manager.

Did I miss something?

Windows 8.1, Surface Pro 2:

Windows

Mac OS X, MacBook Air 2011

MacOS


Update 1

Back from resetting my Surface Pro 2 (using Windows 8's reset).

Ran all windows updates, and installed Unity 4.5.1 before anything else.

Still does not work.

Dx11

Notice:

  1. Windows Update up-to-date

  2. Bare-minimum software installed

alt text

Dx9 (-force-d3d9)

alt text

OpenGl (-force-opengl)

alt text


Update 2

I've installed 4.5.2f1, but still no shadows.

Version 4.5.2f1 (9abb1b59b47c)


Update 3

Got confirmation from Unity that they were able to replicate the problem with a Surface Pro 2.

Have submitted a bug report.

Just for the record, I tried running another DirectX 11 shadow implementation and it worked. So the problem appears to be unique to Unity.

Update 4

It's been a long time since I've submitted the bug request, but have not heard back from Unity.

Emailed the same Unity guy who contacted me, but never got a reply.

In the meantime, I managed to get myself a Surface Pro 3 (i7/512).

Installed Unity 4.5.5f1 on it, and still no shadows!

So here's the score so far:

MacBook Air 2011/Surface Pro 1 = Shadows WORKS

Surface Pro 2 / Surface Pro 3 = Shadows NOT WORKING

So I thought, what the hell, let's try it on Android

Installed on Nexus 5 = Shadows WORKS!

Tried on Galaxy S2 = Shadow WORKS!

Long story short:

  1. Unity behaves differently on different devices.

  2. Bug was confirmed by Unity; raised bug, but case was never updated, let alone fixed

  3. Further attempts to contact Unity = no response

  4. Tried changing IDE's renderer; resulted in weird rendering issues (Dx9, OpenGL)

  5. Tried workaround suggestions of disabling Dx11

  6. Crashes Unity's IDE completely (also raised bug, but no response)

  7. Subsequent attempts to start Unity = Crashes.

  8. Project file completely corrupted, had to delete project to even start up

I came across this bug when following the "Roll-a-Ball" tutorial, but never even got to the spinning cubes.

Many thanks to the community members who have tried to help.

But I've decided not to pursue this bug, nor Unity, any further.

macos.jpg (184.8 kB)
win.jpg (150.0 kB)
Comment
Add comment · Show 10
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image joshualimm · Jul 09, 2014 at 09:08 AM 0
Share

I tried -force-d3d9 and -force-opengl, but still no luck. And this is after a clean reset. OS is up-to-date, and only Unity installed.

avatar image Josh Naylor ♦♦ · Jul 16, 2014 at 10:55 AM 0
Share

Hey @joshualimm, I can get a surface pro 2 in the office tomorrow and try see what the problem is. Can you send me the project (joshn@unity3d.com) and we'll have a look.

Also, have you tried it with any other (older/newer) versions of unity. 4.5.2 is out now: http://unity3d.com/unity/download

avatar image Dave-Hampson ♦♦ · Jul 21, 2014 at 01:17 PM 0
Share

@joshualimm - Does this bug repro on any other Windows machine, e.g. a PC with Windows 8.1 with a similar video card to a Surface Pro. Or Windows 7?

When you run other Unity games on the Surface Pro, do they have shadows okay?

avatar image Keitto · Jul 21, 2014 at 01:43 PM 0
Share

I'm having similar issues, except that my whole geometry becomes invisible if I enable shadows. Could be because I'm using different shaders?

I've tried this with i$$anonymous$$ac/GF6xx$$anonymous$$-something, Win7/GF660, $$anonymous$$ac$$anonymous$$ini/intel 4000, Dell Optiplex 390 win7/intel 4000-something and Surface Pro 2/intel 4400.

Only the Surface Pro 2 has trouble with shadows. The Dell and $$anonymous$$ac$$anonymous$$ini with intel gpus perform just fine.

(note: shadows glitching in the attached screenshot: they're enabled but not showing on the i$$anonymous$$ac shot. Only demonstrating missing geometry on spro2)

image

avatar image joshualimm · Jul 21, 2014 at 02:03 PM 0
Share

@Davehampson - Tried it with my older Surface Pro 1 (Intel HD 4000), and shadow works. Unity's shadow work on my $$anonymous$$BA2011 and Surface Pro 1; does not work on my Surface Pro 2, even after a clean reset. Well, that's the last of my machines.

alt text

surface_pro_1.png (379.9 kB)
Show more comments

12 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by thomas264dob · Sep 18, 2016 at 10:34 AM

under shadow quality setting change shadow distance to "in my case to 10000".

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Kazimieras · Nov 10, 2014 at 10:07 AM

Hey guys,

This issue is related to Intel HD graphics drivers. Surface PRO owners should be aware of that Microsoft releases tuned Intel HD drivers with a huge delay, after the latest drivers appear on Intel download center. That means, you simply can't install drivers from Intel download center, need to wait for Microsoft tuned release. For the moment on Surface PRO tablets you can get Intel drivers version "10.18.10.3496" which seems fixes the problem with hard shadows issue. Also, for Intel HD owners - try to keep your drivers updated :) With release "15.33.30.64.3958 (10.18.10.3958)" Unity works fine.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by Tzani · Dec 30, 2014 at 03:50 AM

Try Edir -> Graphic Emulation (near the bottom) -> No Emulation Worked for me.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FlyingHighUp · Jun 22, 2015 at 01:42 AM 0
Share

Same here. Awesome!

avatar image
1

Answer by CoderVinod · May 12, 2018 at 07:57 AM

In my case, it was automatically changing quality settings from Fantastic to Fastest in build. So changed it again to Fantastic from script (Ex : QualitySettings.SetQualityLevel(5)). 5 is id for Fantastic.

Deleting all quality settings except Fantastic also resolves issue.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by crazynerk · Jul 06, 2014 at 12:25 PM

Hmm, try changing the type of shadow to hard shadow instead of soft if that doesent work, the surface pro unity may have some bugs or rendering issues

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image joshualimm · Jul 06, 2014 at 02:37 PM 0
Share

no change when I select hard shadows

  • 1
  • 2
  • 3
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

random flickering on terrain with directional light shadowing on 0 Answers

Shadow not showing up inside closed room 3 Answers

Free directional light shadows 2 Answers

Roll-a-ball tutorial weird shadows 0 Answers

Realtime Shadow Problem On lightmapped Object 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges