[WIPzRELz] Sun shaft rays

Post » Tue May 08, 2012 10:52 am

Wait, what's the difference between godrays and sunshafts?

Relative awesomeness.

Ehm. The first one is vtastek's and the second one is phal's. They practicallly do the same thing but there are some technical differences between them which are all Greek to me. Their authors can surely explain it better than my gibberish.
User avatar
George PUluse
 
Posts: 3486
Joined: Fri Sep 28, 2007 11:20 pm

Post » Tue May 08, 2012 5:20 am

Relative awesomeness.

:D
User avatar
Mario Alcantar
 
Posts: 3416
Joined: Sat Aug 18, 2007 8:26 am

Post » Tue May 08, 2012 9:57 am

Depthbuffer is information about scene which SSAO and sunshafts shaders use. You don't have to find a shader for it, you must have seen the 'pass depth to shaders'(or something like that.) in around shader variables area. Be sure to check it. If you're getting SSAO, Sunshafts should have been working too.

I mean I have everything working, and where's the shader variables are, i didn't see 'pass depth to shaders' anywhere...

my list shows

ImprovedWaterCaustics06a
sunshaft_v002a
DX9 HLSL HDR 5
knx_SSAO_v09
knx_DoF_v12

(shaders listed above works in whatever order they're in)
everything's working fine except i don't have torches beaming off rays of light... and I'm doing everything you've said I needed to do...

"shaders in misc tab"

hook texture loads (checked)
update shader variables (checked)
supply shaders with depth info (checked)
supply HDR info to shaders (checked)

0.50 HDR reaction time (secs)

distant land works both on interiors and exteriors.


what am I missing?
User avatar
Luis Longoria
 
Posts: 3323
Joined: Fri Sep 07, 2007 1:21 am

Post » Tue May 08, 2012 1:27 pm

(shaders listed above works in whatever order they're in)
everything's working fine except i don't have torches beaming off rays of light... and I'm doing everything you've said I needed to do...
You may be looking for the wrong thing? The God Rays shader isn't mean to work on torches, it's made for the sunlight.
User avatar
Sara Johanna Scenariste
 
Posts: 3381
Joined: Tue Mar 13, 2007 8:24 pm

Post » Tue May 08, 2012 4:08 am

You may be looking for the wrong thing? The God Rays shader isn't mean to work on torches, it's made for the sunlight.

no, I'm not using God Rays! :0 look at my shader list

sorry... everyone seems to be moving it off topic... but still I'm not using God Rays for a reason.

if all else fails :0 I'll try god rays.
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am

Post » Tue May 08, 2012 1:52 am

no, I'm not using God Rays! :0 look at my shader list

sorry... everyone seems to be moving it off topic... but still I'm not using God Rays for a reason.

if all else fails :0 I'll try god rays.
God rays is sun shafts.
User avatar
Josee Leach
 
Posts: 3371
Joined: Tue Dec 26, 2006 10:50 pm

Post » Tue May 08, 2012 10:08 am

God rays is sun shafts.


fine, I just want to get the torches and lamps to beam off rays like the sun would... please?
User avatar
Grace Francis
 
Posts: 3431
Joined: Wed Jul 19, 2006 2:51 pm

Post » Tue May 08, 2012 2:29 pm

fine, I just want to get the torches and lamps to beam off rays like the sun would... please?
I don't think that's possible, because AFAIK the position of the in-game Sun is easily determinable through a couple of variables (i.e. it's not determined from anolysing the current/previous frame), while that's not feasible with torches and other light sources - you'd have to accomplish all "raying" through current/previous frame anolyses, which wouldn't really work all that well.
User avatar
MatthewJontully
 
Posts: 3517
Joined: Thu Mar 08, 2007 9:33 am

Post » Tue May 08, 2012 10:33 am

Wait, what's the difference between godrays and sunshafts?
Different names for the same visual phenomenon. Sunbeams, Jacob's ladder. Wiki has more info about it.

The technical differences,
mine is based on GPU gems 3 article.
I believe phal's using Farcry 2 techniques. But it is not very important because it is just a directional blur. Mine is not working in SM2.0 though. So phal's is more compatible. Also phal's can create a sundisc substitute. Which you can size or colored. Mine works on the texture you have. Phal's can cast the rays even sun is not visible on screen. Mine can't. Phal's is more complex being done by the guy who create the fabulous waves for MGE water, godrays was done by me, an amateur who only wrote a shader which creates black bars on screen(at that time!). :D

So even I use phal's shader, so I recommend you to use it too. The bright new sun is amazing. I am also working on my godrays shader, yeah, just to learn and fun and I have still cool ideas...

fine, I just want to get the torches and lamps to beam off rays like the sun would... please?
Both is for sun. But it can be done, I guess. Directional blur is costly. Applying to all lights sources would need a LOD system.

First needed things,
screen space positions of all light sources in screen.
world positions of them in depthbuffer, the accuracy would be a problem and performance of course... It is not likely.

Speaking of which, I want to say something,
all lights need billboarded bright glows. It is essential for bloom shaders to work correctly. If an experienced modder can create some assets we can see how it applies.
User avatar
Marcia Renton
 
Posts: 3563
Joined: Fri Jan 26, 2007 5:15 am

Post » Tue May 08, 2012 12:08 pm

I'm having weird artifacts with the sunshaft. I have the latest MGE, use the no sunglare texture and I get this:

http://img694.imageshack.us/img694/9828/mgescreenshot30.jpg
User avatar
Alessandra Botham
 
Posts: 3440
Joined: Mon Nov 13, 2006 6:27 pm

Post » Tue May 08, 2012 9:42 am

I'm having weird artifacts with the sunshaft. I have the latest MGE, use the no sunglare texture and I get this:

http://img694.imageshack.us/img694/9828/mgescreenshot30.jpg
On the misc tab of MGE, do you have the update shader variables and supply shaders with depth info boxes checked?
User avatar
Marta Wolko
 
Posts: 3383
Joined: Mon Aug 28, 2006 6:51 am

Post » Tue May 08, 2012 9:20 am

Anyone who is experiencing the black screen problem when loading and in the title menu might want to try this:

#define horizonclipping 0

Setting the above to zero seems to fix the problem.
User avatar
Kira! :)))
 
