Black-and-white Minetest/video games
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Black-and-white Minetest/video games
Okay. I know this is a strange idea, and I may not even properly know what I'm trying to talk about, but what if Minetest, or other video games, used graphics engines (wait, am I correct?) that only rendered black and white, where all we need is a base texture and how dark it is, instead of all this RGB stuff? How much would performance be improved? Could such a thing be done?
Again, note, I'm just a curious newbie.
Again, note, I'm just a curious newbie.
- lisacvuk
- Member
- Posts: 274
- Joined: Sat Jul 19, 2014 11:52
- GitHub: lisacvuk
- IRC: lisac
- In-game: lisacvuk
- Location: Serbia, Užice
Re: Black-and-white Minetest/video games
You'd probably only save memory, I think. Performance probably wouldn't be really improved, at least not noticeably. I'm not expert (or even over the basics level) in this field, so feel free to correct me, if I'm wrong (or actually not wrong).
It's lisac, not lisa.
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)
400 character limit? Am I writing a book?
Administrator on Craig's server. Minetest player.
"The enemy pales when they see the face of Dazzle!" ~ Dazzle obviously.
I live in Serbia.
Steam | OpenDOTA
My mods:
Tool ranks
I appreciate donations in TF2 items. :)
Re: Black-and-white Minetest/video games
May be...lisacvuk wrote:You'd probably only save memory, I think. Performance probably wouldn't be really improved, at least not noticeably. I'm not expert (or even over the basics level) in this field, so feel free to correct me, if I'm wrong (or actually not wrong).
In my opinion you can get a bit more of performance, in Black and White...
If you modify the code to make that particles, only be of one color...
Can be a good idea do that...
Try it!
Have a nice day! :D
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
Yeah.
I was thinking that now we have to deal with four values (RGBA) but then we'd need only one?
I was thinking that now we have to deal with four values (RGBA) but then we'd need only one?
Re: Black-and-white Minetest/video games
Actually Black Is the absence of the colors, the black is the presence (Totally) of every one...ABJ wrote:Yeah.
I was thinking that now we have to deal with four values (RGBA) but then we'd need only one?
RGBA means RedGreenBlueAlpha...
If you think about some textures can have "alpha" or transparency, you don't going to only handle one value!
Have a nice day! :D
Re: Black-and-white Minetest/video games
This makes no difference in current hardware. Even if you use some sort of grayscale in your textures, at some point it'd end up translated into some internal representation that separates it in color channels that mix to give whatever shade of gray (that's how the screens work anyway).
I doubt you'd even save memory unless you use some archaic format to store the image data in memory. And even then it won't make it any faster.. perhaps slower depending how awkward the format is to deal with.
If you want faster image loading better just don't use any sort of image compression (unless you have a slow hard disk). The image will be larger on disk but it will load faster on memory. But even then you probably won't notice much of a difference anyway.
I doubt you'd even save memory unless you use some archaic format to store the image data in memory. And even then it won't make it any faster.. perhaps slower depending how awkward the format is to deal with.
If you want faster image loading better just don't use any sort of image compression (unless you have a slow hard disk). The image will be larger on disk but it will load faster on memory. But even then you probably won't notice much of a difference anyway.
Re: Black-and-white Minetest/video games
But actually can be good for trying to test out how is Minetest when it got to convert RGBA textures to Black/White ones...Ferk wrote:This makes no difference in current hardware. Even if you use some sort of grayscale in your textures, at some point it'd end up translated into some internal representation that separates it in color channels that mix to give whatever shade of gray (that's how the screens work anyway).
I doubt you'd even save memory unless you use some archaic format to store the image data in memory. And even then it won't make it any faster.. perhaps slower depending how awkward the format is to deal with.
If you want faster image loading better just don't use any sort of image compression (unless you have a slow hard disk). The image will be larger on disk but it will load faster on memory. But even then you probably won't notice much of a difference anyway.
Have a nice day! :D
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
OK.
In any case, we can just have one texture and set how dark it is (eg; pinewood, wood, junglewood, acaciawood, etc) with the same texture and a little coding.
Either way, IMHO all those World War simulators should become black-and-white.
In any case, we can just have one texture and set how dark it is (eg; pinewood, wood, junglewood, acaciawood, etc) with the same texture and a little coding.
Either way, IMHO all those World War simulators should become black-and-white.
Last edited by ABJ on Sat Aug 13, 2016 06:45, edited 1 time in total.
Re: Black-and-white Minetest/video games
Maybe...ABJ wrote:OK.
In any case, we can just have one texture and set how dark it is (eg; pinewood, wood, junglewood, acaciawood, etc) with the same texture and a little coding.
If you change the palete to only 4 greys, i don't know. the game can be faster, starting from the point that when a texture is less bigger, and less colorful... It's faster to load!
Have a nice day! :D
- cd2
- Member
- Posts: 562
- Joined: Mon Jun 01, 2015 06:30
- GitHub: cdqwertz
- In-game: cd cd2
- Location: Linux
- Contact:
Re: Black-and-white Minetest/video games
To see how it could look, just add this line of code to the end of opengl_fragmet.glsl (for me its line 212):
Code: Select all
col = vec4((col.b+col.g+col.b)/3.0,(col.b+col.g+col.b)/3.0,(col.b+col.g+col.b)/3.0, col.a);
- Attachments
-
- screenshot_20160820_131308.png (428.22 KiB) Viewed 1190 times
Last edited by cd2 on Sat Aug 20, 2016 11:23, edited 2 times in total.
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
Thanks and where is it?
BTW what about the sky though.
BTW what about the sky though.
- cd2
- Member
- Posts: 562
- Joined: Mon Jun 01, 2015 06:30
- GitHub: cdqwertz
- In-game: cd cd2
- Location: Linux
- Contact:
Re: Black-and-white Minetest/video games
client/shaders/node_shaderABJ wrote:Thanks and where is it?
It just changes all nodes, but I think you cant change the sky color via a shader is it?ABJ wrote:BTW what about the sky though.
PS : This wont improve performance
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
I knw but it looks cool.
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Black-and-white Minetest/video games
yep. i think shaders should be applying to all elements in game.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- Hybrid Dog
- Member
- Posts: 2836
- Joined: Thu Nov 01, 2012 12:46
- GitHub: HybridDog
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
Water=blue
Sky=blue
BTW where to paste anyway?
Sky=blue
BTW where to paste anyway?
- cd2
- Member
- Posts: 562
- Joined: Mon Jun 01, 2015 06:30
- GitHub: cdqwertz
- In-game: cd cd2
- Location: Linux
- Contact:
Re: Black-and-white Minetest/video games
ABJ wrote:BTW where to paste anyway?
cd2 wrote:(for me its line 212)
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
Ooooooooooooon which file in where.
- cd2
- Member
- Posts: 562
- Joined: Mon Jun 01, 2015 06:30
- GitHub: cdqwertz
- In-game: cd cd2
- Location: Linux
- Contact:
Re: Black-and-white Minetest/video games
client/shaders/node_shader/opengl_fragmet.glslcd2 wrote:client/shaders/node_shaderABJ wrote:Thanks and where is it?
line : 211/212
-
- Member
- Posts: 3015
- Joined: Sun Jan 18, 2015 13:02
- GitHub: ABJ-MV
- In-game: ABJ
- Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
Re: Black-and-white Minetest/video games
Oh sorry I wasn't reading that well enough.
-
- Member
- Posts: 3476
- Joined: Sun Jul 12, 2015 22:51
- GitHub: BBmine
- IRC: BBmine
- In-game: Baggins
- Location: USA
Re: Black-and-white Minetest/video games
Interesting..... I could use a texture pack too :)
Who is online
Users browsing this forum: No registered users and 4 guests