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
1
Question by Mackam · May 07, 2015 at 12:40 PM · lightingrenderinglightspotlightgradient

Poor spotlight gradient in Unity

As a test I want to put a cube on a plane and have a spotlight cast light on it. I want the spotlight to be the only source of light to create a very dark feeling.

However, the spotlight creates a gradient on the ground that looks very poor. It looks like something in a highly compressed JPG image, not at all something you want to see in a game.

In the attachments you can see the project lightning and quality settings as well as the settings of the spotlight itself. You can also see the actual render of the gradient, you'll notice where one color ends and another begins very clearly. It appears like this even if I build and run the game as a stand-alone program. Notice that nothing is baked, I want the light to be rendered in realtime.

I don't think it's my computer's graphics card that is causing it. What am I doing wrong?

Mirrors of the attached images: http://i.imgur.com/FKPqQV7.png http://i.imgur.com/QPxuI1L.png

bbb.png (53.2 kB)
aaa.png (213.1 kB)
Comment
Add comment · 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 _dns_ · May 07, 2015 at 02:08 PM 1
Share

Hi, is what you see color banding ? If it is, sometimes there is nothing to do: when 2 colors are too close, there is not enough colors "between them" and banding occurs.

To be sure, you could try with more distant colors i.e. a pure white light (& pure black shadow): is there still banding ?

Try getting a screenshot of your game in an image editor and check the RGB values of the colors: you'll be able to see if there could be other values between those bands or not.

avatar image Mackam · May 09, 2015 at 09:10 AM 0
Share

Holy crap, you're right! I just checked the hex color values of my screenshot and not a single color fits between them. It was just color banding. Crazy that we have such a limitation to work around in this day and age. Thanks for pointing out the problem for me mate.

1 Reply

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

Answer by Mackam · May 12, 2015 at 01:11 PM

It was just color banding (see comments above).

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Spot light creates squares instead of round spot 2 Answers

Flickering circle of light around character 0 Answers

How can I change the SpotAngle's range in a SpotLight? 0 Answers

Directional light disabling when player is looking away 1 Answer

Light2D not showing on mobile 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