depth of field shader

depth of field shader

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

depth of field shader

Post by jK » 04 Jan 2008, 20:58

A nice depth of field shader.

Perhaps usefull to make videos?

Image

Image
0 x

Sheekel
Posts: 1390
Joined: 19 Apr 2005, 19:23

Re: depth of field shader

Post by Sheekel » 04 Jan 2008, 21:37

Looks nice, though a bit overdone
0 x

BaNa
Posts: 1561
Joined: 09 Sep 2007, 21:05

Re: depth of field shader

Post by BaNa » 06 Jan 2008, 14:27

O_o sweeet...
0 x

User avatar
Noruas
XTA Developer
Posts: 1267
Joined: 24 Feb 2005, 02:58

Re: depth of field shader

Post by Noruas » 11 Jan 2008, 16:38

Awsome widget, but it pwns my E 8400 GS 256 MB graphic card in seconds. It goes from any frame rate immediatly down to 5. Could this be a 8000 series problem? OR just this really drains alot of power? Because its really cool, and the picture does not do its justice.
0 x

User avatar
AF
AI Developer
Posts: 20669
Joined: 14 Sep 2004, 11:32

Re: depth of field shader

Post by AF » 11 Jan 2008, 20:06

If there's anything the 8xxx class cards should be good at, it'd be running shaders =s
0 x

User avatar
Isaactoo
Posts: 124
Joined: 08 Dec 2004, 21:53

3D analygraph?

Post by Isaactoo » 11 Jan 2008, 23:33

Would it be possible to make a widget which makes Spring 3D using cyan and red?
It would be an awesome widget...
Attachments
circle3D.png
Demonstration of analygraph image.
circle3D.png (6.27 KiB) Viewed 6745 times
0 x

User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: 3D analygraph?

Post by SinbadEV » 11 Jan 2008, 23:55

Isaactoo wrote:Would it be possible to make a widget which makes Spring 3D using cyan and red?
It would be an awesome widget...
Acctually, ensure that the colors are specifiable by the user, some monitors and glasses will present/need different colors
0 x

User avatar
Isaactoo
Posts: 124
Joined: 08 Dec 2004, 21:53

Post by Isaactoo » 12 Jan 2008, 01:32

Yeah, and it'd also be nice to be able to customize the degree to which it separates the cyan/red from the object (more/less depth) and the opacity of the cyan/red (or whatever color).
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: depth of field shader

Post by jK » 12 Jan 2008, 06:02

Noruas wrote:Awsome widget, but it pwns my E 8400 GS 256 MB graphic card in seconds. It goes from any frame rate immediatly down to 5. Could this be a 8000 series problem? OR just this really drains alot of power? Because its really cool, and the picture does not do its justice.
AF wrote:If there's anything the 8xxx class cards should be good at, it'd be running shaders =s
It does on my 7600GT only a <10 fps drop. So I think it is a problem with the screen-copies. Perhaps a driver update helps?
0 x

BurilloTA
Posts: 12
Joined: 11 Mar 2007, 16:31

Re: depth of field shader

Post by BurilloTA » 14 Jan 2008, 16:54

how should i use this? i can see it in widget list, it is enabled, but i can't see any blur! Maybe my gcard is to blame? i got ATi Mobility Radeon X1700.
0 x

User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: depth of field shader

Post by Pressure Line » 15 Jan 2008, 12:15

if you have an ATi card, and something doesnt work/screws up with Spring, chances are its the card. and its a laptop one at that...
0 x

BurilloTA
Posts: 12
Joined: 11 Mar 2007, 16:31

Re: depth of field shader

Post by BurilloTA » 15 Jan 2008, 15:28

every time i use ATI - i have only problems... i even can't install beryl on my laptop 'cos my gcard is not supported!
0 x

User avatar
Noruas
XTA Developer
Posts: 1267
Joined: 24 Feb 2005, 02:58

Re: depth of field shader

Post by Noruas » 15 Jan 2008, 22:25

I just done latest 8000 series driver updates, it only improved my fps with the widget off by 5-10 frames, but yeah, it pwns hard, harder then dynamic water which 8 series cards get pwned doing.

Heres one picture using the depth of field shader, black outlines, shadows, and reflections on.

http://www.unknown-files.net/pictures/r ... 730ff4.jpg
0 x

User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: depth of field shader

Post by Tribulex » 01 Mar 2010, 14:42

Epic 2 year bump. Requesting this lua.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: depth of field shader

Post by jK » 07 Mar 2010, 17:13

0 x

User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: depth of field shader

Post by Tribulex » 08 Mar 2010, 02:24

thx 1000000x
0 x

Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: depth of field shader

Post by Satirik » 11 Mar 2010, 19:09

i tried to improve it a bit :

Image
ImageImageImageImage

edit: shader changed a bit
edit2: options added (can be changed in the iceui settings : ctrl f11)
Attachments
gfx_dof2.lua
(8.76 KiB) Downloaded 183 times
Last edited by Satirik on 20 Nov 2010, 14:21, edited 8 times in total.
0 x

User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: depth of field shader

Post by Gota » 11 Mar 2010, 19:33

Made throne look like its a tiny model of the map.
looks hilarious.
0 x

User avatar
Falcrum
Posts: 149
Joined: 14 Nov 2007, 01:03

Re: depth of field shader

Post by Falcrum » 11 Mar 2010, 20:48

Tilt shift! :D Great for screenshots :D
0 x

User avatar
manolo_
Posts: 1370
Joined: 01 Jul 2008, 00:08

Re: depth of field shader

Post by manolo_ » 11 Mar 2010, 21:54

tbh it doesnt look soo bad :)
0 x

Post Reply

Return to “Lua Scripts”