Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[1.5.2] [SSP/SMP] Gammabright - Advanced Brightness & Fullbright Mod (v1.6.2)

brightness fullbright modloader gamma control nightvision toggle

  • Please log in to reply
185 replies to this topic

#1

kymaster
  • Minecraft: kymaster

Posted 15 April 2012 - 11:15 PM

Posted Image

<------------------------------------------------------------------------------------------------------------------------------------->


Now Updated for Minecraft 1.5.2!

Report with any suggestions/problems/comments you may have!


Hey everyone, kymaster here! Posted Image
This is the first mod I have released on these forums.
Hope you like it! I will try to make this topic as informational as possible.
I'd also like to give a shoutout to Vazkii, who gave me a ton of help with Gammabright when I first began modding.

Some of the great features like the adjustable brightness were made possible by him. He also created the logo above! =)

Introduction
Hate being unable to see in the dark? Can't stand it not being day? I thought so. Meet Gammabright.
Gammabright is an advanced brightness and fullbright mod for Minecraft! Originally starting out as a simple fullbright mod, Gammabright has evolved into a multi-purpose mod that can be used for a wide selection of purposes. Casual players, PvPers, YouTubers, - Gammabright is for you.

Further Explained
Gammabright allows you to adjust your in-game brightness, the same brightness controlled under the "Video Settings" screen, to whatever your desired level may be. There's no limit. Minecraft's brightness slider is very restrained and can only adjust the brightness between a set range of 0 to 100%. Gammabright allows you to go way beyond (or below!), to make the perfect adjustment. The lighting of all blocks, mobs, entities, even water!, can be maxed out. You don't need to worry about any lighting glitches or dark spots either, and smooth lighting still functions like normal. So, for what would this mod be useful? Check below!

Spotlight
Thanks to Sorenus for this great review! (v1.6.1)

Create your own spotlight and you may see it above!
For more reviews, see here.

Pictures
Spoiler:
Open spoiler to view pictures.

Uses & Stuff
● See better while mining in dark caves
● Spot your enemy easier while engaging in PvP
● Give your videos a brightness boost for your viewers
● Never suffer through the darkness of night again
● Ehh, you'll think of something...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Download Links -  **Gammabright requires ModLoader or Forge!!**

Gammabright v1.6.2 for Minecraft 1.5.2 - Download (dropbox)
Installation Instructions: Open zip file and drag and drop mod_Gammabright.class into the minecraft.jar. Remember to install ModLoader or Forge, and to delete the META-INF folder.

Recommended: Download either the Macro / Keybind mod, ScrollableControls (my favorite), or Forge to extend the "Controls" screen so that the keybindings this mod adds don't go off the screen!

"G" is the default toggle. Can be changed through Minecraft's "Controls" screen. Read the section below (How To Control Gammabright) to learn how to use all of Gammabright's adjustment controls.

Changelog
Spoiler:

Older Versions
Spoiler:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

How To Control Gammabright - READ ME
Spoiler:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Configuration (located at ".minecraft\config\mod_Gammabright.cfg") [Start Minecraft if not there]
Spoiler:

Texture Pack Lighting Fix
Spoiler:

Thanks:
Spoiler:

Copyright
Spoiler:

Suggestions? Feel free to recommend ideas! Posted Image

Thanks for stopping by!
-kymaster
Posted Image

Register or log in to remove.

#2

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 28 May 2012 - 06:43 PM

Nice to see 1.1 is now out, anything you did past my edits that you didn't tell me?
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#3

kymaster
  • Minecraft: kymaster

Posted 28 May 2012 - 08:21 PM

View PostVazkii, on 28 May 2012 - 06:43 PM, said:

Nice to see 1.1 is now out, anything you did past my edits that you didn't tell me?

Hey Vazkii,
With your version, after adjusting the brightness with the arrow keys, when you toggle it off the brightness just stays the same and doesn't go back to the disabledBrightness setting. It took me a little while to figure it out, some trial and error, but I got that fixed. Now all the adjusting works perfectly. I also added a reset key (down arrow key) to make it easier to go back to the default enabledBrightness setting and renamed the keybindings for the mod because other buttons in the Controls menu overlapped the text. Along with that, I made a couple more tiny adjustments and just played around with the code to get it the way I liked it. I'm already picturing some neat ideas for the next update, but we'll just have to wait and see... Posted Image

I appreciate the help!
Posted Image

#4

