Sign in to follow this  
Aragon

Sunshine glowing

Recommended Posts

hi all i got an nice working terrain with nice sky.. cool day/night changing effects a large amout of trees..and a lot of ingame things (houses) but now i want to add some Sun glowing if sun is in direct view..and the fade out effekt if something comes between sun and the own position what is the best way to do it? (i got sometimes over 1000+ trees and a lot of stuff in view and i avoid wherever i can the use of vertex/pixel shaders) much thx ( using VS 2005 C++Beta 1 / Directx9(winter) )

Share this post


Link to post
Share on other sites
hi,

if you don't want pixel / vertex shader, then a 3D texture will do the trick : on a 3D texture, store many layers from your sun when it's partially occluded throught the sun when it's entirely seen (with a big glow effect on the texture), and depending on how much of the sun is visible, set the depth value of your 3D texture (they use that for lights effects during the night, in car driving games)

but this effect won't overlap properly on your environment ... and to do that, you'll need a post processing pixel shader I fear ...
If you know the game "Guild Wars", they have a really cool effect like that near the teleporters : a sort of big like which glow, and overlap on the environment, but I never understood how do they do that.

Oh, and by the way, would you mind sharing a screenshot of your engine ?? I'm always curious to see what people can do, and this forum lacks a bit of screenshots ^^

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this