Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by YeeLuke · Mar 25, 2013 at 01:47 AM · lightingtreespotlight

Spotlight lighting objects outside area light is being shown on

Ok so i'll try to explain this question as best as I can. I have an FPS character holding a "flashlight" a.k.a a spotlight. The problem is, the direction the spotlight is shining is lighting up objects (trees, haven't tried other objects) outside the beam of light. I have been searching everywhere for answers how to resolve this and I have been altering the intensity of the light, the angle of the light, etc... So if someone is willing to help, that'd be fantastic. Thanks guys.

Comment
Add comment · Show 2
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 YeeLuke · Mar 25, 2013 at 03:12 AM 0
Share

No one? :/

avatar image Benproductions1 · Mar 25, 2013 at 03:16 AM 0
Share

Sorry, but you can't expect people, who are giving their free time to answer your questions, to just flood you with answers. Have you tried the unity primitives with the same setup? Sometimes the shaders act weirdly with trees....

1 Reply

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

Answer by DrShikura · Mar 25, 2013 at 04:12 AM

There's several simple fixes for this. i'm not 100% sure what you mean, so I'll provide several answers for the different possible scenarios.

1) If you are using Unity Free, objects WILL NOT block the light beam. for example, if you shine the whole spotlight into a block, it will still illuminate the block behind it. This is because realtime shadows are disabled in Unity Free. alt text

2) If your flashlight intensity is acting funny and not ending where it should, you could try various ways to work around this. For example, fog. It's one thing to turn the Ambient Light all the way down so it looks dark, but often, it helps a little to mix a dark fog in there as well. I assume with this case, you might be going for a Slender-like approach on the darkness, so, you can take these approaches to solve the problem.

Step 1: Lower the ambient light. alt text

This will darken the world and geometry enough so the light stands out nearby.

Step 2: Add a dark fog. alt text

This will provide an ambient darkness that fades your flashlight. If you want the flashlight to fade for the following effect, try these Linear Fog settings. alt text

All in all, the results are a varying darkness. Without the fog, your fhashlight fades on itself, but if told not to fade, your flashlight will keep going. Like so;

alt text

When coupled with the fog, it created a simple and nice blended fade for the spotlight. Like so;

alt text

Fiddle with the fog on your own time, make sure it's just right! I hope this helped. Good luck!

Regards, -Itami

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 Benproductions1 · Mar 25, 2013 at 04:13 AM 0
Share

Good answer

avatar image YeeLuke · Mar 25, 2013 at 04:20 AM 0
Share

Thank you very much, I had fog enabled but I hadn't made it dense enough. Thank you so much for your help!

avatar image DrShikura · Mar 25, 2013 at 04:55 AM 0
Share

No problem, Luke! Goo luck on your project. (:

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

12 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

Related Questions

Spotlight illuminating half model 2 Answers

Flickering circle of light around character 0 Answers

How can I change the SpotAngle's range in a SpotLight? 0 Answers

Leaves spotlight issue 0 Answers

Android Performance Issues with Spotlights in 3D Scene 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