• 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
Question by xandermacleod · Jun 20, 2013 at 06:57 PM · lightinglightmultiplepoint lightintensity

Multiple Point Light Issue

Hi there, I'm a having a little trouble with using multiple point lights in my scene.

Here is the situation. My scene has 4 point lights in it and 1 directional light. For some reason, one of the point lights is always a lot dimmer than the rest (almost as if it is only rendering using vertex-based lighting, rather than pixel based lighting). When I turn up the intensity of the dim point light, it 'pops' into working again, and another one 'pops' to taking its place and being the dim one. When I then dim the same light, it pops back to being the dim one. The dim light also pops into life if ever the directional light's intensity ever reaches 0, and pops back off the moment the directional light intensity returns above 0. Ideally I don't want any dimmed out lights, I want them to work normally as they had just been created a new.

I have tried to use three different setups but all of them end up with this same result:

Setup1 Change the pixel light count to 6 and make all lights' render modes "Not Important"

Setup2 Change the pixel light count to 6 and make the directional light important, but the point lights Not Important.

Setup3 Change the pixel light count to 1 and only make the directional light important, and the other point lights Not Important.

Can anyone shed any light on what might be going wrong?

Much appreciated.

Xander

Comment
jspivack
haveachillday

People who like this

2 Show 2
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 equalsequals · Jun 20, 2013 at 07:21 PM 0
Share

Are you using forward or deferred rendering?

avatar image xandermacleod · Jun 20, 2013 at 07:31 PM 0
Share

forward. I just looked at it with deferred, and that did sort it out. Could you maybe shed some light on why deferred works and forward doesnt? I am developing for mobile and am not sure which one I need to use yet. (I dont know a whole lot about the difference between deferred, and forward lighting. I know the vertex-lit vs pixel-based-lighting, but not on the specific of forward-vs-deferred).

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by equalsequals · Jun 20, 2013 at 08:35 PM

To elaborate on the comment I made, in the forward rendering path there are only a limited amount of pixel lights allowed, where in deferred all of the lighting is done per-pixel.

I recommend reading the references here: deferred and forward reference.

As an excerpt, this will explain the issue that you were describing:

In Forward Rendering, some number of brightest lights that affect each object are rendered in fully per-pixel lit mode. Then, up to 4 point lights are calculated per-vertex. The other lights are computed as Spherical Harmonics (SH), which is much faster but is only an approximation.

Unfortunately, the deferred pipeline is not currently supported on mobile, so you will need to use forward and SH lighting for dynamic lighting.

You may want to consider using a feature such as light probes in conjunction with light mapping to get better quality lighting at less cost if that is an option.

Hope that helps.

==

Comment
xandermacleod
kamullis

People who like this

2 Show 2 · 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 xandermacleod · Jun 20, 2013 at 10:49 PM 0
Share

very helpful. cheers!

avatar image Pabz · Apr 15, 2014 at 10:02 AM 2
Share

Sorry for commenting on an old post. I was also having the same issue and I switch the rendering mode to "important" on all point lights. This seems to have done the trick and now my point lights behave as expected but I fear I may be significantly compromising on performance? Have I made a rookie mistake?

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

16 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

Related Questions

Weird lights 0 Answers

Is it possible to create a torus-/ring-shaped light? If so, how? 3 Answers

Mixed point light overlap problem 0 Answers

How to bake a point light? 1 Answer

How to prevent Overlapping Lights from combining / adding intensity? 3 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