• 1

    posted a message on Colored Lights

    For example for where I am at in lighting, here's an example of global lighting from various angles on the terrain:



    All of it is fully configurable, and I can have as many lights as I desire. (NO OpenGL cap of 10 / 9!). I will be adding attenuation to light sources to allow the lights to fade away, like a normal lamp. This should be my main porting goal.

    Posted in: WIP Mods
  • 2

    posted a message on Colored Lights

    I would like everyone to know that this is NOT DEAD. I am currently working on my own game engine to familiarize myself with GL and shaders.

    Posted in: WIP Mods
  • 17

    posted a message on Colored Lights
    Colored Lights

    What is Colored Lights?
    Colored lights is a mod that aims to add colored light to Minecraft, adding an extra layer of visuals. It's been well sought after, and was finally achieved with CptSpaceToaster's Easy Colored Lights mod, which has since been discontinued. CptSpaceToaster's mod used ASM, a library which injects code into existing class files, to achieve this effect. I am working on achieving it without the need for assembly and base class edits, making it more compatible and writing it in pure GL code.

    For those who say this is not possible, I hereby provide a counter example, (albeit quite beta):
    I have been able to render smooth, any colored light with negligible framerate impact on my rig in a development environment. If you want to see my progress, stick around and I"ll be sure to keep you up to date on my progress.

    What am I trying to accomplish?

    I am trying to add three channels of light to blocks so that they appear to diffuse, emit, and mix blue, red, and green channels of light. Existing lighting items, (torches, glowstone, etc), should all have the same light values, but might have a tint around them. Worlds that use this mod should be backwards compatible with other mods for them to work efficiently. (Make backups just to be sure!) My goal is to have this mod use as FEW BASE EDITS AS POSSILBE, none if I can manage it. This mod will always require forge, as it allow me to hook into various parts of the game. The API part of the mod will be a separate download from the demo part of the mod, which will contain various colored blocks.

    Where's the Download?
    I am not going to release a download until I feel that it is stable enough and in a decent state to be released. Right now I can implement types of light, but they sometimes glitch when mixed together. Because of this, I'll be waiting to release a fuller version of an alpha until I get the mod completely latched down.

    Source?

    Bugs, Chat, and Licensing
    Post here in the forums if you have a crash report. PLEASE PUT IT IN SPOILERS. Include the version of the mod, your graphics card Minecraft is running off of (and driver version), and your Forge version. If needed, put an image of the problem. If you wanna chat, you can find me on Espernet in the channel KColoredLights.

    Posted in: WIP Mods
  • 2

    posted a message on Colored Lights
    Quote from The_Architect2»

    posting a comment so I get notifications here :) (thank you for taking this up!)


    No problem. I like challenges, and this seemed like a good one.
    Quote from The_Basher»

    You could also hit Subscribe in the Tools menu for notifications ;)

    Otherwise, I'm really looking forward to this myself. Looking forward to testing this out when public builds are available.


    I'll let you know when they're available.
    Posted in: WIP Mods
  • 1

    posted a message on Colored Lights

    You are, in fact, seeing what you are supposed to see. "A" stands for ambient, which I was testing. If you go back to Jenkins, you'll see 2 more tests, one for green and red. Please test all three near blocks which have their own GL effects, (such as floating balls of particles, etc), as well as non-normal square blocks.


    Entities aren't affected because they're on a different OpenGL "pipeline", I believe, though terminology may be off.


    Also, for smaller tests you don't have to post the results here, feel free to simply PM me your findings, but I don't object to you posting here. Use your own discretion. :3

    Posted in: WIP Mods
  • 1

    posted a message on Colored Lights

    UPDATE:


    I've encountered a bug where enabling GL_LIGHTING kills grass and leaves color. To investigate, I tried to disable GL_TEXTURES_2D and see if there's an extra render step in grass and leaves. Turns out there was, here's side to side of what with and without lighting does to the blocks:




    Without GL_LIGHTING enabled:


    With GL_LIGHTING enabled:




    I believe this is caused by an extra rendering step done by the engine on grass and leaf blocks, but I'm not quite sure of the similarities between the two in terms of code.


    After digging a bit more, I found out that the problem was that it was rendering it with no color overlay, and would just point to the bland greyscale textures. I've replaced one of them, which seems to have fixed it:







    This is going to be a temporary fix until I can figure out how to force the textures to choose a correct lightmap value.

    Posted in: WIP Mods
  • 1

    posted a message on Colored Lights

    The actual OpenGL code used to render the light is only 24 lines of code long; it's not too bad. The main reason why it's not already in the game is because in the game's early state, the lighting system was written BY HAND, and has predominantly stayed that way, with the devs choosing not to use a lot of OpenGL's lighting. (In fact, GL_LIGHTING is DISABLED in Minecraft's code).

    Posted in: WIP Mods
  • 2

    posted a message on Colored Glass and Colored Light! (originally Just the 'Colored Glass!' topic but Mojang added our idea! :D Congrats everyone!)

    If anyone still follows this topic, (and I suspect a few do), I've started Colored Lights projects which hopes to implement all of the ideas said, from light going through colored glass to produce colored light, to simple colored light. Check out the WIP here.

    Posted in: Suggestions
  • 1

    posted a message on [1.7.10][Beta][WIP]Colored Light - Progress and Discussion

    If anyone is interested in a similar project, (adding colored lights to minecraft), I've decided to continue this mod, (albeit completely re-written). The WIP post can be found here.

    Posted in: WIP Mods
  • 1

    posted a message on [1.7.10][Beta][WIP]Colored Light - Progress and Discussion

    It's nothing really screenshot worthy; I'll post some when it works properly.

    Posted in: WIP Mods
  • To post a comment, please .