oiramario
随笔- 385  文章- 1  评论- 815 
博客园  首页  新随笔  联系  管理  订阅 订阅

实时动态云 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 千里马肝 阅读(2903) 评论(2) 编辑 收藏
刷新评论刷新页面返回顶部
程序员问答社区,解决您的IT难题
博客园首页博问新闻闪存程序员招聘知识库
Copyright ©2012 千里马肝