• 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 somet$$anonymous$$ng?

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 anyt$$anonymous$$ng 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 t$$anonymous$$s 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 t$$anonymous$$s 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 iMac/GF6xxM-something, Win7/GF660, MacMini/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 MacMini with intel gpus perform just fine.

(note: shadows glitching in the attached screenshot: they're enabled but not showing on the iMac 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 MBA2011 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
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

avatar image
0

Answer by SanderN · Jul 06, 2014 at 12:51 PM

I'm not 100% sure how to fix it but you should check few t$$anonymous$$ng just in case:

  1. Make sure your quality settings is set on max.

  2. Make sure you have shadows enabled under quality settings.

  3. Try changing soft shadows to hard shadows, because unity free doesn't support soft shadows.

  4. Make sure that both the sphere and the plane can receive and cast shadows under Mesh Renderer settings.

Maybe you already tried all of them, but if you didn't I hope it works :)

Comment
Add comment · Show 4 · 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:36 PM 0
Share

Tried different quality settings; "hard and soft shadows" enabled; tried hard shadows on the light; both sphere and plane are casting/receiving shadows. Still no luck.

avatar image SanderN · Jul 06, 2014 at 04:03 PM 0
Share

Hmm that really looks like a weird bug :S It provably won't help, but you might also want to try changing the render mode under light source to "important". That is pretty much the last thing I can think of what might cause the lighting to mess up.

avatar image joshualimm · Jul 09, 2014 at 09:35 AM 0
Share

Setting Render mode to Important has no effect

avatar image screenname_taken · Jul 14, 2014 at 12:50 PM 0
Share

I was about to say that perhaps the GPU doesn't support stencil buffer (since that is needed for shadows i think) but then again my mac mini shows real time shadows and it's using an older intel HD gpu... (Tegra2 and 3 can't show the default realtime shadows because of just that. You'd have to use a render target shadows system for them...) The one you have is DX11, so i can't see it not supporting stencils.

avatar image
1

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

Hey guys,

T$$anonymous$$s issue is related to Intel HD grap$$anonymous$$cs 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" w$$anonymous$$ch 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 -> Grap$$anonymous$$c 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
0

Answer by dahrrr · Jan 15, 2015 at 05:30 AM

Check quality settings - remove setting with no shadows, or change it. It help for me. Unity somehow could change to t$$anonymous$$s option after build without permision.

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
  • 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

Realtime Shadow Problem On lightmapped Object 1 Answer

Directional Light creates wierd shadow? 2 Answers

Player Controller Has Huge Shadow? 0 Answers

Weird Shading Thing (Directional Light) 1 Answer

Shadow artifacts when using deferred rendering 2 Answers


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