• 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 siddharth3322 · Feb 19, 2019 at 09:13 AM · 3dshadowslayersdirectional lightpoint light

Shadows using Point Light

I have a car garage area and I have placed a point light to give lighting and shadows for all objects of the garage area.

alt text

I can able to get lights but there are no shadows, I hope you can see in the above screenshot. Here you have light inspector data:

alt text

In the same scene, there is a Directional Light too and it can able to generate shadows too. But I want to use only Point Light for my garage area so I have created a separate layer for this.

After this Point Light can't able to generate shadows but Direction Light can able to show shadows in the Garage area too that I have checked. Now guide me to display shadows using Point Light.

car-garage-area.png (229.4 kB)
point-light-settings.png (129.0 kB)
Comment
Add comment · Show 4
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 zereda-games · Feb 19, 2019 at 02:17 PM 0
Share

As unity manuals for Shadows says:

https://docs.unity3d.com/$$anonymous$$anual/ShadowOverview.html

Each $$anonymous$$esh Renderer in the Scene also has a Cast Shadows and a Receive Shadows property, which must be enabled as appropriate.

Enabling Shadows

Use the Shadow Type property in the Inspector to enable and define shadows for an individual light.

Property||Function:

Shadow Type -The Hard Shadows setting produces shadows with a sharp edge. Hard shadows are not particularly realistic compared to Soft Shadows but they involve less processing, and are acceptable for many purposes. Soft shadows also tend to reduce the “blocky” aliasing effect from the shadow map.

Strength -This determines how dark the shadows are. In general, some light is scattered by the atmosphere and reflected off other GameObjects, so you usually don’t want shadows to be set to maximum strength.

Resolution -This sets the rendering resolution for the shadow map’s “Camera” mentioned above. If your shadows have very visible edges, then you might want to increase this value.

Bias -Use this to fine-tune the position and definition of your shadow. See Shadow mapping and the Bias property, below, for more information.

Normal Bias -Use this to fine-tune the position and definition of your shadow. See Shadow mapping and the Bias property, below, for more information.

Shadow Near Plane -This allows you to choose the value for the near plane when rendering shadows. GameObjects closer than this distance to the light do not cast any shadows.

Enable Cast Shadows by selecting On from the drop-down menu to enable or disable shadow casting for the mesh

Alternatively, select Two Sided to allow shadows to be cast by either side of the surface (so backface culling is ignored for shadow casting purposes), or Shadows Only to allow shadows to be cast by an invisible GameObject.

avatar image siddharth3322 zereda-games · Feb 19, 2019 at 02:21 PM 0
Share

Cast Shadows and Receive Shadows by default come with ON property as like this example: alt text

receive-cast-shadows.png (87.7 kB)
avatar image zereda-games · Feb 19, 2019 at 02:24 PM 0
Share

Ahh got it! Shadow cascade $$anonymous$$ust be on 4 cascades to work with lighting. Yours is set to no cascades in top pic left

[Edit]This is not Accurate at all, Leaving up though until questioner moves his comment so his example image doesn't get removed also. Will remove when he/she does.

https://docs.unity3d.com/$$anonymous$$anual/DirLightShadows.html

avatar image siddharth3322 zereda-games · Feb 19, 2019 at 02:28 PM 0
Share

I have tried to set 4 cascade but things remain the same: alt text

4-cascades-setting.png (351.2 kB)

3 Replies

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

Answer by siddharth3322 · Feb 21, 2019 at 08:31 AM

Now I can able to find help from Unity Forum member. If you have directional light exist and you are also using other types of lights in the same scene then you have to increase Pixel Light Count figure in Rendering section, I have 0 over there and now I set to 1 and now I can able to get shadow over my garage area.

alt text

This is the exact reply from the right person: alt text

I hope this reply become useful to other members.


garage-with-shadows.png (174.3 kB)
member-reply.png (57.0 kB)
Comment
Add comment · Show 3 · 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 zereda-games · Feb 22, 2019 at 06:04 AM 0
Share

