Colored Light

For people working on the C++ code.
Post Reply
User avatar
JacobF
New member
Posts: 5
Joined: Thu Mar 15, 2012 15:16

Colored Light

by JacobF » Post

I always wanted colored light in minetest so I decided to get on and code it to see how it fared.

The Good
It looks great and adds 1000x to the mood.

The Bad
3x more work for the server causing noticeable lag.
Minetest is totally made for singe color light and some situations don't work right.

Video: http://www.youtube.com/watch?v=1MWZxyCsbv4
Try it out: https://github.com/Queatz/minetest/tree/colored_light (edit: link is dead, see this)

User avatar
sfan5
Moderator
Posts: 3933
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Nice!
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
redcrab
Member
Posts: 831
Joined: Tue Dec 13, 2011 13:45
Location: France
Contact:

by redcrab » Post

... Wow very nice !
0.4 for serious builder click here
Dedicated Minetest redcrab server forum at http://minetestbb.suret.net

It's nice to be important but it is more important to be nice.

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

i like it:D but i think you should make a torch mod to combine al the things your placing of that color. like add cactus to torch to make green torch
Keep calm and code python^_^

Jordach
Member
Posts: 4525
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

by Jordach » Post

Tat's rather nice.
viewtopic.php?f=10&t=19056 Solar Plains Dev Server

User avatar
Gatharoth
Member
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Post

I like it, but I don't think all those things you placed should emit light. Lava and torch are okay because they are meant to emit light. A cactus is not.

User avatar
sfan5
Moderator
Posts: 3933
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

Gatharoth wrote:I like it, but I don't think all those things you placed should emit light. Lava and torch are okay because they are meant to emit light. A cactus is not.
I think it's just for Testing
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
Gatharoth
Member
Posts: 196
Joined: Thu Dec 22, 2011 02:54

by Gatharoth » Post

sfan5 wrote:
Gatharoth wrote:I like it, but I don't think all those things you placed should emit light. Lava and torch are okay because they are meant to emit light. A cactus is not.
I think it's just for Testing
99.99999999999999999999999999999999% sure it is, but just saying. >.<

User avatar
JacobF
New member
Posts: 5
Joined: Thu Mar 15, 2012 15:16

by JacobF » Post

It is. ;)

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

quite nice

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

User avatar
TheWesleyOne
Member
Posts: 15
Joined: Thu May 10, 2012 17:26
Location: Surrey, BC Canada

by TheWesleyOne » Post

Do you plan on updating to the latest rev.?
Yes I know the name is not proper, it sounds better this way

User avatar
JacobF
New member
Posts: 5
Joined: Thu Mar 15, 2012 15:16

by JacobF » Post

Hmm seems to be so different now. I tried merging but there's a multitude of conflicts and c55 doesn't even want it so probably not unless it has some type of future.

User avatar
TheWesleyOne
Member
Posts: 15
Joined: Thu May 10, 2012 17:26
Location: Surrey, BC Canada

by TheWesleyOne » Post

I liked it a lot, and was hoping to merge it in to mine, and use it to improve my fork
Yes I know the name is not proper, it sounds better this way

User avatar
JacobF
New member
Posts: 5
Joined: Thu Mar 15, 2012 15:16

by JacobF » Post

Alright, that summons a worth. Give me a few hours and it'll be up to date.

User avatar
TheWesleyOne
Member
Posts: 15
Joined: Thu May 10, 2012 17:26
Location: Surrey, BC Canada

by TheWesleyOne » Post

Thank you for your efforts.
Yes I know the name is not proper, it sounds better this way

User avatar
JacobF
New member
Posts: 5
Joined: Thu Mar 15, 2012 15:16

by JacobF » Post

Hmm, so much has changed, I'll have to pick it up in the morning.

User avatar
MirceaKitsune
Member
Posts: 867
Joined: Sat May 21, 2011 22:31
GitHub: MirceaKitsune
IRC: Taoki
In-game: MirceaKitsune
Location: Romania, Bucharest
Contact:

by MirceaKitsune » Post

I haven't tried the code yet, but 100% approve of adding colored lights! I'm not sure if this can be done before hardware lighting via shaders is (also a must), but it would be fantastic if it could. I hope the feature will reach a state where it can be included into Minetest.

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

Here's the patch http://pastebin.com/raw.php?i=6dXnVvbB (links in the first post are dead) if anyone is interested.

User avatar
Inocudom
Member
Posts: 3096
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

I have not forgotten about colored lights, and I still feel that they can add a new sense of beauty to Minetest. Terasology has them...
You can now find my videos at BitChute: https://www.bitchute.com/channel/some_cheeky_jinuskian/

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest