Visual Effects

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

Visual Effects

by mauvebic » Thu Jul 11, 2013 17:55

The camera bobbing animation made me think about earthquakes, and then I thought, what if you could apply such camera effects from Lua?

[h]Suggested Effects[/h]
-camera shaking (duration, intensity)
-color filter (r,g,b,a)
-wavyness (duration, noise?)
- more (?)

[h]How it could work[/h]
Probably like sound, where you have a choice of applying the effect at a position with a radius, or to the player directly, or to all players. Combining multiple effects should also be possible.

[h]Possible Uses[/h]
Earthquakes/cave-ins, TNT mod, potions/spirits, vehicles, teleportation, etc.
Last edited by mauvebic on Thu Jul 11, 2013 18:00, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Jul 11, 2013 19:12

That would lag horribly on servers.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu Jul 11, 2013 19:15

How would it lag more than the camera bobbing or the death effects?

[edit]
And, would said lag be a problem for servers that don't install mods w/ visual effects?

Aside, mesecons isn't exactly light, but people still enjoy it, i'd expect it would be much the same with a decent potions mod.
Last edited by mauvebic on Thu Jul 11, 2013 19:21, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Jul 11, 2013 19:41

mauvebic wrote:How would it lag more than the camera bobbing or the death effects?

Because the client has to send an event to the server, the server has to call the Lua function, the Lua function tells the server to send the effect to the client, and then its finally visible.
Bobbing is done directly in the client, wich is waaaaay faster.
Last edited by PilzAdam on Thu Jul 11, 2013 19:41, edited 1 time in total.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu Jul 11, 2013 19:49

Well, you could apply that argument to any significant API feature, the question is whether the uses outweigh the costs.

ABMs also cause lag, they are overused by plenty of mods, but no one would want to live without them, because they make the game more interesting.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Jul 11, 2013 20:52

mauvebic wrote:Well, you could apply that argument to any significant API feature, the question is whether the uses outweigh the costs.

ABMs also cause lag, they are overused by plenty of mods, but no one would want to live without them, because they make the game more interesting.

Nono, your getting it wrong, I dont mean "load", I mean actual latency between an action in the client and the resulting effects.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Thu Jul 11, 2013 21:20

Well i'm just throwing the idea out there. Im not sure I understand the difference between visual effects and say, a mob (server) killing a player and the subsequent deathscreen (client).
"Fuck the hat." - Paulie Gualtieri
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33

by sdzen » Thu Jul 11, 2013 23:29

mauvebic wrote:Well i'm just throwing the idea out there. Im not sure I understand the difference between visual effects and say, a mob (server) killing a player and the subsequent deathscreen (client).

triggers, nuff said
[h]Zen S.D.[/h] 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
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Fri Jul 12, 2013 00:01

Well, if old bugs got fixed once in awhile, new features wouldn't be such a drag :p
"Fuck the hat." - Paulie Gualtieri
 

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

by Inocudom » Fri Jul 12, 2013 00:20

mauvebic wrote:Well, if old bugs got fixed once in awhile, new features wouldn't be such a drag :p


One old bug that could use a fixing is the lighting errors caused by lava.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Fri Jul 12, 2013 01:10

I can understand why it doesn't get done, who wants to fix someone else's sloppy code? Still, if performance is enough of an issue to not add new features, then performance should be addressed so the engine can keep evolving.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Fri Jul 12, 2013 04:33

Inocudom wrote:
mauvebic wrote:Well, if old bugs got fixed once in awhile, new features wouldn't be such a drag :p


One old bug that could use a fixing is the lighting errors caused by lava.
NO, NO! Anytime you burn a jungle down, the lights remain. That must be fixed.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by Inocudom » Fri Jul 12, 2013 04:43

Jordach wrote:
Inocudom wrote:
mauvebic wrote:Well, if old bugs got fixed once in awhile, new features wouldn't be such a drag :p


One old bug that could use a fixing is the lighting errors caused by lava.
NO, NO! Anytime you burn a jungle down, the lights remain. That must be fixed.


It looks like lava and fire cause the most lighting errors, though sometimes sunlight can end up shining underground and underwater as well.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 2 guests

cron