Re: [osg-users] Creating a glowing sun in scene

2017-02-22 Thread Sebastian Messerschmidt
Hi Suraj, Hi All, As i had posted previously, I could obtain the following results attached in the screen short in my attempt to create a glowing sun in the scene. I am also attaching the source code. As I am taking the baby-steps in doing shaders programming in OSG, i am having a really b

Re: [osg-users] Creating a glowing sun in scene

2017-02-22 Thread Suraj Paul
Hi All, As i had posted previously, I could obtain the following results attached in the screen short in my attempt to create a glowing sun in the scene. I am also attaching the source code. As I am taking the baby-steps in doing shaders programming in OSG, i am having a really bad time. My p

Re: [osg-users] Creating a glowing sun in scene

2016-09-26 Thread David Heitbrink
I think looking at the osgblenddrawbuffers or osgmultiplerendertargets might be a good start. Neither of these are really doing what you are aiming for, but shows you how to add the color buffers and shaders. You might also look at the OSGPPU project. It I think it has some more relevant examp

Re: [osg-users] Creating a glowing sun in scene

2016-09-23 Thread Suraj Paul
Hi David, Thanks for the clues to achieve the effect i needed. I have already attempted textured quad, with transparency on it. But it gives, as u said, a cheap look. Being new to multi-pass rendering with blur filter and read the link you shared. Any example on how to get started with this in

Re: [osg-users] Creating a glowing sun in scene

2016-09-23 Thread David Heitbrink
There are a few ways of doing this. What you most likely want to do is to look up information on high dynamic range rendering. This involves multi-pass rendering where you use some kind of blur filter to make the brighest parts of your scene bleed out. This is a resonable example: http://learnop