Neon_ColorsFTW22
  • Minecraft: NeonColors123

Posted 28 May 2012 - 08:46 PM

Nice nice.

I guess it's good for when somebody is fighting mobs at night or when attacked so you know who hit you.

Posted Image


#5

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 28 May 2012 - 08:50 PM

View Postkymaster, on 28 May 2012 - 08:21 PM, said:

Hey Vazkii,
With your version, after adjusting the brightness with the arrow keys, when you toggle it off the brightness just stays the same and doesn't go back to the disabledBrightness setting. It took me a little while to figure it out, some trial and error, but I got that fixed. Now all the adjusting works perfectly. I also added a reset key (down arrow key) to make it easier to go back to the default enabledBrightness setting and renamed the keybindings for the mod because other buttons in the Controls menu overlapped the text. Along with that, I made a couple more tiny adjustments and just played around with the code to get it the way I liked it. I'm already picturing some neat ideas for the next update, but we'll just have to wait and see... Posted Image

Thanks for all the support!

Yeah, makes sense, I'm using minecraft forge so I see a different keybind menu from you, and as such I couldn't detect the overlap issue.
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#6

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 29 May 2012 - 04:05 PM

Oh, you have a new banner :P

I was going to do you one but I guess I got beat to it.
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#7

kymaster
  • Minecraft: kymaster

Posted 02 June 2012 - 03:15 PM

View PostVazkii, on 29 May 2012 - 04:05 PM, said:

Oh, you have a new banner Posted Image

I was going to do you one but I guess I got beat to it.

Yeah, it's just a basic one I made with the mod slideshow in the background.

I also noticed that you updated your main mods thread! The new thread layout looks great.
So QuickFPS is renamed to EasyFPS. Seems like a smart decision...
I will have to try out some of your other mods again, especially Double Workbench and Health Bars. Thanks for updating all of them!
Posted Image

#8

Neon_ColorsFTW22
  • Minecraft: NeonColors123

Posted 02 June 2012 - 04:34 PM

Downloaded the new update plus the update manger

Thanks for the awesome mod

Posted Image


#9

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 04 June 2012 - 04:30 PM

View Postkymaster, on 02 June 2012 - 03:15 PM, said:

Yeah, it's just a basic one I made with the mod slideshow in the background.

I also noticed that you updated your main mods thread! The new thread layout looks great.
So QuickFPS is renamed to EasyFPS. Seems like a smart decision...
I will have to try out some of your other mods again, especially Double Workbench and Health Bars. Thanks for updating all of them!

Haha, you don't have to thank me :3
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#10

RuffiansDestiny

Posted 17 June 2012 - 07:23 PM

This is GREAT!!!  WOW, I sure am enjoying this mod!!! Thank you very much!!

#11

kymaster
  • Minecraft: kymaster

Posted 19 June 2012 - 03:17 AM

View PostRuffiansDestiny, on 17 June 2012 - 07:23 PM, said:

This is GREAT!!!  WOW, I sure am enjoying this mod!!! Thank you very much!!

No problem, glad to hear it! Feel free to leave any suggestions. :)
Posted Image

#12

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 23 June 2012 - 10:56 PM

New update (v1.2) in progress. Brightness will be controlled in smaller values

Wat? Wasn't that already in?

Code is also being cleaned up

More cleanup? Damn.


Off-topic but still: You should check out my new macros mod for some cool text parsings and suff, it may be usefull ^^ (SHAMELESS SELF-ADVERTISING)

a
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#13

kymaster
  • Minecraft: kymaster

Posted 24 June 2012 - 03:54 AM

View PostVazkii, on 23 June 2012 - 10:56 PM, said:

New update (v1.2) in progress. Brightness will be controlled in smaller values

Wat? Wasn't that already in?
In version 1.1, the increments were by 10 (while sneaking) and by 1. At first for this version I was trying to make the increments 1 (while sneaking) and 0.1 when not. However, floats like the gamma value do not work well with increments of 0.1. Here's an example of what I mean. I've tried for days to increment the brightness by 0.1 using different techniques, rounding, casting it to an integer and dividing... let's just say it's too much of a struggle to continue on with. I've changed the value now to 0.25, which thankfully causes no problems when being added to floats. It's a little higher than what I wanted, but it works just fine.


View PostVazkii, on 23 June 2012 - 10:56 PM, said:

Code is also being cleaned up

