# Flying through clouds

**URL:** <https://discourse.threejs.org/t/flying-through-clouds/14203>\
**Category:** Questions\
**Tags:** sprites\
**Created:** [April 9, 2020, 2:54am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203 "2020-04-09T02:54:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mintu-86](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mintu-86](https://discourse.threejs.org/u/mintu-86)\
**Post date:** [April 9, 2020, 2:54am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203/1 "2020-04-09T02:54:00Z")

</div>

I wanted to create an effect like this:  
[https://mrdoob.com/lab/javascript/webgl/clouds/](https://mrdoob.com/lab/javascript/webgl/clouds/)

How to get started with this - do I need to create the clouds in Blender? If not then which other method is the best approach?

Basically using the mouse to move the camera right?

---

<div class="post-metadata">

**Author:** ![hofk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/hofk/32/44944_2.png) [@hofk](https://discourse.threejs.org/u/hofk)\
**Post date:** [April 9, 2020, 6:46am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203/2 "2020-04-09T06:46:26Z")

</div>

If you look into the source code, you will see that the clouds are based on an image.

`var texture = THREE.ImageUtils.loadTexture( 'cloud10.png', null, animate )`

[![](https://mrdoob.com/lab/javascript/webgl/clouds/cloud10.png) ](https://mrdoob.com/lab/javascript/webgl/clouds/cloud10.png)

There are some more techniques. With _shader, filter, gradient_ … something more advanced.

Maybe you’ll have a look at some examples from the  
[Collection of examples from discourse.threejs.org](https://discourse.threejs.org/t/collection-of-examples-from-discourse-threejs-org/4315) ?

🙂

---

<div class="post-metadata">

**Author:** ![mintu-86](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mintu-86](https://discourse.threejs.org/u/mintu-86)\
**Post date:** [April 9, 2020, 10:21am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203/3 "2020-04-09T10:21:34Z")

</div>

Thanks!

Sorry, I noticed after that I can use a cloud.png like img. Isn’t that going to cause a lot of stress on the browser? How to make in a less browser demanding way?

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [April 9, 2020, 10:59am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203/4 "2020-04-09T10:59:40Z")

</div>

Using billboards clearly isn’t expensive, using volumetric clouds though (raymarched) can be very expensive without a lot optimizations. Raymarched can look most realistic especially with their dynamic lighting nature [https://www.shadertoy.com/view/XtBXDw](https://www.shadertoy.com/view/XtBXDw)

But mrdoobs example looks excellent and realistic too, A good texture and smooth blending can be enough already, you just might notice the billboards when rotating the camera.

---

<div class="post-metadata">

**Author:** ![xjindf](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/xjindf/32/24657_2.png) [@xjindf](https://discourse.threejs.org/u/xjindf)\
**Post date:** [April 10, 2020, 8:06am UTC](https://discourse.threejs.org/t/flying-through-clouds/14203/5 "2020-04-10T08:06:04Z")

</div>

I guess you need that：  
[https://www.babylonjs-playground.com/#EWME8L#12](https://www.babylonjs-playground.com/#EWME8L#12)
