Sun effect

Hi guys,

I’m trying create little realistic model of our Solar system. But I found first problem - how create Sun? I want something looks like

this. As you see, Sun is emiting red light and this light is disappearing with distance from Sun. I think this could be cool effect in my application, but I don’t know how to create it.

Any idea, how do it? Is it even possible?

Thanks for repliew :slight_smile:

All you need is a bitmap similar to a lens flare effect. Attach this to the Sun node, and make it always face the camera (just inversing the camera rotation might work). In JME2 there is a node called BillboardNode which is great for this use. Don’t know how it works in JME3, but there is something called BillboardControl which might be a good place to start looking.