More cleanup? Damn.
There were some bits and pieces of useless code in the mod. I removed that and also renamed some things to make the code easier to work with. Some other features were added, but you'll just have to wait and see. ;)
Posted Image

#14

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 24 June 2012 - 09:48 AM

To start off, casting it to an integer won't work since an integer can't have a decimal value, but you could have just converted the value to a double I think.

Well, I guess, let's see what you have in stock!

Edit: I mentioned CM1.1, it's out btw.
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#15

Hydrox6
    Hydrox6

    Carpenter

  • Members
  • 47 posts

Posted 24 June 2012 - 09:17 PM

A suggestion: what if you made the brightness fade in when the light level falls below a certain pre-defined amount.

#16

kymaster
  • Minecraft: kymaster

Posted 25 June 2012 - 12:39 AM

View PostHydrox6, on 24 June 2012 - 09:17 PM, said:

A suggestion: what if you made the brightness fade in when the light level falls below a certain pre-defined amount.

Good idea. I'm just about to release the next version, but I will definitely consider it for the next update. :)
Posted Image

#17

Neon_ColorsFTW22
  • Minecraft: NeonColors123

Posted 25 June 2012 - 04:23 AM

Great job with the mod!

Your really working on this mod a lot as i can see from all the stuff you fixed and added ;)

I think i said i was gonna bump the thread by giving it a +1 in my other replies but it looks like i didn't which i would do right now.

Posted Image


#18

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 25 June 2012 - 11:26 AM

1.2 is very nice, but why .25? Have you tried setting your gamma value to a double and casting it to a float when you're going to change the render value? That should work I think.
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.

#19

kymaster
  • Minecraft: kymaster

Posted 25 June 2012 - 02:40 PM

View PostVazkii, on 25 June 2012 - 11:26 AM, said:

1.2 is very nice, but why .25? Have you tried setting your gamma value to a double and casting it to a float when you're going to change the render value? That should work I think.

Well this is odd. When trying to get this to work the past few days I did the same exact thing as you've stated. I set enabledBrightness to a double and casted it to a float when changing the value, but the brightness level on screen was always 1% above the real value when going under 0 (ex. appeared as -129 on screen, -130 on brightness slider) and at random times 1% under the real value when adjusting it above 0. After seeing your post, I tried again to get it to work and I think I've got it! From what I've discovered, adding and subtracting 0.1 didn't screw up the percentage shown on the brightness slider, which is what I'm comparing the Gammabright values to, just the percentage shown on screen. To fix this, I wrote a little if statement that says add 0.001 to enabledBrightness when the value is above 0, and subtract 0.001 when it is under. This is all taking place before multiplying the brightness, casting it to an int, and dividing. Anyways, this seems to of fixed it. It's difficult to explain, but it's working perfectly as of now. If you'd like to look at the source to see for yourself just ask and I'll send it to you. I think I'll add this change in a quick update.
Posted Image

#20

Vazkii
    Vazkii

    Void Walker

  • Members
  • 1787 posts
  • Location: Portugal
  • Minecraft: Vazkii

Posted 25 June 2012 - 05:15 PM

View Postkymaster, on 25 June 2012 - 02:40 PM, said:

Well this is odd. When trying to get this to work the past few days I did the same exact thing as you've stated. I set enabledBrightness to a double and casted it to a float when changing the value, but the brightness level on screen was always 1% above the real value when going under 0 (ex. appeared as -129 on screen, -130 on brightness slider) and at random times 1% under the real value when adjusting it above 0. After seeing your post, I tried again to get it to work and I think I've got it! From what I've discovered, adding and subtracting 0.1 didn't screw up the percentage shown on the brightness slider, which is what I'm comparing the Gammabright values to, just the percentage shown on screen. To fix this, I wrote a little if statement that says add 0.001 to enabledBrightness when the value is above 0, and subtract 0.001 when it is under. This is all taking place before multiplying the brightness, casting it to an int, and dividing. Anyways, this seems to of fixed it. It's difficult to explain, but it's working perfectly as of now. If you'd like to look at the source to see for yourself just ask and I'll send it to you. I think I'll add this change in a quick update.

Go ahead if you want to send me the source, I guess there should be a more optimal way to do that, I'll try to get a grip on it trough.

EDIT: You should add to the topic that you can use Minecraft Forge instead of ModLoader, that's because of FML.
Posted Image
A mind needs books as a sword needs a whetstone, if it is to keep it's edge.