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 blented · Oct 01, 2015 at 12:10 AM · lightingshaders

How can I unclamp light intensity?

Light intensity currently is clamped between 0-8. How can I unclamp this? 8 is not nearly bright enough...

Comment
Add comment · Show 17
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 Eno-Khaon · Oct 01, 2015 at 03:21 AM 0
Share

Usually, 8 is an unworldly degree of brightness. That said, brightness at a distance is relative to the size of the light.

Is your light providing too little light at very short range from what you're trying to illu$$anonymous$$ate? If so, then the shader on the object could potentially be reducing the effective lighting value considerably.

Otherwise, is the object you're attempting to illu$$anonymous$$ate at the furthest edges of your light's range? If so, the light is attenuating between the light and the edge of its range, resulting in only a $$anonymous$$or effect on objects near its maximum range.

avatar image blented Eno-Khaon · Oct 01, 2015 at 03:29 AM 0
Share

Thanks Eno. $$anonymous$$y light is about a meter off the ground with a huge radius. 8 is nowhere near bright enough, if I had to guess I'd say the value I'm looking for is about 300.

I'm surprised there's a cap, it seems quite arbitrary. I attempted to find the game object to create a custom one but wasn't successful.

avatar image Addyarb · Oct 01, 2015 at 05:04 AM 0
Share

@blented

Can you send a little demo of your project? Or perhaps a screenshot? The real issue here seems to be that your project is requiring >8 as far as light intensity. For the most part, projects will require between 1-4 for optimal lighting - so it's quite concerning when 8 is not doing it for you.

It is a spotlight? Have you tried increasing your range? Spot angle?

avatar image blented Addyarb · Oct 05, 2015 at 03:53 PM 0
Share

Thanks for the reply Addyarb. It's easier to just describe a demo scene: place a plane on the ground, put a material on it with a dark diffuse (around 40, 40, 40), add a point light, and turn the brightness to 8.

Imagine the resulting brightness isn't bright enough on an artistic level and you want to push it past 8, how can I do that?

avatar image LudwigVK blented · Oct 05, 2015 at 05:03 PM 0
Share

are you using default shader? what's the distance between the plane & the point light? our concern is that there's no need to past 8, there must be another thing going on. So it would be very useful to see what's going on on your scene.

avatar image blented Addyarb · Oct 05, 2015 at 05:23 PM 0
Share

Image attached, standard shader, standard light, very small distance between plane and light.

I'm not a newb, I just need to unclamp the light's brightness.. alt text

unitylight.jpg (126.9 kB)
avatar image LudwigVK blented · Oct 05, 2015 at 05:36 PM 0
Share

i'm guessing the plane is a very large plane, if so, making the range way larger than the plane should be enough.

Show more comments
Show more comments
avatar image Peris · Oct 30, 2015 at 09:56 AM 1
Share

I'm having the same issue and it's driving me nuts. The get a sufficiently bright light I have to either make it really large, which makes it hit surfaces i don't want it to hit, or stack multiple lights on top of each other, which seems like an incredibly unnecessary workaround. Having lights be clamped at 8 seems so arbitrary. There's no limit to light intensity in the real world, why should unity have one?

Lights brighter than 8 still seem to work fine, as evidenced by some of my older prefabs. As soon as i touch the intensity value it flips it to 8, making my lights super dim. In the attached picture i have a light at 11, and one at 9.14. Both are brighter than the currently maximum allowed brightness, yet still appear pretty normal.

I'd love to hear a clear answer to why they are being clamped to 8

alt text

light-intensity.jpg (313.8 kB)
avatar image blented Peris · Nov 15, 2015 at 06:40 PM 0
Share

Thank you!! I'm glad someone agrees, it's such an absurd problem to have. It's a float parameter, just leave it unclamped!

avatar image Addyarb blented · Nov 15, 2015 at 11:12 PM 0
Share

alt text

Is there truly a situation where you need your point light to be brighter than this? If so, you can always just use a spot light and increase the range. Admittedly, I understand that it's frustrating that Unity's API won't let you unclamp things - even when you make an editor script for it (I tried this), but if you're really getting this lighting (as shown above) at maximum intensity, it is an issue with your shader, and not the light itself.

pointlighttest.jpg (848.9 kB)
Show more comments
avatar image blizzzz · Sep 28, 2016 at 03:24 PM 0
Share

I've just jumped into Unity and also amazed that light intensity is capped to 8.0. Assu$$anonymous$$g there is a rational explanation for this? If Unity is a physically based rendering solution then we should be able to use accurate real world lighting values based on Lux, Lumens, EV, Candela, Nits or some known unit of measure. If we had to cap any values in PBR it would be a maximum equal to the brightness of the sun. That would take care of most situations but still not be sufficient if we were trying to render space scenes or maps with non "earth like" atmospheres. So what gives...?? why 8.0? Never seen this before in 20+ years of lighting and rendering work. I haven't mentioned falloff which would also complicate things. Is a value of 8.0 assu$$anonymous$$g infinite falloff? But can we really consider all lights to have infinite falloff? Since we are working in realtime this is not an option. Fully baked lights "might" consider this, but punctual lights require falloff to be performant. Would love to hear back from someone in the rendering group at Unity regarding this. I'm new to Unity but not new to rendering and lighting, so maybe I have missed something obvious here. Thanks in advance

avatar image tanoshimi blizzzz · Sep 28, 2016 at 05:46 PM 0
Share

Please don't post an answer unless you're answering the question asked - I've converted to a comment for you.

$$anonymous$$y only guess as to why it's clamped to 8 would be something to do with how the value is packed and stored on the GPU and, tbh, it seems very few users have ever had need to exceed this otherwise somewhat arbitrary value.

Of course, it's completely trivial to multiply the inco$$anonymous$$g light intensity by a constant or curve in the lighting model of your shader, so it's not impossible to work around.

avatar image blizzzz tanoshimi · Sep 28, 2016 at 06:23 PM 0
Share

thanks for converting "Answer" to "Comment".

Clamping to 8 shouldn't have anything to do with GPU. In my case I have lights that are fully static. Lightmaps and light grid support HDR values so assu$$anonymous$$g light values should not require clamping.

I spent the 5+ years working on a physically based rendering pipeline and clamping lighting values is non-intuitive to this rendering paradigm. Will look into workarounds, but this give me pause that Unity has some large holes in it's rendering, especially when considering PBR.

thanks for the help

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

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can you get how much light is on the surface in a shader? 0 Answers

In a shader designed for Forward rendering, unity_Lightmap seems to be correct in the base pass and incorrect in the add pass. Am I doing something wrong or is this a bug? 0 Answers

Unity URP black outline on my mesh polygons 0 Answers

Help with Shader that blends between two textures based on light 0 Answers

Toon shader light culling shadow issue 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