This turned out to be a useful resource, thanks for updating us on how it all when :)

avatar image zereda-games zereda-games · Feb 22, 2019 at 06:05 AM 0
Share

PS. Looks like a game i'd play ;)

avatar image zereda-games zereda-games · Feb 22, 2019 at 06:06 AM 0
Share

You should update the one photo in original message highlighting where they error is so other find it easy :) just add a red box like i did :)

edit

Also mark as solved in title [Solved], close and this question is complete :)

avatar image
1

Answer by zereda-games · Feb 19, 2019 at 04:49 PM

So even with our Unity's being a different version apparently i found the issue. Below are 2 example images as to where the issue was.

NOTE

To be clear, I do not think the first image is the issue, i think it is the intensity only! I simply noticed the warning and thought i should share as it clearly doesn't tell you on older versions of unity in the inspector, this must be a very new feature, as our unities are only a few months apart. Anyway, hope this helps some people out. and @siddharth3322, thank you for letting me help.

Thamas bell @ ZeredaGames and Co.

alt textalt text


exampleforweb.jpg (53.1 kB)
exampleforweb2.jpg (79.4 kB)
Comment
Add comment · Show 7 · 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 zereda-games · Feb 19, 2019 at 04:50 PM 0
Share

Trying to copy your setting from the picture and i saw this error/\

avatar image siddharth3322 · Feb 19, 2019 at 04:52 PM 1
Share

Wow, excellent, you found the solution. But feel sad that I can't able to use point light now. Please write proper explanation to your answer so I can mark it as correct.

avatar image zereda-games siddharth3322 · Feb 19, 2019 at 05:00 PM 0
Share

sorry this didn't work out as expected. But try out second pic and see if That lets you still use it!?

avatar image siddharth3322 · Feb 19, 2019 at 05:03 PM 0
Share

In Point and Spot Light shadows not possible to display, right ??

avatar image zereda-games siddharth3322 · Feb 19, 2019 at 05:05 PM 0
Share

your Intensity is 3 and default is 600 check that. Umm It says at runtime. but baked and mixed the error goes away. so i don't think that's causing your issue.

avatar image siddharth3322 · Feb 20, 2019 at 12:56 PM 1
Share

I upvoted for your efforts and thanks for your time.

avatar image zereda-games siddharth3322 · Feb 21, 2019 at 01:56 AM 0
Share

Recogniiiiisssee!! Thank you! much appreciated :)

avatar image
0

Answer by bpaynom · Feb 19, 2019 at 01:08 PM

Disable Directional light (for testing), and check the garage is lighted by the point light. Increase the range and intensity. Sometimes the light from the Sun (directional light) brights to much and makes some shadows to be "invisible".

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 siddharth3322 · Feb 19, 2019 at 01:55 PM 0
Share

I have disabled directional light and increased the intensity of point light but there are no shadows. alt text

point-light-higher-intesity.png (297.1 kB)
avatar image Captain_Pineapple siddharth3322 · Feb 19, 2019 at 02:24 PM 0
Share

have you read through the manual? have you enabled objects to acutally receive shadows?

avatar image bpaynom siddharth3322 · Feb 19, 2019 at 02:36 PM 0
Share

That photo doesnt look like there is only one point light. Have you check that there is no other lights? You can check it typing "light" in the search area of the Hierarchy. Also, check ambient light. And what shaders are you using for this? Default ones?

avatar image siddharth3322 bpaynom · Feb 19, 2019 at 02:40 PM 0
Share

Basically, if I turn off Point light and enable direction light then there are clear shadows become visible. See below image:

alt text

directional-light-shadows.png (174.3 kB)

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

121 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Point lights are killing my directional light's cast shadows. 1 Answer

Shadows with Two Directional Lights 1 Answer

Multiple directional lights with shadows 1 Answer

Root Movement with Additive Layers 0 Answers

Why is a directional light affecting a layer it should be restricted from? 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