Jump to content
  • Advertisement
Sign in to follow this  
qrn_1982

How to draw a billboard Sun?

This topic is 4254 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,everyone!How to draw a sun with billboard technique around skybox?I am confused with this.Could anybody help me?Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Can you do more info ?
There are a lot of methods to do it.
If you want to make realistic sky,sun disk and halo
using skybox cubemap with alpha channel( as info about
clouds) -it's one(simple) case.
If you want to do it using abstract skybox-some method/way
to separate clouds and clear sky needed.
For example,if you use skybox with blue sky- set halo intensity
in shader =saturate(B-0.5*(R+G)),where RGB- skybox color at the center
of billboard (or something like that) and just draw billboard
after skybox with alphablend=ONE,ONE





[Edited by - Krokhin on April 19, 2007 3:34:35 AM]

Share this post


Link to post
Share on other sites
I have a sphere for my skybox.and i use a quad and glow texture for my sun,and how to let the sun fly through the skybox and face my camera all the time?

Share this post


Link to post
Share on other sites
Maybe this will help
http://www.lighthouse3d.com/opengl/billboarding/index.php?billCheat2

Also disable depth testing and depth writing

Share this post


Link to post
Share on other sites
If you're using DX -see Billboard example or
google.I think,it will be very usefull.
If you want to do it quikly and fps not critical-
make 2nd cubemap with black background,sun ,glow into one of 2nd cubemap faces,
set some rotation matrix as a world(DX)/model(?-OGL),
turn off Z-buffer and draw your sphere mesh with this cubemap
again with blendmode=ONE,ONE -like Ptolemy's system of universe :))
If you draw also Mio/Rel scattering imitation around sun,
fps will be saved definitely-in comparison with another methods
-because of using table data insteade of calc in shader.

[Edited by - Krokhin on April 19, 2007 6:45:15 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!