[WIPz/RELz] Sun shaft rays

Post » Thu Nov 25, 2010 6:54 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
Liv Brown
 
Posts: 3358
Joined: Wed Jan 31, 2007 11:44 pm

Post » Thu Nov 25, 2010 5:46 pm

Relative awesomeness.


:D
User avatar
Alex Blacke
 
Posts: 3460
Joined: Sun Feb 18, 2007 10:46 pm

Post » Thu Nov 25, 2010 6:43 pm

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
mike
 
Posts: 3432
Joined: Fri Jul 27, 2007 6:51 pm

Post » Thu Nov 25, 2010 9:14 am

(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
Amy Cooper
 
Posts: 3400
Joined: Thu Feb 01, 2007 2:38 am

Post » Thu Nov 25, 2010 1:45 pm

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
Silvia Gil
 
Posts: 3433
Joined: Mon Nov 20, 2006 9:31 pm

Post » Thu Nov 25, 2010 3:08 pm

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
Matt Terry
 
Posts: 3453
Joined: Sun May 13, 2007 10:58 am

Post » Thu Nov 25, 2010 9:09 pm

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
Kelly John
 
Posts: 3413
Joined: Tue Jun 13, 2006 6:40 am

Post » Thu Nov 25, 2010 2:39 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
Danny Blight
 
Posts: 3400
Joined: Wed Jun 27, 2007 11:30 am

Post » Thu Nov 25, 2010 8:06 pm

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
OnlyDumazzapplyhere
 
Posts: 3445
Joined: Wed Jan 24, 2007 12:43 am

Post » Thu Nov 25, 2010 8:16 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
tegan fiamengo
 
Posts: 3455
Joined: Mon Jan 29, 2007 9:53 am

Post » Thu Nov 25, 2010 11:03 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

On the misc tab of MGE, do you have the update shader variables and supply shaders with depth info boxes checked?
User avatar
Lakyn Ellery
 
Posts: 3447
Joined: Sat Jan 27, 2007 1:02 pm

Post » Thu Nov 25, 2010 11:12 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
Lifee Mccaslin
 
Posts: 3369
Joined: Fri Jun 01, 2007 1:03 am

Post » Thu Nov 25, 2010 9:13 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
Hussnein Amin
 
Posts: 3557
Joined: Sun Aug 05, 2007 2:15 am

Post » Thu Nov 25, 2010 4:32 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
Gemma Woods Illustration
 
Posts: 3356
Joined: Sun Jun 18, 2006 8:48 pm

Post » Thu Nov 25, 2010 7:42 am

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
Shirley BEltran
 
Posts: 3450
Joined: Wed Jul 26, 2006 4:14 pm

Post » Thu Nov 25, 2010 3:30 pm

It works for me.
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Thu Nov 25, 2010 2:24 pm

It works for me.


maybe its country restricted or something, really dont know..but Im sure it doesnt work for me :)
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am

Post » Thu Nov 25, 2010 8:34 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
Liv Staff
 
Posts: 3473
Joined: Wed Oct 25, 2006 10:51 pm

Post » Thu Nov 25, 2010 8:27 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
Monika Fiolek
 
Posts: 3472
Joined: Tue Jun 20, 2006 6:57 pm

Post » Thu Nov 25, 2010 10:55 am

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
Add Me
 
Posts: 3486
Joined: Thu Jul 05, 2007 8:21 am

Post » Thu Nov 25, 2010 7:05 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
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Thu Nov 25, 2010 3:45 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.
User avatar
Liv Staff
 
Posts: 3473
Joined: Wed Oct 25, 2006 10:51 pm

Post » Thu Nov 25, 2010 8:44 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.

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
Rachael Williams
 
Posts: 3373
Joined: Tue Aug 01, 2006 6:43 pm

Post » Thu Nov 25, 2010 2:10 pm

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
Roy Harris
 
Posts: 3463
Joined: Tue Sep 11, 2007 8:58 pm

Post » Thu Nov 25, 2010 11:14 pm

spewboy: Thank you for that fix to my problem. (which was happening in game also)
User avatar
Samantha hulme
 
Posts: 3373
Joined: Wed Jun 21, 2006 4:22 pm

PreviousNext

Return to III - Morrowind

cron