2 registered members (Quad, degenerate_762),
642
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
postprocessing sun-lightshafts [DOWNLOAD]
#307327
01/28/10 16:21
01/28/10 16:21
|
Joined: Mar 2006
Posts: 2,252
Hummel
OP
Expert
|
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: SchokoKeks]
#307474
01/29/10 15:32
01/29/10 15:32
|
Joined: Mar 2006
Posts: 2,252
Hummel
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 2,252
|
hehe, ATI always sucks @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
Last edited by Hummel; 01/29/10 16:51.
|
|
|
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
Serious User
|
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.
|
|
|
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
OP
Expert
|
OP
Expert
Joined: Mar 2006
Posts: 2,252
|
|
|
|
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
Senior Member
|
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: HenWoll]
#458416
03/08/16 18:32
03/08/16 18:32
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
I sit and still hope you upload it. 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!
|
|
|
|