实时动态云 perlin noise + 光照 + 太阳光遮挡

. The sun is very bright and it is making you squint !
2. The clouds near the sun are glowing much brighter than clouds far from the sun.
3. Luckly the clouds are moving across the sky, and occasionally block out the sun, making it easier to see, so you don't have to squint as much.
4. The clouds are also changing shape as they move across the sky.
5. Not all the sky contains cloud. Some areas of sky are completely cloud free.
6. The clouds do not continue into the distance forever. The furthest clouds are often obscured by haze.
7. All of this used 29 pixel shader instructions to implement.
8. All of this are real-time on GPU that used only 1 noise 3d lookup texture even the sun is procedural.

9. I coded the cloud in 2 days with rendermonkey and integration to ogre. 

 



 

 

实时动态云 perlin noise + 光照 + 太阳光遮挡

全gpu计算 29个ps指令
整个视频只使用到一张noise贴图

动态调整参数时录制视频有点卡 

从查资料到用rendermonkey写shader,最后整合进ogre
一共花了2天时间 

 

reference:

http://freespace.virgin.net/hugo.elias/models/m_clouds.htm 

 

posted @ 2010-02-02 19:06  千里马肝  阅读(3793)  评论(2编辑  收藏  举报