• 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 CowsMilkYou · Apr 10, 2012 at 05:25 AM · terrainlightingspotlightflashlight

Spotlight not lighting terrain?

I am using a flashlight in my game, and when the flashlight is pointed down (my flashlight is just a spotlight attached to a model) at the terrain it does not light it very well. It lights it a little tiny bit, but not enough to see in the dark. The flashlight will light walls that I've made from Cubes very well. Why isn't the terrain lighting up, and how can I make it so that it does?

Comment
Add comment
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

6 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Grady · Apr 10, 2012 at 11:38 AM

Hey there, If the range and intensity of your spot light are both not at 100%, then try turning them up a little bit! It may be that the light isn't reaching where you want it to light up, or it may be that the intensity isn't enough to show up on the textures that you are using on your terrain... (I doubt that, but still, it could be a possibility...)

Anyhow, I think you should take a look at this post, as the third post down has a good example of how to create a flash light. It requires shaders in the scene, and a couple of other things.....

I take it you already have figured out how to toggle the flash light on and off??????

-Grady

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 iRaMb0 · Feb 11, 2013 at 01:44 PM

I have the EXACT same problem...i tried using planes but it didn't work too well.....

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 gygabor · Apr 09, 2014 at 08:42 AM 0
Share

Are you tried to change your Terrain material shader to Diffuse or Transparent/Diffuse?

I had the same problem and this change solved it.

avatar image
3

Answer by Ratboy601 · Aug 10, 2015 at 02:09 AM

As most of the answers I've found here are dated, I thought I'd note that I was able to solve this just by changing the render mode of the spotlight to "important." Hope that helps somebody.

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 Toonk · Jan 24, 2016 at 04:08 PM

My problem here was that the intensity was actually to low, alltough i set it to 100%. Try duplicating the spotlight you already have. That way, the intesity adds up.

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 Teldrius · Feb 13, 2017 at 08:14 AM

I'm still having this issue and these answers are for the wrong problem, I believe this is what he's talking about, my flashlight just disappears at certain angles and won't show at all, even in the editor if I look east the terrain is light clearly but when I turn west all forms of lighting disappear, it's entirely the angle at which I view terrain. Unfortunately I don't have a solution for this and am still searching for one. alt text


flashlightfading.jpg (93.5 kB)
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 Johnny7s · Feb 18, 2017 at 12:56 AM 0
Share

(I'm very new to Unity but I thought this might help you...)

I had a similar problem til I removed the normal map (I made in GI$$anonymous$$P) from the first texture I assigned under the paint textures tab on the terrain. Then my flashlight worked. I have no idea why... :)

Good luck!

  • 1
  • 2
  • ›

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

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

Lighting problem and glitch. 4 Answers

Plants on terrain light strangely with spotlight 0 Answers

My Draw Calls go from 30 to 125 and I have twice as much tris/verts when I enable a spotlight. Why?? 1 Answer

Flashlight cuts off 180 degrees 0 Answers

wierd light on trees? 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