Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / God Ray shaders???

Author
Message
Daryn Alsup
16
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 20th Nov 2009 06:36
I'm not sure if this is the right place to post this but I had a quick question - does anyone know where I can find a tutorial on making a custom god ray shader. I don't want the actual shader, just the knowledge on how to create one (FX).

Any help is appreciated greatly.

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 20th Nov 2009 16:13
Do you mean beams of light shining out of the clouds or through trees?

A shader isn't really necessary, plains oriented towards the camera textured with a gradient get the job done fine. I know there are shaders to do it but it really isn't worth the drop in FPS IMO.

Cant help you with the Shaders though, although I know Evolved had them working in one of his demos.
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 20th Nov 2009 18:26
As Ruccus said, just use plain objects with a gradient texture to give you the effect. If it's within a building, to really bring it to life, you can create a function to create particles withing the area of the plain that float about, then texture them to look like single grains of dust with a bit of light on them.

Shaders do look cool, I think it's a volumetric shader. I think one is on the DBP board, I just can't remember the name of it or the thread...twas a while ago.


Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 23rd Nov 2009 01:33
I took a look around Evolved's site. This might be of interest?

http://evolveduk.googlepages.com/Shaders.html
Daryn Alsup
16
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 26th Nov 2009 11:22
I am trying to create a solar effect with a post bloom effect. I am wondering how one goes about making the godrays and how or where I can gain the understanding to code them myself

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 26th Nov 2009 12:58
Do you have an example screenshot? Still not sure on your definition of 'godrays'.


Daryn Alsup
16
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 26th Nov 2009 13:22
http://http.developer.nvidia.com/GPUGems3/elementLinks/13fig01.jpg

That's a picture of what types of rays I would like to 'shine' from my sun object. they are really called "cres.... rays" or "cres.... occlusion"

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 26th Nov 2009 15:02
Link for that shader was already posted above:
http://evolveduk.googlepages.com/Shaders.html

Check the shader tab, it's the first download.


Daryn Alsup
16
Years of Service
User Offline
Joined: 5th Jul 2008
Location: In your head... dun dun DUN!!!!!!!!
Posted: 26th Nov 2009 15:22
Thank you and this is a step in the right direction, put i need to compile with 2_0 ps not 3_0 ps. I'm not lookinf for the shader I am looking for understanding lmao. But I am sure this one looks and works great for people who can use it. Any other ideas?

Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.

Login to post a reply

Server time is: 2024-11-24 20:05:25
Your offset time is: 2024-11-24 20:05:25