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 crimsonnight · Mar 11, 2015 at 05:13 PM · triggerlightinvert

Inverting all light on trigger (2D)?

Hi all, pretty simple question, is there a way to use a trigger to invert all light sources (ie light areas becoming dark and dark areas becoming light)?

Thanks,

Comment
Add comment · Show 5
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 AlwaysSunny · Mar 11, 2015 at 04:54 PM 0
Share

I can't tell what you're asking for.

You can disable or enable lights, but "turning dark to light" requires a light, just like turning light to dark requires the absence of a light.

Or do you want to invert your final image, like this?

http://upload.wikimedia.org/wikipedia/commons/b/bd/Carriera,_Rosalba_-_Portrait_of_Antoine_Wat$$anonymous$$u_-_inverted.jpg

avatar image crimsonnight · Mar 11, 2015 at 05:00 PM 0
Share

Thanks for the swift response :)

Apologies, I hope this helps illustrate what I'm trying to accomplish: Imagine a black phone screen (darkness) with two light-bulbs emitting small areas of light around them (illu$$anonymous$$ated). I'd like to add a trigger that inverts this, so that the whole screen becomes white (illu$$anonymous$$ated) and the areas around the bulbs are black (darkness). NB: This example is an extremely simplified version of what I'd like to accomplish.

avatar image AlwaysSunny · Mar 11, 2015 at 05:08 PM 0
Share

Depending on how you expect this effect to interact with other aspects of your visual experience, you either want an image effect which inverts your RGB values, or a hand-tailored solution to change elements of your environment by manipulating the color properties of their materials.

If you expect to use literal Unity lights, I do not know of any way to achieve what you're asking for except by inverting your render results with an image effect. There's no such thing as a Darkness Emitter in Unity; only lights.

I think there may be an easy way to get an Inverse image effect; I'm not familiar with Unity 5, but I recall having that effect in Unity 4 somehow or another. Try googling for it! :)

avatar image crimsonnight · Mar 11, 2015 at 05:16 PM 0
Share

I'd like it to directly impact the environment, eg +10 score for every second you're in an illu$$anonymous$$ated area. Also static light-bulbs are a simplified example, ideally I'd like to apply the effect to moving entities - do you think I'd be able to accomplish this with the image effect you're referring to? If not, can you think of any alternative whatsoever? Cheers :)

avatar image AlwaysSunny · Mar 11, 2015 at 06:29 PM 0
Share

Unfortunately, what I believe you're asking for is going to be quite tricky.

If you wanted to accrue points while illu$$anonymous$$ated, that can be tricky in and of itself. How you'll measure and respond to illu$$anonymous$$ation depends entirely on your project's nature, which I don't fully grasp.

Whether it's appropriate to use Unity's lights at all is still up in the air because I can't picture your desired end result. Introducing the concept of inverting light and dark areas with an image effect is not going to make things simpler.

Honestly this question has evolved into something you should post about in the forums. UnityAnswers isn't the place for such a complicated discussion. You may be more likely to get a response to such questions there.

0 Replies

· Add your reply
  • Sort: 

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How do I switch control values? 1 Answer

Using shadows as Triggers? 1 Answer

Light switch trigger 3 Answers

What am i doing wrong? I want to make a raycast acces panel with lights 2 Answers

Can't click gameobject when over another trigger? 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