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

本文介绍了一种使用Perlin噪声、光照及太阳光遮挡技术在GPU上实现的实时动态云渲染方法。该方法仅使用29个像素着色器指令和一张噪声纹理,通过调整参数实现了云朵形状的变化及与天空的互动效果。
. 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. 

 

[hjp2=400,300,true]http://player.youku.com/player.php/sid/XMTQ5ODE4MTcy/v.swf[/hjp2]



 

 

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

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

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

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

 

reference:

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

 

转载于:https://www.cnblogs.com/oiramario/archive/2010/02/02/1662178.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值