Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 zigastrmsek · May 09, 2017 at 06:10 AM · unity 5lightingrenderinglayersglobal illumination

Disable all objects on a layer from recieving any light. Make object inside an object recieve lighting/ not be totaly dark?

Kinda hard to explaimn, so here is a link. ( http://prnt.sc/f5ahlr ) The green cube on the right is inside the red spheres in the bottom picture. The idea is that I will put trees inside spheres same color as their leaves to bouce some of their lighting away to make green tinted areas underneath kinda like they did it in the witness ( http://download.gamezone.com/uploads/image/data/1198708/article_post_width_The-Witness-Shady-Trees.jpg ) . The problem is, once an object is inside an object, it doesn't get any ligting other than ambient lighting. Which sort of defeats the purpose.

Basically I want to achieve is the green object inside the red sphere recieve same lighting as if the red sphere wasn't there. But I still want the red sphere bouce light from the sun and leave red tint around it. The way I went arount doing this is, I placed the spheres (in this case red so the light bouncing off of them is more noticable) and then just placed them on a new layer and disable that layer to the camera. But this way objects inside the spheres are really dark. I do not plan on using the trees with the terrain and place them by hand, so it doesn't have to be compatible with it (trees will be animated tho, made with speedtree to be percise).

I have a whole library of artistic trees that look similar to trees in "the witness" and making them work with dynamic Gi is the last problem I need to solve before importing them, so any help would be appreciated.

The way I have it set up right now is, everything is on layer 1. Spheres are on layer 2, which is disabled to the camera (camera can't see anything on layer 2). The sun can effect only layer 1, not 2. I have a second sun, that only effects the second layer, but not the first one. Is that correct? Because it's not working. What is happening right now is that the sun does go through the red sphere, but it still blocks light bounced from other objcet, the GI bounce lighting from reaching the cube in the center.

Comment
Add comment · Show 1
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 zigastrmsek · May 08, 2017 at 06:53 PM 0
Share

http://prntscr.com/f5ki9m This is what's currently happening

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheReEvolutions · Jul 10, 2017 at 06:21 PM

The witness doesn't really seem to be using any special effect besides bloom, if you want the green cube to shine just use the emission texture.

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.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Updating Global Illumination at Runtime 2 Answers

GameObject with a lot of Layer 0 Answers

Deferred rendering light mask warning problem 0 Answers

Tint realtime global illumination based on distance 0 Answers

Set emission for Realtime GI separately from rendered material 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