Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 kevinrocks_786 · Nov 27, 2015 at 04:43 AM · terrainskyboxdaycycledaynightday

(Day and Nigh Cycle) Terrain is lit up at night

So I have a day and night cycle in my game. But the problem is, when it's night the terrain has like a shadeless material on it. How can I make it pitch black when it's night. (Im using the built in procedural skybox.) Here it is by day: http://i.imgur.com/rftME4h.jpg Here it is by night (lit up): http://i.imgur.com/vqNwTxk.png And here it is how I want it to be: http://i.imgur.com/vqNwTxk.png

Comment
Add comment · Show 6
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 suark · Nov 27, 2015 at 10:00 AM 0
Share

Have you checked the ambient light?

avatar image kevinrocks_786 suark · Nov 27, 2015 at 11:50 AM 0
Share

Yes. Still lights up.

avatar image suark kevinrocks_786 · Nov 27, 2015 at 01:02 PM 0
Share

Which shader are you using for terrain?

Show more comments
avatar image Mich_9 · Nov 27, 2015 at 12:14 PM 0
Share

How are you passing from day to night? Just switching the lights off? Also the last 2 links goes to the same image.

avatar image kevinrocks_786 Mich_9 · Nov 27, 2015 at 03:39 PM 0
Share

I am making the directional light rotate around the X axis.

1 Reply

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

Answer by shdes161 · Nov 28, 2015 at 03:09 AM

Add a "Reflection Probe" to the scene, set the Type to "Realtime" and the refresh mode to "Every Frame" That should make it so static objects are not lit up at night.

Then add a "Light Probe Group" to the scene (no need to change settings) and it should make it so that nonstatic objects are not light up at night.

I suggest, if not already done, having the directional light's intensity lowered at night to make sure nothing else weird happens.

You can also, to make sure that light doesn't get messed up when loading the scene, bake the light, by going to Window -> Lighting -> Scene and at the bottom right uncheck Auto and press build.

These steps should fix all of your 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 kevinrocks_786 · Nov 28, 2015 at 03:12 AM 0
Share

Thanks so much

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

34 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

Related Questions

How to make Scene darker to look more like night time. 1 Answer

Is there a way to make a day/night cycle (can be just light on/off) with a very high amount of lights? 1 Answer

Day/Night Skybox 1 Answer

Conversion of seconds to hours and minutes 1 Answer

Skybox lighting not working and causing weird issues 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