Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, degenerate_762), 642 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
postprocessing sun-lightshafts [DOWNLOAD] #307327
01/28/10 16:21
01/28/10 16:21
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
Hi,
I extruded the lightshaft effect from my Wavefield demo to an extra project and optimized several aspects.





Thx to Slin who converted a HLSL function to Lite-C wich gave a significant speed boost.

Get the demo from here.

Just check the readme for more information about how to implement the effect in your project.

Have fun,

Hummel

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307334
01/28/10 16:42
01/28/10 16:42
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
neat! thanks a lot for sharing this laugh


~"I never let school interfere with my education"~
-Mark Twain
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Germanunkol] #307340
01/28/10 16:54
01/28/10 16:54
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
This looks (especially ingame) really great, maybe the nicest sun of all videogames that I remember. And thanks for sharing, too!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Superku] #307342
01/28/10 17:03
01/28/10 17:03
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Looks great, as all shaders from you. Thank a lot

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Widi] #307345
01/28/10 17:16
01/28/10 17:16
Joined: Jul 2007
Posts: 424
EUROPE
maslone1 Offline
Senior Member
maslone1  Offline
Senior Member

Joined: Jul 2007
Posts: 424
EUROPE
Thanx for sharing!


A8c, Blender, FlStudio, Unity3d
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: maslone1] #307355
01/28/10 18:29
01/28/10 18:29
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
think i followed the file correctly but i still get the error: PP_Add(mPP_LS_pass1_FX,camera,RT_SUNMASK2,NULL,NULL,NULL); wrong number of parameters though i dont see the difference between how i call it and how its called in our demo

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: darkinferno] #307363
01/28/10 19:03
01/28/10 19:03
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
thatīs strange...do you use the PP_Helper.c file from the demo?

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307364
01/28/10 19:06
01/28/10 19:06
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Include the PP_HELPER.c (before the LightShafts.c). That is missed in the readme-file wink

Last edited by Widi; 01/28/10 19:08.
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Widi] #307365
01/28/10 19:08
01/28/10 19:08
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
year I forgot that, but than he should get a 'function unknown' alert...

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307366
01/28/10 19:12
01/28/10 19:12
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
i did include that file

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: darkinferno] #307368
01/28/10 19:15
01/28/10 19:15
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
when your project is not too big just upload it somewhere - Iīm going to take a look at it if you want wink
send me a PM

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307374
01/28/10 20:15
01/28/10 20:15
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
well my project is huge.. lol

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: darkinferno] #307378
01/28/10 21:20
01/28/10 21:20
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Wow I love it!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Dark_samurai] #307395
01/28/10 23:16
01/28/10 23:16
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
ahh, found it, some other shader was causing the problem, one of slins blooms shaders, it doesnt seem to work with shadeC's hdr also.. i did get it running however, like the speed of it

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: darkinferno] #307456
01/29/10 14:32
01/29/10 14:32
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
the rays in the demo don't show up for me. There is no error message, but I can't see the sun in the sky and it doesn't cast rays. I can move it using the cursur keys, but that only changes the lightning on the ground.

my ATI HD 3780 graphics card should be able to handle it. drivers are a bit older, I might try updating it later.

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: SchokoKeks] #307474
01/29/10 15:32
01/29/10 15:32
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
hehe, ATI always sucks tongue

@darkinferno: I asked you whether you are using the PP_Helper.c from the demo or not because I modified the functions to support MRTs -> more parameters

EDIT:
I uploaded a small vid.

While making the vid I noticed that the calculated sunpos seems to be the one of the last frame but I was not able to correct that know...
You can see this when you use a small and/or fast moving sun frown

Last edited by Hummel; 01/29/10 16:51.
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307495
01/29/10 17:00
01/29/10 17:00
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: Hummel
hehe, ATI always sucks tongue
Fortunately, you're right! grin
BTW, the shader looks amazing laugh

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Cowabanga] #307497
01/29/10 17:16
01/29/10 17:16
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
The sunrays look really good. congrats. *thumbup*
After looking a the code i may found the reason why it doesnt work on amd cards.
You cant mix shadermodel 3.0 and 2. (or less) in the same pass, pixelshader 3.0 are only specified to be run with vertexshader 3.0. Nvidia drivers don't complain about this but amds does.

Last edited by ChrisB; 01/29/10 17:16.

www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: ChrisB] #307505
01/29/10 18:01
01/29/10 18:01
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
ahhhh alright, didnt know that thx! laugh
@Schokokeks: just change this line in skycube_FX.fx: VertexShader = compile vs_2_0 VS(); to this: VertexShader = compile vs_3_0 VS();

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #307597
01/30/10 12:34
01/30/10 12:34
Joined: Nov 2002
Posts: 913
Berlin, Germany
S
SchokoKeks Offline
User
SchokoKeks  Offline
User
S

Joined: Nov 2002
Posts: 913
Berlin, Germany
Thank you hummel, changing that line worked indeed.
Great effect! can it also be used for larger/more detailed levels or will it get too slow?

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: SchokoKeks] #307616
01/30/10 14:08
01/30/10 14:08
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
the speed is independent from the complexity of your level wink

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #309679
02/10/10 17:19
02/10/10 17:19
Joined: Jun 2008
Posts: 146
London
T
Truth Offline
Member
Truth  Offline
Member
T

Joined: Jun 2008
Posts: 146
London
Any chance of this in c-script?

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Truth] #309686
02/10/10 17:48
02/10/10 17:48
Joined: Mar 2006
Posts: 2,252
Hummel Offline OP
Expert
Hummel  Offline OP
Expert

Joined: Mar 2006
Posts: 2,252
not from my side...

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Hummel] #309830
02/11/10 15:11
02/11/10 15:11
Joined: Jan 2002
Posts: 454
Germany
CD_saber Offline
Senior Member
CD_saber  Offline
Senior Member

Joined: Jan 2002
Posts: 454
Germany
What a nice looking effect!


Is is also possible to attach this effect to an model to let it "shine" (for example to light ball) ?


Ja, lach du nur du haariges Pelzvieh!
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: CD_saber] #458224
02/27/16 23:59
02/27/16 23:59
Joined: Feb 2011
Posts: 124
Germany Nrw Herford
HenWoll Offline
Member
HenWoll  Offline
Member

Joined: Feb 2011
Posts: 124
Germany Nrw Herford
@hummel

can you again upload the lightshafts ? ^^ i know this thread is older

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: HenWoll] #458226
02/28/16 01:55
02/28/16 01:55
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
Yes, I'd like to see them too laugh

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: Dooley] #458227
02/28/16 10:55
02/28/16 10:55
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
As far as I remember it didn't work with A8, maybe it needs some tweaking. I can search my HDD for it if Hummel won't mind.

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: 3run] #458415
03/08/16 17:47
03/08/16 17:47
Joined: Feb 2011
Posts: 124
Germany Nrw Herford
HenWoll Offline
Member
HenWoll  Offline
Member

Joined: Feb 2011
Posts: 124
Germany Nrw Herford
I sit and still hope you upload it. laugh
but stop ! why should not it run with the A8 ?

Re: postprocessing sun-lightshafts [DOWNLOAD] [Re: HenWoll] #458416
03/08/16 18:32
03/08/16 18:32
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: BlackJack
I sit and still hope you upload it. laugh
but stop ! why should not it run with the A8 ?
It seems to me that there are some changes in A8 which are affecting shaders. Anyway, here is the demo:
Download link


Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 3 1 2 3

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1