Vibrant Lighting
Vibrant Lighting
For me Minetest is better than Minecraft. Well, I adore Minecraft a lot, is a great and eternal game indeed, but Minetest has something special for me.
But the worst thing for me is the lighting. When I play Minecraft I feel it quite diferent. The colors and light in Minetest are "sad" and "dull". I do not know the cause: textures? no shadows? no proper ambient light? no real dynamic lighting? bad fov?
Minecraft
Minetest
In this images the difference is obvious.
:-O
But the worst thing for me is the lighting. When I play Minecraft I feel it quite diferent. The colors and light in Minetest are "sad" and "dull". I do not know the cause: textures? no shadows? no proper ambient light? no real dynamic lighting? bad fov?
Minecraft
Minetest
In this images the difference is obvious.
:-O
- ShallowDweller
- Member
- Posts: 77
- Joined: Thu Nov 02, 2017 22:23
Re: Vibrant Lighting
I blame the texture pack you are using in minetest.
Well, I think the lighting could use some improvements, but there has already been a recent discussion about it, so I'm hoping the next MT version will have improved something.
One way to test if it is the texture's fault is by using MC's default resource pack and applying the textures to MT to see if anything feels better (be sure to post some screenshots if you do this test). With MC having access to 32x32 textures and forbiding everything else from doing the same, it could be the texture's sizes' fault.
I personaly don't see the lack of shadows as a problem. Unless a better lighting would require shadows, that is.
Well, I think the lighting could use some improvements, but there has already been a recent discussion about it, so I'm hoping the next MT version will have improved something.
One way to test if it is the texture's fault is by using MC's default resource pack and applying the textures to MT to see if anything feels better (be sure to post some screenshots if you do this test). With MC having access to 32x32 textures and forbiding everything else from doing the same, it could be the texture's sizes' fault.
I personaly don't see the lack of shadows as a problem. Unless a better lighting would require shadows, that is.
- paramat
- Developer
- Posts: 3700
- Joined: Sun Oct 28, 2012 00:05
- GitHub: paramat
- IRC: paramat
- Location: UK
Re: Vibrant Lighting
GayJesus,
What you 'complained' about was not a bug or a problem, everything is explained in detail your thread. What you got used to in MT 0.4.16 was the bug and the problem, then you did not like it when that was fixed. Your issue is irrelevant here as this thread is not about darkness in completely dark areas.
runs,
When i looked at your screenshots i actually assumed that MT was the top one and MC the bottom, because the top one looks so much worse: Washed out, little 3D definition, almost no shadow under that bridge, almost no ambient occlusion (ugly textures too).
I am surprised to discover that the screenshots are actually the other way around.
If that is your interpretation of these screenshots i think you have very strange visual taste.
Anyway, MC generally looks much better than your screenshot, so i assume you have chosen a poor example.
Textures have a big effect on appearence and i agree that default MTG textures are not great. Differing textures make this hard to judge.
MC does not have dynamic lighting / shadows as standard, so those features are irrelevant to the comparisom.
Ironically it is actually the MC screenshot here that is lacking shadows =)
What you 'complained' about was not a bug or a problem, everything is explained in detail your thread. What you got used to in MT 0.4.16 was the bug and the problem, then you did not like it when that was fixed. Your issue is irrelevant here as this thread is not about darkness in completely dark areas.
runs,
When i looked at your screenshots i actually assumed that MT was the top one and MC the bottom, because the top one looks so much worse: Washed out, little 3D definition, almost no shadow under that bridge, almost no ambient occlusion (ugly textures too).
I am surprised to discover that the screenshots are actually the other way around.
If that is your interpretation of these screenshots i think you have very strange visual taste.
Anyway, MC generally looks much better than your screenshot, so i assume you have chosen a poor example.
Textures have a big effect on appearence and i agree that default MTG textures are not great. Differing textures make this hard to judge.
MC does not have dynamic lighting / shadows as standard, so those features are irrelevant to the comparisom.
Ironically it is actually the MC screenshot here that is lacking shadows =)
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Vibrant Lighting
I suspect the reason you're noticing deficiencies with Minetest lighting is because you are running an extremely obsolete version. The engine has improved a lot since 2013, including fixes to lighting. I would recommend upgrading to at least 0.4.17.
- Hugues Ross
- Developer
- Posts: 72
- Joined: Mon May 06, 2019 22:52
- GitHub: Df458
- Location: Kitchens, Pantries, etc.
- Contact:
Re: Vibrant Lighting
This doesn't affect natural lights, but one thing that makes Minecraft's artificial lighting look much better is the way they color lights. It has been a while since I last played, but iirc artificial light isn't pure white, it gets tinted on a gradient from white (brightest) across the spectrum through yellow/orange/red as it darkens. This gives a more natural/dynamic feeling to the resulting light because it isn't perfectly uniform in color.
It wouldn't be hard to add this to Minetest as well, I actually hacked the feature together in a couple hours as a test a few months back.
It wouldn't be hard to add this to Minetest as well, I actually hacked the feature together in a couple hours as a test a few months back.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
This is a good idea actually. The light is now stored in two numbers: day light and night light. And the actual lighting is also affected by the current time. So it can be like this: (day light/ night light)Hugues Ross wrote:This doesn't affect natural lights, but one thing that makes Minecraft's artificial lighting look much better is the way they color lights. It has been a while since I last played, but iirc artificial light isn't pure white, it gets tinted on a gradient from white (brightest) across the spectrum through yellow/orange/red as it darkens. This gives a more natural/dynamic feeling to the resulting light because it isn't perfectly uniform in color.
It wouldn't be hard to add this to Minetest as well, I actually hacked the feature together in a couple hours as a test a few months back.
0/0 - complete darkness, lighting #000000 in both day and night
0/16 - lit darkness, lighting #FFC080 in both day and night
16/0 in the night - area lit by the Moon, lighting #202040
16/0 in the day - area lit by the Sun, lighting #FFFFFF
And you get the rest by linear combinations.
If you lack the reality, go on a trip or find a job.
- voxelproof
- Member
- Posts: 1087
- Joined: Sat Aug 05, 2017 08:13
- Location: Europe
Re: Vibrant Lighting
Maybe try to experiment a little with the MT advanced settings. As for me, although I'm fully aware of the shortcomings of the MT gfx, it's still good enough to have a pretty good time rambling across the awesome landscapes of the tweaked mapgens.runs wrote:For me Minetest is better than Minecraft. Well, I adore Minecraft a lot, is a great and eternal game indeed, but Minetest has something special for me.
But the worst thing for me is the lighting. When I play Minecraft I feel it quite diferent. The colors and light in Minetest are "sad" and "dull". I do not know the cause: textures? no shadows? no proper ambient light? no real dynamic lighting? bad fov?
In this images the difference is obvious.
:-O
- Attachments
-
- MT_New_World2.jpg (754.89 KiB) Viewed 2126 times
To miss the joy is to miss all. Robert Louis Stevenson
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Vibrant Lighting
There was a PR from 2017 that aimed to implement natural vs artificial light, but unfortunately it remains closed. Hopefully someone can pick up the reigns and get it working properly.Hugues Ross wrote:This doesn't affect natural lights, but one thing that makes Minecraft's artificial lighting look much better is the way they color lights. It has been a while since I last played, but iirc artificial light isn't pure white, it gets tinted on a gradient from white (brightest) across the spectrum through yellow/orange/red as it darkens. This gives a more natural/dynamic feeling to the resulting light because it isn't perfectly uniform in color.
It wouldn't be hard to add this to Minetest as well, I actually hacked the feature together in a couple hours as a test a few months back.
https://github.com/minetest/minetest/pull/5687
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Vibrant Lighting
Actually this affects natural light, too. Minecraft’ lighting is just perfect. It has different light temperatures depending on what time it is and in what biome you are. This is barely notable but adds a lot to the overall look. Just check out the ice spikes and the swamp biome pictures. The effect is best visible in the sky.Hugues Ross wrote:This doesn't affect natural lights,
https://minecraft.gamepedia.com/File:Ice_Spikes.png
https://minecraft.gamepedia.com/File:Swamp.png
Just open both images and flip back and forth between them to see the difference.
Absolutely. Colored lights are an absolute must-have in my opinion. Light from torches simply does not have the same color as light from the sun in a desert – which has a different light temperature than a dusky deep forest.Hugues Ross wrote:but one thing that makes Minecraft's artificial lighting look much better is the way they color lights.
Irrlicht actually supports various colored dynamic lights with proper reflections and shadows but unfortunately this isn’t usable because how Minetest uses Irrlicht.
This guy uses an GLSL shader
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Vibrant Lighting
Seeking core dev opinions:
How hard do you think it would be to implement dynamic lighting capabilities as shown in the video above into the engine?
I'm thinking this could be entirely separate from the existing precalculated lighting system, and would be simply a post-visual effect applied client-side during rendering (hence, getting param1 in mods would still return the current daylight vs nightlight value irrespective of the dynamic lights applied). If it were done that way, would it be feasible?
How hard do you think it would be to implement dynamic lighting capabilities as shown in the video above into the engine?
I'm thinking this could be entirely separate from the existing precalculated lighting system, and would be simply a post-visual effect applied client-side during rendering (hence, getting param1 in mods would still return the current daylight vs nightlight value irrespective of the dynamic lights applied). If it were done that way, would it be feasible?
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Vibrant Lighting
Yes, colored light being entirely visual in the client would be absolutely enough. Having it in the API so mods can access (read and write) this value would be a bonus (example use case: a mod that adds mobs that are afraid of red light but attracted to green light).
But every step forward would be a good step.
But every step forward would be a good step.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
For grass changing colour according to biome:
What if there was a texture modifier like ^[biome which took a file with tints and tinted the texture according the current humidity and temperature? The image with tints could be a square like this one: https://minecraft.gamepedia.com/File:Grasscolor.png
What if there was a texture modifier like ^[biome which took a file with tints and tinted the texture according the current humidity and temperature? The image with tints could be a square like this one: https://minecraft.gamepedia.com/File:Grasscolor.png
If you lack the reality, go on a trip or find a job.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
Today I spent 10 hours by trying to improve the lighting. The lighting code is so bloated, it is being calculated on many different places. And the handling of daylight is poor too, the lights should add up but they override each other instead. (eg. red + blue should result in purple but it results in blue instead) The "alpha" thing in lighting is a crap, there's nothing like translucent light. The light can be stronger or weaker but not translucent. To make the light weaker, reducing all RGB channels should be sufficient. Emitting a black light shouldn't do anything. Currently, Minetest is set so that emitting black light makes a shadow, which is completely wrong!
If you lack the reality, go on a trip or find a job.
Re: Vibrant Lighting
I feel like the sky is better in Minecraft. I mean the blue color, in Minetest is most a gray blue. Also the sunset, in Minecraft is more orangish.
I will be happy with a better sky color.
I think a slight improvement in this area, lighting-coloring would be cool.
I will be happy with a better sky color.
I think a slight improvement in this area, lighting-coloring would be cool.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
I agree there. Also the sky in Minetest seems to be nearly a plain colour while the other game uses a way more dramatic gradient.
If you lack the reality, go on a trip or find a job.
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Vibrant Lighting
As posted earlier: Even within Minecraft the sky varies. Not only spectacular lighting in morning/evening situations (looks awesome with mountains in the background) but also between different biomes. It sometimes is barely noticeable but subliminally adds a lot of atmosphere to the game.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
Well, it could vary more then ;)
If you lack the reality, go on a trip or find a job.
- texmex
- Member
- Posts: 1753
- Joined: Mon Jul 11, 2016 21:08
- GitHub: tacotexmex
- In-game: tacotexmex
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
It's slightly better but it doesn't actually solve the problem.texmex wrote:Have you tried enabling tone mapping?
If you lack the reality, go on a trip or find a job.
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Vibrant Lighting
My thought is that dynamic colored lighting could be implemented as a special type of LuaEntitySAO, therefore no change to the database format or network protocol would even be required (I think). Here is a very basic specification that comes to mind:Linuxdirk wrote:Yes, colored light being entirely visual in the client would be absolutely enough. Having it in the API so mods can access (read and write) this value would be a bonus (example use case: a mod that adds mobs that are afraid of red light but attracted to green light).
Code: Select all
{
visual = "light",
visual_size = {x=1, y=1},
light = {
type = "spot",
color = "#FF000077",
curve = 0.5
focus = 1.0
},
collisionbox = { -0.5,0.0,-0.5, 0.5, 10.0, 5.0 }
intensity = 1.0,
is_visible = true,
}
The light.type specifies the light source type:
- "omni" for a point light source
- "spot" for elliptical beam (like from a par-can fixture)
- "flat" for rectangular beam (like from a window opening)
- "gobo" for a textured beam (like from a gobo projector)
The light.curve property specifies the brightness curve of the light from source to terminus, with 0.0 being fully logarithmic, 1.0 being fully exponential, 0.5 being linear fall-off. The terminus distance is determined by the height of the collisionbox.
The light.focus specifies the sharpness of the beam projection, with 0.0 being fully diffuse and 1.0 being fully sharp. The diffusion is applied inwardly from the collisionbox edges to the center. This property only applies to 'flat' and 'spot' light types.
The textures property specifies an 8-bit gobo mask to project onto the surface of objects tinted with the specified light color. If a spritesheet is defined, then the gobo mask will be animated. This property only applies to 'gobo' type lights.
- v-rob
- Developer
- Posts: 971
- Joined: Thu Mar 24, 2016 03:19
- GitHub: v-rob
- IRC: v-rob
- Location: Right behind you.
Re: Vibrant Lighting
I think that we should add colored lighting, but there be a thing in the world file that states that there is colored lighting in that specific world, so Minetest will load the world with or without colored lighting depending on that world setting. If the Minetest world is loaded without color support, then any mods that use the colored lighting API in that world will be ignored or give an error unless the world is updated to the new system.
Of course, if we get true dynamic directional lighting, it either won't be stored in the world file or the world file will be broken anyway, so then will be the time to add colored lighting.
Of course, if we get true dynamic directional lighting, it either won't be stored in the world file or the world file will be broken anyway, so then will be the time to add colored lighting.
- Hume2
- Member
- Posts: 710
- Joined: Tue Jun 19, 2018 08:24
- GitHub: Hume2
- In-game: Hume2
- Location: Czech Republic
Re: Vibrant Lighting
What is an opaque light? Does it mean that you can't see through the beams? Or that the light overrides the textures so you can't see them through the light?sorcerykid wrote: It may include an optional alpha channel for transparency, otherwise it will be rendered fully opaque.
Or the world can be forced to convert into the new lighting format.v-rob wrote:I think that we should add colored lighting, but there be a thing in the world file that states that there is colored lighting in that specific world, so Minetest will load the world with or without colored lighting depending on that world setting. If the Minetest world is loaded without color support, then any mods that use the colored lighting API in that world will be ignored or give an error unless the world is updated to the new system.
If you leave lighting completely on the renderer, you won't be able to use it in the game logic.v-rob wrote:Of course, if we get true dynamic directional lighting, it either won't be stored in the world file or the world file will be broken anyway, so then will be the time to add colored lighting.
If you lack the reality, go on a trip or find a job.
Re: Vibrant Lighting
That looks appetizing. Are those specs based on Irrlicht's known capabilities?sorcerykid wrote: My thought is that dynamic colored lighting could be implemented as a special type of LuaEntitySAO, therefore no change to the database format or network protocol would even be required (I think). Here is a very basic specification that comes to mind: [...]
Two drawbacks though: static (e.g. lamps) colored lights are not addressed - I fear there that doing this with entities could be expansive at scale - and implementing e.g. a fireball that lights things on its way (or falling torches etc.) will require two entities. I guess in the latter case, the use is more "transient" and the possibly of attaching two entities will make things relatively easy, but hopefully Irrlicht won't have the "strange idea" that entities can block light.
Re: Vibrant Lighting
Agreed.runs wrote:I feel like the sky is better in Minecraft. I mean the blue color, in Minetest is most a gray blue.
Which one do you like better?
If you guys like it, I've got a PR ready to roll.
- Attachments
-
- screenshot_20200228_202645.png (156.81 KiB) Viewed 927 times
-
- screenshot_20200228_201931.png (156.95 KiB) Viewed 927 times
Who is online
Users browsing this forum: No registered users and 14 guests