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.

DarkBASIC Professional Discussion / I must be dense....can't seem to understand Atmospheric Shaders....

Author
Message
JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 11th Jul 2012 01:01
I am looking over Sean O' neils page, as well as Petrocket "Simple Flexible Atmosphere shader". I tried to copy/paste them into my project and nothing seems to work...at all. I'm sure I'm supposed to use the "set effect technique" command but I'm not sure which technique I should set.

I know that the shader effect is to be applied onto a sphere that's a little larger than the planet. I also know that the planet must be in a fixed position as well as the light source location must be fixed.

I read that an small image is used as a lookup table for the shader math for quicker calculations. I wonder if I can change the color hue of the lookup table in-game on the fly. Or at least alter the shader in-game to use a different lookup image.

There must be a "atmosphere shader" for dummies somewhere. One step at a time for me I suppose.

Home is where my souped-up computer is...
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jul 2012 06:02
Can you post the example?

Did you make sure the sphere has a negative size so it's visible from the inside?

TheComet

JoeOh
17
Years of Service
User Offline
Joined: 25th Feb 2009
Location:
Posted: 11th Jul 2012 06:25
so the shader sphere has to be a negative size so it's effect can be seen from "space" and on the "surface" of the planet?

Home is where my souped-up computer is...
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jul 2012 08:41
Well if you're using make object sphere to create a sphere around your world, you won't be able to see it on the inside because the sphere's faces are only visible from the outside. You can fix this by doing either one of these:







TheComet

Login to post a reply

Server time is: 2026-07-08 23:02:59
Your offset time is: 2026-07-08 23:02:59