I had this idea based on someone else's suggestion in the Suggestion forum, but I wondered if anyone could make a mod for it. Basically, I was wondering if anyone could make a mod that allows for a lit torch to give off light when held in the player's hand. Now, I know that the game engine doesn't currently support "dynamic lighting," per se, but I think that with a bit of coding, a light could look dynamic, even if it isn't really by definition.
Basically, the coding would go something like this: While the player has the torch/light in their hand, a light source would be emitted from the center of the block the player's head is closest to. In short, a new light would be rendered every time the player moved into a new block of air. Like I said, it isn't dynamic, but it's pseudo-dynamic.
I don't think this should create a lot of lag, mainly because this would have the same rendering effect as a player running along a wall and quickly placing torches along the way. Lag or not, I really want to see it made.
So, I ask the modding community, is anyone up for the challenge? I'm not really worried about a time frame or anything, I just want Notch to see that it can be done.
P.S. I'm asking others to do this because I have absolutely no Java coding experience whatsoever :tongue.gif:
P. P. S. If this already exists (I searched but couldn't find), and if I can be redirected to that mod, I will stop being a moron and go use that one XP
I've already done it but haven't released it yet and won't for a little longer (part of a project I'm working on). If done incorrectly then yes it creates very noticeable frame rate hicks. Fixing that was the hard part (well also deciding upon the best way to setup the light as well).
Edit: BTW I'm very confused why requests are allowed in this forum. Really seems like suggestions forum is where requests belong.
Rollback Post to RevisionRollBack
You're a lone commando tasked to destroy the Nazi Zombie Federation's dam.
I've already done it but haven't released it yet and won't for a little longer (part of a project I'm working on). If done incorrectly then yes it creates very noticeable frame rate hicks. Fixing that was the hard part (well also deciding upon the best way to setup the light as well).
Edit: BTW I'm very confused why requests are allowed in this forum. Really seems like suggestions forum is where requests belong.
Thank you, Cryect! I hope you release the mod soon (at least the torch part)! It looks great, and I'm glad you've got it working without any huge bugs.
And, the Suggestions forum is for suggestions for the actual game (meaning coded by Notch and Co. and updated by the MC client). There are already a bajillion request for moving light sources there. This request was for a mod.
Anyway, thanks again! Hope to see your work published soon!
wow, this is super awesome. I would imagine it would cause some pretty nasty lag though.
Has anyone ever requested an item that sort of acts like night vision? Make everything perfectly visible regardless of actual light, but be colorless or something to balance its usefulness? Would that even be possible I wonder...
Anyways, not to hijack the topic. That video is awesome and I would love to try using it in my own game. =D
I think it would be REALLY sweet (like, really, really...) to be able to craft a torch (or lantern!) onto your helmet to wear the light source. The recipe could be as simple as:
[] []
[] []
[] [] []
Where Notch is a preexisting helmet.
All this would enable you to still mine and fight and such. But this might be too over-powered... as such, it could have a time limit. Something like 3 in-game days before it extinguishes. The usage left could be displayed just like the damage on a tool or weapon (a "health" bar below) or a number in the top left. With a number, the inventory sprite would not have to be modified either.
MOREOVER, if Cryect does release his handheld torch mod separately, it would be very easy to implement my light helmet idea. A new recipe would just have to be created in the item class (I think? Not very good with coding.. :tongue.gif:).
wow, this is super awesome. I would imagine it would cause some pretty nasty lag though.
Has anyone ever requested an item that sort of acts like night vision? Make everything perfectly visible regardless of actual light, but be colorless or something to balance its usefulness? Would that even be possible I wonder...
Anyways, not to hijack the topic. That video is awesome and I would love to try using it in my own game. =D
The moving light doesn't actually cause that much of a frame rate hit could be optimized a little better but would require fairly massive changes to notch's code which makes it harder to integrate.
That's actually easier to do than the moving torch light with no hit besides turning it on/off. Just change the light value returned by the functions that get the brightness for rendering to be 1.0f and flush the render cache and it will be all full bright.
Maybe I will throw a tutorial together later (meaning weekend at the possible earliest if I do) covering them though it requires changes to notch's code.
Rollback Post to RevisionRollBack
You're a lone commando tasked to destroy the Nazi Zombie Federation's dam.
Mod edit: Please do not bump threads like this (especially if you are not the OP). I'm not going to issue a warning, as I can see that you didn't mean any harm by it.
Rollback Post to RevisionRollBack
Proud Moderator of Underground Miner, a now-dead server. 4 years of moderating, and it was a good time.
Mod edit: Please do not bump threads like this (especially if you are not the OP). I'm not going to issue a warning, as I can see that you didn't mean any harm by it.
Why? People bump other people's threads all the time. What is wrong with this?
But PLEEAASSSEE finish that mod soon.
Rollback Post to RevisionRollBack
Quote from Guest101 »
Quote from Timmysteve »
Quote from jzel »
Nice color and size spam..
It's not spam, dude, this is just how I talk
Dude! That's totally math! We should hang out sometime and slay evil and junk!
My football team is the Russian bears on unicycles.
Basically, the coding would go something like this: While the player has the torch/light in their hand, a light source would be emitted from the center of the block the player's head is closest to. In short, a new light would be rendered every time the player moved into a new block of air. Like I said, it isn't dynamic, but it's pseudo-dynamic.
I don't think this should create a lot of lag, mainly because this would have the same rendering effect as a player running along a wall and quickly placing torches along the way. Lag or not, I really want to see it made.
So, I ask the modding community, is anyone up for the challenge? I'm not really worried about a time frame or anything, I just want Notch to see that it can be done.
P.S. I'm asking others to do this because I have absolutely no Java coding experience whatsoever :tongue.gif:
P. P. S. If this already exists (I searched but couldn't find), and if I can be redirected to that mod, I will stop being a moron and go use that one XP
Taming Spiders!
My Suggestions on Goblin Villages
Edit: BTW I'm very confused why requests are allowed in this forum. Really seems like suggestions forum is where requests belong.
OMG you done it please release it soon =D
Mountain Sky Tower!
And, the Suggestions forum is for suggestions for the actual game (meaning coded by Notch and Co. and updated by the MC client). There are already a bajillion request for moving light sources there. This request was for a mod.
Anyway, thanks again! Hope to see your work published soon!
Taming Spiders!
My Suggestions on Goblin Villages
This is one thing I'm really looking forward to. :smile.gif:
Has anyone ever requested an item that sort of acts like night vision? Make everything perfectly visible regardless of actual light, but be colorless or something to balance its usefulness? Would that even be possible I wonder...
Anyways, not to hijack the topic. That video is awesome and I would love to try using it in my own game. =D
[] []
[] []
[] [] []
Where Notch is a preexisting helmet.
All this would enable you to still mine and fight and such. But this might be too over-powered... as such, it could have a time limit. Something like 3 in-game days before it extinguishes. The usage left could be displayed just like the damage on a tool or weapon (a "health" bar below) or a number in the top left. With a number, the inventory sprite would not have to be modified either.
MOREOVER, if Cryect does release his handheld torch mod separately, it would be very easy to implement my light helmet idea. A new recipe would just have to be created in the item class (I think? Not very good with coding.. :tongue.gif:).
The moving light doesn't actually cause that much of a frame rate hit could be optimized a little better but would require fairly massive changes to notch's code which makes it harder to integrate.
That's actually easier to do than the moving torch light with no hit besides turning it on/off. Just change the light value returned by the functions that get the brightness for rendering to be 1.0f and flush the render cache and it will be all full bright.
Maybe I will throw a tutorial together later (meaning weekend at the possible earliest if I do) covering them though it requires changes to notch's code.
Mod edit: Please do not bump threads like this (especially if you are not the OP). I'm not going to issue a warning, as I can see that you didn't mean any harm by it.
Proud Moderator of Underground Miner, a now-dead server. 4 years of moderating, and it was a good time.
Why? People bump other people's threads all the time. What is wrong with this?
But PLEEAASSSEE finish that mod soon.
My football team is the Russian bears on unicycles.
My football team is the Russian bears on unicycles.