a question about how to animate a lightning

Started by
7 comments, last by leet bix 14 years, 4 months ago
I simulated a lightning today,but i have no idea about how to animate it,i just set the lightning's color white and backgroud color black,but you know it is not like real,because the real lightning will light the sky near it,so the background near lightning will be lighter and far from it will be darker.i have no idea about how to implement it, can anyone help me.Thank you very much.
Advertisement
I made some exaggerated "glowing" lighting a while back with a traditional bloom filter.

My demo (GLSL shaders in plain text):
http://www.gamedev.net/community/forums/topic.asp?topic_id=532184

The original bloom article:
http://www.gamasutra.com/features/20040526/james_01.shtml
Do you have any source code about how to render a lightning?can you give me some hint?Thank you very much
He just did. What he was advising, I assume, is that you simply blit the bright image/mesh for a moment, and create a bloom filter that makes the light highly blured, making it more realistic as in a real situation, your eye will not be able to handle that amount of light. If you are speaking about the lighting propagating out, that is somewhat differnet, please be more specific.
i have simulate a lightning like this:
http://tu.6.cn/pic/show-new/id/5556627/
i hope it can be like this:
http://tu.6.cn/pic/show-new/id/5556628/

how can i do?
Thanks

http://www.gamasutra.com/features/20040526/james_01.shtml
Is there any source code for it?
http://developer.download.nvidia.com/SDK/10/opengl/samples.html
See "Simple Glow"
Rather than battering people for source code, perhaps you might consider attempting it yourself?

This topic is closed to new replies.

Advertisement