• 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 BogdanDude · Jan 19, 2010 at 10:36 AM · iphone

Is there an easy way to add a brightness/gamma menu setting for the iPhone?

I'd like to add an option to turn the overall gamma/brightness up or down, in the options game menu. For example, there's something similar in Doom Resurrection, called 'overbright'.

This would be pretty useful in my case, as some artwork is too dark on my iPhone 3G display, and it's much brighter on a 3GS or an iPod 2G.

Please let me know if there's an easy way to do this with Unity.

Thank you!

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 taoa · Dec 10, 2010 at 02:09 PM 0
Share

Vote for adding this here! : http://feedback.unity3d.com/forums/15792-unity/suggestions/1285515-gamma-brightness-control

3 Replies

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

Answer by duck · Jan 25, 2010 at 03:47 PM

You could add a feature which uses a small script to turn the ambient light value up and down between some fixed range. You wouldn't want them to be able to turn it all the way up, but perhaps somewhere between 10% and 40% might be a good range for a general "brightness" slider.

For example, if ambientDarkest and ambientLightest are defined as colors (dark grey and lighter grey respectively), and slidervalue is the 0-1 value returned from your brightness slider:

RenderSettings.ambientLight = Color.Lerp(ambientDarkest, ambientLightest, sliderValue);
Comment
Add comment · Show 1 · 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 03gramat · Aug 17, 2015 at 12:58 PM 0
Share

I realise this question is old, but this tutorial works with the updated menus (Unity4+5) incase anyone else comes across this question and can't get it working.

avatar image
0

Answer by andeeee · Jan 25, 2010 at 03:35 PM

I don't think there is anything in the Unity API to do this, but you could request this feature using the Report Bug app that comes with Unity.

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
avatar image
0

Answer by Tetrad · Mar 22, 2010 at 08:14 PM

The way Doom did it is by using GL_RGB_SCALE.

I.e. glTexEnvf( GL_TEXTURE_ENV, GL_RGB_SCALE, 4 );

(Valid values are 1, 2, and 4. 1 is the default.)

I don't know how you'd set your GL combiner operations inside Unity, but if you figure that out you could set that particular parameter and see what happens.

Comment
Add comment · 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 qJake · May 31, 2010 at 11:42 PM 0
Share

You would need to write a plugin (which requires Unity Pro), and even then, getting into the OpenGL aspects of it are incredibly difficult, and definitely not for beginners. I wouldn't recommend this method at all.

avatar image Tetrad · Jun 01, 2010 at 12:13 AM 0
Share

You wouldn't do it with a plugin, you'd just have to write your own shaders for whatever materials you'd want to render brighter. In Doom we did it on all materials that were using our DOT3 bump mapped shaders (so the world and the characters).

http://unity3d.com/support/documentation/Components/SL-SetTexture.html

There are combiner modifiers, do a search for "double" and "quad" to get higher pixel values. I don't know enough about Unity's shaderlab to know if you can do branching operations based on constants or not (I'm guessing not), but there are other ways around doing it.

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

No one has followed this question yet.

Related Questions

altimeter gauge... 1 Answer

Is there a way to visually show the order in which geometry was rendered in your scene. 1 Answer

How to support Retina display 1 Answer

Unity iPhone app crashes on startup on iPhone3G but works fine on iPhone3GS, iPhone4 and iPad 3 Answers

Problem accessing vector properties 2 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