• 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 /
avatar image
0
Question by coliam · Nov 10, 2013 at 04:45 AM · bugshadowscasting

Way to fix shadows not casting after importing unity store prefab?

Basically, I create a new project and throw in a floor, cube and directional light with Shadow Type set to Hard Shadows. This works fine and I get this result.

alt text

I then go to the unity asset store and download a fps pack that I brought quite a while ago.

When it has downloaded, Objects no longer cast shadows.

Im left with this:

alt text

I really dont know what is happening, and ive spent quite a while trying to fix this.
Anyone know what might be happening to cause this problem/bug?

Thanks in advance ^^

Edit


The Directional light:


alt text


The Cube:


alt text

Comment
Add comment · Show 15
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 ZDS Alpha · Nov 10, 2013 at 06:01 AM 0
Share

I have the same problem that directional light is not casting shadow.

I can cast shadow with other lights(Point light).

Check can you cast shadow with other types of lights by this way

File->Build Settings->Player Settings->Other Settings..

There should be Renderer and change it to deferred lighting.

avatar image coliam · Nov 10, 2013 at 06:09 AM 0
Share

If I remember correctly, Thats only available to Unity Pro users. :/

avatar image kiwi koder · Nov 10, 2013 at 08:16 AM 0
Share

Is the cube going to be moving/rotating/changing scale in the scene?

avatar image coliam · Nov 10, 2013 at 08:24 AM 0
Share

Yes x3 Alot more than the cube will be moving, though no shadows are casting for any of them.

avatar image kiwi koder · Nov 10, 2013 at 09:22 AM 0
Share

@coliam I was going to suggest lightmapping but since the cube is moving this is not possible. Can you post a screenshot of the settings of both the second cube and the directional light?

avatar image coliam · Nov 10, 2013 at 09:30 AM 0
Share

@kiwi I edited in the screenshots of the cube and light. ^^

avatar image kiwi koder · Nov 10, 2013 at 09:33 AM 0
Share

@coliam All the settings seem to be correct. Have you tried removing the fps pack you imported to see if it works again?

avatar image coliam · Nov 10, 2013 at 09:41 AM 0
Share

@kiwi I just removed the fps pack; the shadows still will not cast. :/

avatar image kiwi koder · Nov 10, 2013 at 09:56 AM 0
Share

@coliam I suspect that it may be a problem to do with free vs pro Unity but apart from that I do not know sorry.

avatar image coliam · Nov 10, 2013 at 10:00 AM 0
Share

@kiwi Thanks for the help anyway, Ill send a message into unity support and see what they think. Thanks again.

avatar image CyberMew · Nov 10, 2013 at 10:14 AM 0
Share

Have you tried creating a new project and see if it still happens? OR if you import the fps pack first, then add your objects?

@coliam in 4.2+ directional shadows is enabled for Free/Indie

Edit: Forward shading only.

Edit2: You can also try to see if there's anything in QualitySettings that might affect it.

avatar image CyberMew · Nov 10, 2013 at 10:18 AM 1
Share

Have you tried creating a new project and see if it still happens? OR if you import the fps pack first, then add your objects?

@coliam in 4.2+ directional shadows is enabled for Free/Indie

Edit: Forward shading only.

Edit2: You can also try to see if there's anything in QualitySettings that might affect it.

avatar image coliam · Nov 10, 2013 at 10:21 AM 0
Share

@Cyber$$anonymous$$ew It works fine until I import the fps pack. After I import the fps pack, No objects at all will cast shadows.

I know directional shadows is enabled for 4.2, I am using 4.2.2 I've checked all the Quality Settings, and found nothing.

avatar image coliam · Nov 10, 2013 at 10:24 AM 0
Share

@Cyber$$anonymous$$ew Scratch that, I just double checked the Quality Settings and found that Shadows was Disabled facepalm

Thanks for the help ^^

avatar image CyberMew · Nov 10, 2013 at 10:32 AM 0
Share

@coliam You can try import the fps pack first then setup your project and see if it makes a difference

Edit: Ah nvm, glad that I could help! Either the Directional Light or the Camera (can't remember which) will read or overwrite the QualitySettings depending on what you select for the gameobject

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by coliam · Nov 10, 2013 at 10:45 AM

Thanks to @CyberMew I found out what was causing this. For anyone else having this problem, Go to

Edit > Project Settings > Quality

And change Shadows > Disable Shadows to Hard and Soft Shadows

alt text

alt text

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
0

Answer by diggerjohn · Jan 25, 2014 at 10:29 PM

I just ran into this issue myself. After bringing all my content to 1.0 from the default .01 I found I could no longer cast shadows. I found it was all about the "Shadow Distance" parameter above. It just needed to be increased by a few multiples and all was well again. Thanks for this post, it made me think this through to that.

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

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

19 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

Related Questions

Android Shadows Degrade over time 1 Answer

Unity Coroutine problem 1 Answer

Planar Reflection Shadow Bug 0 Answers

What's causing these strange shadow bugs? 0 Answers

Shadow Black Lines Glitches 0 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