[Mod] Vignette - Surprisingly good for immersion [vignette]

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

[Mod] Vignette - Surprisingly good for immersion [vignette]

by TriBlade9 » Tue Jun 14, 2016 02:44

Vignette Mod

Adds a somewhat subtle vignette effect to the screen of players, darkening the edges of the screen.
Best used with an ambient_occlusion_gamma value of about 1.2.

Code License: MIT
Texture License: CC0
Depends: None
Source on Github
Download

With:
Image

Without:
Image

Mod dependencies: none

Thanks and enjoy,
- Tri
 

User avatar
D00Med
Member
 
Posts: 712
Joined: Sat Feb 07, 2015 22:49
GitHub: D00Med

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by D00Med » Tue Jun 14, 2016 06:57

The mod I've been waiting for, this is great! I'll try it out now...
Edit: I have been wanting to do this for a long time... D: 12 lines of code?
Anyway, great mod!
Look! I have a signature :]
My subgame: https://forum.minetest.net/viewtopic.php?f=15&t=14051#p207242
dmobs2 is coming...
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by TriBlade9 » Tue Jun 14, 2016 12:58

Yep. Took me about five minutes, and most of it was remembering how to write Lua. :3
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by azekill_DIABLO » Tue Jun 14, 2016 15:29

oh a question: if orking your mod and would like to know to remove an hud element just after placing it.
Can you help me?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by TriBlade9 » Tue Jun 14, 2016 16:32

If I understand your question correctly azekill_DIABLO, you're looking for player:hud_remove(id).

https://github.com/minetest/minetest/bl ... .txt#L2710
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by azekill_DIABLO » Tue Jun 14, 2016 16:45

yes but how to get the id of the hud_element?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by ExeterDad » Tue Jun 14, 2016 16:56

That really gives a nice effect.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by TriBlade9 » Tue Jun 14, 2016 18:40

azekill_DIABLO wrote:yes but how to get the id of the hud_element?

It is returned from add_hud

Or is your question how to get it from my mod?
I'd have to expose it in some way.
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by TriBlade9 » Tue Jun 14, 2016 18:42

ExeterDad wrote:That really gives a nice effect.


I think it's one of the big factors that made MT feel so plastic compared to MC.

I may be wrong though. It's very hard to determine what causes subconscious feelings. ;)
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Mod] Vignette [vignette] - Surprisingly good for immers

by azekill_DIABLO » Wed Jun 15, 2016 10:52

TriBlade9 wrote:
azekill_DIABLO wrote:yes but how to get the id of the hud_element?

It is returned from add_hud

Or is your question how to get it from my mod?
I'd have to expose it in some way.


i try to get it from your mod....i'm just modifing it :)
i'm adding a special hud on_damage (no problem with this)
buti want i leaves the screen some time after this....

Edit: this is a great mod
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by TriBlade9 » Wed Jun 15, 2016 12:46

Okay, I'll look into exposing the id.
 

User avatar
srifqi
Member
 
Posts: 508
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by srifqi » Wed Jun 15, 2016 16:20

Nice simple small mod! Just a function call and an image. :D
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by TriBlade9 » Wed Jun 15, 2016 22:25

srifqi wrote:Nice simple small mod! Just a function call and an image. :D

Yeppers. :)
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by MineYoshi » Wed Jun 15, 2016 23:08

Very nice effect to the game!

Very nice, i tested it and looks very great!
+100
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
Gael de Sailly
Member
 
Posts: 475
Joined: Sun Jan 26, 2014 17:01
GitHub: Gael-de-Sailly
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by Gael de Sailly » Fri Jun 17, 2016 11:08

Impressive simplicity.

On the first line I would prefer this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local function joinplayer (player)
because creating global variables is not advised when it can be avoided, because it may create confusion if ever another mod uses a variable called "joinplayer". Here, a local variable is better.
Very busy this year too, so do not expect me to be very active on the forum or in game. But I'm not about to drop Minetest forever :)
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by TriBlade9 » Fri Jun 17, 2016 14:49

Oops, I've been in Node.js-land too long. Forgot that creates a global function.

On the bright side, that will make exposing the id very simple.
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by Byakuren » Sat Jun 18, 2016 06:11

TriBlade9 wrote:Oops, I've been in Node.js-land too long. Forgot that creates a global function.

On the bright side, that will make exposing the id very simple.

It's not necessary to console yourself with the bright side, because it is a one keyword fix. To expose it you can just define a global table named after your mod, and put the function there.
Every time a mod API is left undocumented, a koala dies.
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by Bas080 » Sat Jun 18, 2016 21:58

I made a pull request which creates an api for the vignette mod. This allows for other mods to increase or decrease the darkness effect.

https://github.com/TriBlade9/minetest_vignette/pull/1
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by TriBlade9 » Mon Jun 20, 2016 20:24

Merged, thanks a ton Bas080!
 

bark
Member
 
Posts: 35
Joined: Thu Sep 24, 2015 13:25
In-game: bark

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by bark » Wed Jun 22, 2016 14:00

Love this mod! Thank you.
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by jordan4ibanez » Mon Jul 11, 2016 09:07

This should be in the game by default, very nice.
If you can think it, you can make it.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by Calinou » Mon Jul 11, 2016 09:45

jordan4ibanez wrote:This should be in the game by default, very nice.


Then it should be configurable, I don't personally like vignettes much and I don't think any "competitive" player does.
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by BrunoMine » Tue Jul 12, 2016 01:31

No matter which the server. This mod is awesome.
 

Diamond knight
Member
 
Posts: 262
Joined: Sun Apr 19, 2015 19:50
In-game: Diamondknight or diamond_knight

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by Diamond knight » Sun Jul 17, 2016 01:54

Calinou wrote:
jordan4ibanez wrote:This should be in the game by default, very nice.


Then it should be configurable, I don't personally like vignettes much and I don't think any "competitive" player does.


should be a setting in the same submenu as enable fullscreen in advanced settings
I can never get enough MESE!!!!!!!!!

my subgame: https://forum.minetest.net/viewtopic.php?f=50&t=11901
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by BrunoMine » Sun Jul 17, 2016 02:08

I believe that this feature should not exist in minetest. This is a unique recusro for survival servers. (Slightly increases the difficulty and puts insecurity player)

I've added to my server.
 

TriBlade9
Member
 
Posts: 89
Joined: Fri Sep 05, 2014 09:35

Re: [Mod] Vignette - Surprisingly good for immersion [vignet

by TriBlade9 » Mon Jul 18, 2016 01:10

Glad to see all the positive responses to this! Enjoy it!

I don't have any opinion on whether or not it should be default. That's the realm of the core devs.
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 6 guests

cron