Posts: 3496
Joined: Fri Mar 02, 2007 1:07 pm

Post » Tue May 08, 2012 6:27 am

Hi, can someone please reupload the shader ? cant download from speedyshare..trying for few days and the file is offline..thanks, will be appreciated
User avatar
Da Missz
 
Posts: 3438
Joined: Fri Mar 30, 2007 4:42 pm

Post » Tue May 08, 2012 3:24 pm

Hi, can someone please reupload the shader ? cant download from speedyshare..trying for few days and the file is offline..thanks, will be appreciated
The link from the OP works perfectly fine. :nod: Try refreshing your browser's cache, or you could try using a different browser.
User avatar
Natalie J Webster
 
Posts: 3488
Joined: Tue Jul 25, 2006 1:35 pm

Post » Tue May 08, 2012 2:03 pm

The link from the OP works perfectly fine. :nod: Try refreshing your browser's cache, or you could try using a different browser.

cache cleaned, tried opera and firefox, + jdownloader, nothing works. If I go browser way, it rerout me to some funny-games.biz, and if i go the downloader way, it says file is offline..Im sorry but I cant download it by no way..if someone can upload it to somewhere else, Ill be happy..
User avatar
Heather Kush
 
Posts: 3456
Joined: Tue Jun 05, 2007 10:05 pm

Post » Tue May 08, 2012 4:22 am

It works for me.
User avatar
Chris Duncan
 
Posts: 3471
Joined: Sun Jun 24, 2007 2:31 am

Post » Tue May 08, 2012 6:35 am

It works for me.

maybe its country restricted or something, really dont know..but Im sure it doesnt work for me :)
User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm

Post » Tue May 08, 2012 3:23 pm

Edit: Oops I spoke too soon, now the sun is present in all types of weather - from http://img269.imageshack.us/img269/6007/mgescreenshot50.png to rain and lightning.

Woah! I want that! How??
User avatar
Sabrina Steige
 
Posts: 3396
Joined: Mon Aug 20, 2007 9:51 pm

Post » Tue May 08, 2012 6:28 am

Woah! I want that! How??
It should be how the shader works by default. I think...

Open up sunshaft_v002a.fx in the MGE shader editor and look for this line:

#define sundisc 1 				// Draws additional sun disc. 0 disables
If it's set to 1 you should always see the sun disc.
User avatar
Glu Glu
 
Posts: 3352
Joined: Sun Apr 01, 2007 5:39 am

Post » Tue May 08, 2012 12:14 pm

Would it be too much to ask, if I wanted somebody to upload this shader elsewhere - on completely different server? Please. Because I get redirected all the time to a "free games" site. Maybe this does not happen to everybody, but I am not the first one either, according to this thread. So please, would you upload elsewhere? (I liked the pictures, I am in dire need of getting this shader).
User avatar
Chris Guerin
 
Posts: 3395
Joined: Thu May 10, 2007 2:44 pm

Post » Tue May 08, 2012 3:55 pm

Would it be too much to ask, if I wanted somebody to upload this shader elsewhere - on completely different server? Please. Because I get redirected all the time to a "free games" site. Maybe this does not happen to everybody, but I am not the first one either, according to this thread. So please, would you upload elsewhere? (I liked the pictures, I am in dire need of getting this shader).
I've heard of a few people getting this with speedyshare, what happens with if you use the IP address:

http://66.90.104.246/586255660.html
User avatar
Connor Wing
 
Posts: 3465
Joined: Wed Jun 20, 2007 1:22 am

Post » Tue May 08, 2012 7:53 am

This shader addon is incredible. I got MGE and a ton of mods working on my steam copy of MW, and I have to say, this of all the shaders I've dared try, this is one of the two that I just cannot play without anymore, no real hit to my FrPS, but really helps the world come into an astonishing amount of liveliness.
User avatar
Lilit Ager
 
Posts: 3444
Joined: Thu Nov 23, 2006 9:06 pm

Post » Tue May 08, 2012 5:20 pm

This shader addon is incredible. I got MGE and a ton of mods working on my steam copy of MW, and I have to say, this of all the shaders I've dared try, this is one of the two that I just cannot play without anymore, no real hit to my FrPS, but really helps the world come into an astonishing amount of liveliness.
I'll pop in quick to just go ahead and agree with this sentiment right here. This is possibly one of my favorite shaders of all time for the exact same reasons described. Absolutely fantastic work :)
User avatar
Soph
 
Posts: 3499
Joined: Fri Oct 13, 2006 8:24 am

Post » Tue May 08, 2012 3:05 am

On the misc tab of MGE, do you have the update shader variables and supply shaders with depth info boxes checked?

Yes I have all that checked. I don't know what could be the problem.
User avatar
QuinDINGDONGcey
 
Posts: 3369
Joined: Mon Jul 23, 2007 4:11 pm

Post » Tue May 08, 2012 3:01 am

spewboy: Thank you for that fix to my problem. (which was happening in game also)
User avatar
Maria Leon
 
Posts: 3413
Joined: Tue Aug 14, 2007 12:39 am

PreviousNext

Return to III - Morrowind